[Gdal-dev] OGR: opening shapefiles with no records
Frank Warmerdam
warmerdam at pobox.com
Tue Oct 19 11:34:39 EDT 2004
Marco Hugentobler wrote:
> Dear OGR developers,
>
> When i open a shapefile with no records i receive a crash in the
> GetDBFCount method (it seems, that the dbf-handle is a null pointer). Is
> it not possible to open empty shapefiles with OGR or am i doing
> something wrong? At the moment, i insert a dummy feature for empty
> layers as a workaround, but it would of course be nicer without this.
> The version i am using is 1.2.3 on Suse-9.1
>
> Thanks,
> Marco
Marco,
Can you provide a zip or tar file of such a problem dataset? This definately
should not happen. Best to submit it to the GDAL bugzilla if you don't mind.
Thanks,
--
---------------------------------------+--------------------------------------
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