Le dimanche 21 avril 2013 17:49:28, Stefan Keller a écrit : > When trying to use ogr2ogr (ver. 1.9) to convert a Shapefile (geometry type > Polygon) to file geodatabase (FileGDB) I'm getting an error like "FGDB > layers cannot be created with a wkbUnknown layer geometry type.": > > $ ogr2ogr -f filegdb out.gdb polygon.shp > > When adding -nlt it seems to work: > > $ ogr2ogr -f filegdb out.gdb polygon.shp -nlt POLYGON > > This is to a) an usual OGR behavior, and b) a show stopper for my script > because I don't know before hand (and won't check with ogrinfo) what > geometry type the input source is. Seems like there is a problem in the > FileGDB driver. > > Can anybody confirm and explain this bug?
Stefan, I don't confirm that behaviour with either 1.9.2 or 1.10.0. Conversion works fine for me without specifying -nlt. What is the geometry type reported by ogrinfo on polygon.shp ? Even _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
