Open GoogleCodeExporter opened 8 years ago
I have the same problem on a Shapefile from SWBD, w004n16f.shp, which can be
found:
http://dds.cr.usgs.gov/srtm/version2_1/SWBD/SWBDwest/w004n16f.zip
Original comment by nicolas....@gmail.com
on 31 May 2012 at 10:17
I've been having the same problem. Apparently, there may be gaps between shapes
in the .shp file (for. example, Quantum GIS doesn't seem to recreate the entire
.shp file if I cut a line, it just shortens the record, leaving other records
intact). Only the offsets in the .shx file can be trusted. However, the
shapes() method assumes that shapes follow one another in the .shp file.
The attached patch (against revision 76) seems to have fixed the problem for me.
Original comment by filip.si...@gmail.com
on 18 Jun 2012 at 4:11
Attachments:
I had the same issue with another shapefile, and confirm that the patch worked
for me. Thanks.
Original comment by jqu...@cit.ac.ug
on 8 Oct 2012 at 11:48
Original comment by jlawh...@geospatialpython.com
on 2 May 2013 at 5:01
Original issue reported on code.google.com by
larrylus...@gmail.com
on 27 Apr 2012 at 8:17Attachments: