[Qgis-user] RE: Shapefile structure viewer and editor plugin

Alister Hood alister.hood at synergine.com
Mon Sep 6 20:43:18 PDT 2010


Yes, that feature seems to be invalid in the original Mapinfo file too.

Thanks for the warning about multipolylines.

Alister

-----Original Message-----
From: Benoit de Cabissole [mailto:benoit at exigesa.com] 
Sent: Monday, 6 September 2010 10:56 p.m.
To: Alister Hood
Subject: RE: [Qgis-user] RE: Shapefile structure viewer and editor
plugin

Alister,

Thanks for the shapefile. Yes it takes a long while to load!
I've noticed that my plugin only loads 1106 of the 1107 features in the
shapefile.
On further examination I've found that the first feature (OBJECTID = 1)
could be invalid?

I also realised that although I import the multipolylines 'correctly' in
the
plugin, the Save as and Save functions are really buggy: all multi-parts
of
a multipolylines are connected to each other resulting in a spaghetti
shapefile. I'm working on a fix right now. Please do not use the save
commands on multipolylines shapefiles!

multipolylines are shapefiles that contain one set of attributes linked
to
more that one individual lines (for example, select OBJECTID 481 and you
will see what I mean: many non-connected lines are 'attached' to the
attributes of OBJECTID 481)

Cheers,
Benoit

> -----Original Message-----
> From: Alister Hood [mailto:alister.hood at synergine.com]
> Sent: Monday, 06 September 2010 09:10
> To: benoit at exigesa.com
> Subject: RE: [Qgis-user] RE: Shapefile structure viewer and editor
> plugin
>
>
> Yes, this file works with 0.0.5 in nightly QGIS (It still crashes
1.5).
>
> Be warned - unless you choose to load a small selection the plugin
takes
> a long time to load this file, due to the large amount of information
in
> it :)
>
> Alister
>
> -----Original Message-----
> From: Benoit de Cabissole [mailto:benoit at exigesa.com]
> Sent: Monday, 6 September 2010 6:42 p.m.
> To: Alister Hood; qgis-user at lists.osgeo.org
> Subject: RE: [Qgis-user] RE: Shapefile structure viewer and editor
> plugin
>
> Hi Alister,
>
> Interesting. It seems that your shapefile has an empty multipolyline
in
> it
> or it contains a line with no point?
> If you don't mind, yes, send me that shapefile.
>
> A new version 0.0.5 has been put in the contributed repo that should
> handle
> this case.
>
> I'm developing with the nightly builds (1.6 Trunk in OSGeo4W on XP) so
> I'm
> not so surprised it crashes V1.5 on error.
>
> Thanks for reporting the error.
> Benoit
>
>
> > -----Original Message-----
> > From: qgis-user-bounces at lists.osgeo.org
> > [mailto:qgis-user-bounces at lists.osgeo.org]On Behalf Of Alister Hood
> > Sent: Monday, 06 September 2010 01:34
> > To: qgis-user at lists.osgeo.org
> > Subject: [Qgis-user] RE: Shapefile structure viewer and editor
plugin
> >
> >
> > Hi Benoit,
> > I have found a shape file that causes QGIS 1.5 to crash when I try
to
> > start your plugin.  In the nightly builds it doesn't crash QGIS, but
> the
> > plugin fails to start, with the error below.  I am on Windows XP.  I
> can
> > send you the shape file if you are interested.
> >
> > Regards,
> > Alister
> >
> >
> > An error has occured while executing Python code:
> >
> > Traceback (most recent call last):
> >   File "C:/Documents and
> > Settings/alister.hood/.qgis/python/plugins\bccSHPV\bccSHPV.py", line
> > 193, in cdlgInit
> >     dialog = cdlgSHPV(self.iface, theLayer, iType, bSelected)
> >   File "C:/Documents and
> > Settings/alister.hood/.qgis/python/plugins\bccSHPV\cdlgSHPV.py",
line
> > 111, in __init__
> >     self.DoLine()
> >   File "C:/Documents and
> > Settings/alister.hood/.qgis/python/plugins\bccSHPV\cdlgSHPV.py",
line
> > 1088, in DoLine
> >     x    = xm[0]
> > IndexError: list index out of range
> >
> > Python version:
> > 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit
(Intel)]
> >
> >
> > QGIS version:
> > 1.6.0-Trunk Trunk, 14191
> >
> > Python path: ['C:\\Documents and
> > Settings\\alister.hood\\.qgis\\python\\plugins\\elevation',
> > 'C:/OSGeo4W/apps/qgis-dev/./python', 'C:/Documents and
> > Settings/alister.hood/.qgis/python', 'C:/Documents and
> > Settings/alister.hood/.qgis/python/plugins',
> > 'C:/OSGeo4W/apps/qgis-dev/./python/plugins',
> > 'C:\\OSGeo4W\\apps\\gdal-17\\pymod', 'H:\\',
> > 'C:\\OSGeo4W\\bin\\python25.zip',
'C:\\OSGeo4W\\apps\\Python25\\DLLs',
> > 'C:\\OSGeo4W\\apps\\Python25\\lib',
> > 'C:\\OSGeo4W\\apps\\Python25\\lib\\plat-win',
> > 'C:\\OSGeo4W\\apps\\Python25\\lib\\lib-tk',
> > 'C:\\OSGeo4W\\apps\\qgis-dev\\bin', 'C:\\OSGeo4W\\apps\\Python25',
> > 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages',
> > 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32',
> > 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32\\lib',
> > 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\Pythonwin',
> >
'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\wx-2.8-msw-unicode',
> > 'C:\\Documents and
> > Settings\\alister.hood\\.qgis\\python\\plugins\\cadtools\\tools',
> > '~/.qgis/python',
> > 'C:\\OSGeo4W\\apps\\qgis-dev\\python\\plugins\\fTools\\tools',
> > '/usr/share/qgis/python/', '/usr/share/qgis/python/',
> > '/usr/share/qgis/python']
> >
> > _______________________________________________
> > Qgis-user mailing list
> > Qgis-user at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>




More information about the Qgis-user mailing list