[Gdal-dev] ogr2ogr

Daniel Morissette morissette at dmsolutions.ca
Mon Apr 14 12:57:25 EDT 2003


Krzysztof Chodak wrote:
> 
> have you encountered such issue:
> I have mapinfo tab file with 50 objects (everyone of that 50 is listed by
> ogrinfo).
> After using ogr2ogr target shapefile reports only 44 objects.
> Have you got any idea what has happened with that missing 6?
> 

Is it possible that you'd have some objects with NONE geometry in your
dataset?  Since shapefile objects cannot have NONE geometry then these
objects may end up being dropped.  Another possibility would be that
your TAB file contains a mix of geometry types (e.g. points and lines),
and since shapefiles support only one geometry type per file then the
objects whose geometry doesn't match the geometry type of the created
shapefile may be dropped.  However you should receive a warning when
that happens.

-- 
------------------------------------------------------------
 Daniel Morissette               morissette at dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------



More information about the Gdal-dev mailing list