2

I'm converting a shapefile to file geodatabase with GDAL 1.11.3 and the ESRI FileGDB driver.

ogrinfo on the .shp gives:

$ ogrinfo NED1_Index.shp
INFO: Open of `NED1_Index.shp'
  using driver `ESRI Shapefile' successful.
1: NED1_Index (Polygon)

I run this command:

$ ogr2ogr -f "FileGDB" nedtest.gdb NED1_Index.shp

or this one specifying the geometry type:

$ ogr2ogr -f "FileGDB" -nlt POLYGON nedtest.gdb NED1_Index.shp

and then ogrinfo on the output fileGDB gives:

$ ogrinfo nedtest.gdb/  
INFO: Open of `nedtest.gdb/'  
  using driver `FileGDB' successful.  
1: NED1_Index (Multi Polygon)

Why is the geometry changing to MultiPolygon?

  • 4
    Neither shapefile nor file geodatabase make a distinction between polygon or multipolygon, so this is likely just an artifact of driver implementation. – Vince Dec 12 '15 at 1:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.