[gdal-dev] Sortshp and corrupted output with 3D polygon input

Frank Warmerdam warmerdam at pobox.com
Tue Oct 12 08:07:34 EDT 2010


Jukka Rahkonen wrote:
> Hi,
> 
> I was sorting a shapefile with sortshp (Windows 2003 Server, GDAL 1.7.0dev,
> FWTools 2.4.2, released 2009/06/24, from FWTools 2.4.2).
...
> However, I have a feeling that perhaps it is not 3D Polygon layer but a normal
> Polygon layer with wrong headers or something. I did another test by using an
> intermediate 2D Polygon shapefile created by using ogr2ogr and option -lco
> SHPT=POLYGON. Size of the resulting .shp file was 207 KB, just the same than the
> invalid output from sortshp. Finally, sorting this 2D-shapefile with sortshp
> gives me a valid sorted shapefile.

Jukka,

sortshp is a MapServer utility.  If you file a ticket in the MapServer Trac
and assign it to me ("warmerdam") I'll try and make the utility a bit more
bulletproof.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the gdal-dev mailing list