Thanks Even, -nlt POLYGON did indeed work for me.
Huge thanks as always for your (and every contributor’s) amazing work.
Andy
From: Even Rouault
Sent: 11 November 2022 14:07
To: Andrew Terry ; gdal-dev@lists.osgeo.org
Subject: Re: [gdal-dev] openfilegdb export
Andrew,
Can you paste the
Andrew,
Can you paste the output of
ogrinfo -al -so PG:"dbname=dbname port=5432 host=dbhost user=dbusr"
--optfile sql_filter.sql
so we can see the layer geometry type. I presume it is unknown.
GeoPackage supports geometry columns with unknown geometry type.
Shapefile requires a precise geom
Hi,
Trying out the export to OpenFileGDB, using GDAL 3.7.0dev-5a6f99a78b installed
with OSGeo4W
ogr2ogr -f "OpenFileGDB" test_filegdb.gdb PG:"dbname=dbname port=5432
host=dbhost user=dbusr" --optfile sql_filter.sql
This works for SHP and GeoPackage and the output is a EPSG 27700 Polygon
geome