[gdal-dev] OGR shapefile problems

Frank Warmerdam warmerdam at pobox.com
Sun Feb 10 21:00:39 EST 2008


William Kyngesburye wrote:
> So, the patch works.  But I notice that you only patched the polygon 
> case.  I think it's possible that any shape type can have null shape 
> data.  I don't know if it's correct behavior for shapefiles, but I've 
> seen ArcGIS export such shapefiles myself, and I think I've seen it 
> happen with point shapefiles as well.

Even,

I can confirm that shapefiles can indeed have NULL shapes in them which
are currently handled by returning NULL for the geometry.  I would think
this is the appropriate behavior for a polygon with no rings too instead
of returning an empty multipolygon.

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    | President OSGeo, http://osgeo.org



More information about the gdal-dev mailing list