Hi! I am using the OGR MapInfo File driver to read a MapInfo TAB file. However, the function GetGeomType()<http://gdal.org/python/osgeo.ogr.Layer-class.html#GetGeomType>returns 0 which means point geometry, even if the features in the TAB are only multi-polygons.
Is it because MapInfo TAB can store many different GeomTypes in the same file? If I take for granted that only one geometry type would always be founded in the TAB, how could I retrieve it? driver = ogr.GetDriverByName("MapInfo File") datasource = driver.Open(os.path.join(dirname,shapefileName)) layer = datasource.GetLayer(0) geometryType = layer.GetGeomType() >>>geometryType >>>0 Even when looping over features in layer and retrieving geometry type using GetDefnRef()<http://gdal.org/python/osgeo.ogr.Feature-class.html#GetGeometryRef>.GetGeomType() the result is always 0 even for multi-polygon features. Is there a way to retrieve the geometry type inside a MapInfo TAB ? Thanks for your help, -Max Demars -- Stack Overflow: http://stackoverflow.com/users/1914034/burton449 GIS Overflow: http://gis.stackexchange.com/users/14426/burton449 LastFm: http://www.lastfm.fr/user/burton449
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev