Re: [postgis-users] importing curved polygons
Thank you Andreas. Summary: Using ogr2ogr 2.2 (which hasn't been released yet) curves are read from an ESRI file gdb and written to postgis as curves. When building ogr without any explicit configure option for fgdb the OpenFileGDB driver is used. To use the ESRI driver the --with-fgdb option has to be used but I personally didn't get that working. Using the OpenFileGDB driver is probably preferable unless you need to write to a file gdb. I was told on the gdal-dev list that the Windows dev version of gdal available at gisinternals probably supports curves but I have not tried it. As always, thanks for the help. Rich On Wed, Mar 8, 2017 at 8:25 AM, Neumann, Andreaswrote: > Hi Rich, > > What GDAL/OGR version do you have? Which driver do you use? There are two. > > According to > > http://www.gdal.org/drv_openfilegdb.html > and > http://www.gdal.org/drv_filegdb.html (requires ESRI FileGDB API SDK) > both versions require version 2.2 or higher. > > It is quite likely that you use an older version. > > Try "ogrinfo --version" to get the version. > > Andreas > > On 2017-03-08 16:16, Richard Greenwood wrote: > > I have received an ESRI file geodatabase with polygons containing curves > that I would like to import into postgis. Using ogr2ogr the curved portion > of the polygon is comprised of the chord of the curve (example below). > > Does anyone have any suggestions for importing an ESRI file geodatabase > containing curved polygons? > > Thanks, > Rich > > > MULTIPOLYGON(((-11750835.4823935 5060835.88854035,-11750867.8784639 > 5060835.62656567,-11750871.3924507 5060835.59816625,-11750871.8264507 > 5060873.75984909,-11750871.2171506 5060883.12929326,-11750870.900856 > 5060884.35132355,-11750864.5457614 5060884.41587281,-11750835.8933664 > 5060856.50810022,-11750835.4823935 5060835.88854035))) > > -- > Richard W. Greenwood, PLS > www.greenwoodmap.com > > ___ > postgis-users mailing list > postgis-users@lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/postgis-users > > > > -- Richard W. Greenwood, PLS www.greenwoodmap.com ___ postgis-users mailing list postgis-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/postgis-users
Re: [postgis-users] importing curved polygons
Hi Rich, What GDAL/OGR version do you have? Which driver do you use? There are two. According to http://www.gdal.org/drv_openfilegdb.html and http://www.gdal.org/drv_filegdb.html (requires ESRI FileGDB API SDK) both versions require version 2.2 or higher. It is quite likely that you use an older version. Try "ogrinfo --version" to get the version. Andreas On 2017-03-08 16:16, Richard Greenwood wrote: > I have received an ESRI file geodatabase with polygons containing curves that > I would like to import into postgis. Using ogr2ogr the curved portion of the > polygon is comprised of the chord of the curve (example below). > > Does anyone have any suggestions for importing an ESRI file geodatabase > containing curved polygons? > > Thanks, > Rich > > MULTIPOLYGON(((-11750835.4823935 5060835.88854035,-11750867.8784639 > 5060835.62656567,-11750871.3924507 5060835.59816625,-11750871.8264507 > 5060873.75984909,-11750871.2171506 5060883.12929326,-11750870.900856 > 5060884.35132355,-11750864.5457614 5060884.41587281,-11750835.8933664 > 5060856.50810022,-11750835.4823935 5060835.88854035))) > -- > > Richard W. Greenwood, PLS > www.greenwoodmap.com [1] > ___ > postgis-users mailing list > postgis-users@lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/postgis-users Links: -- [1] http://www.greenwoodmap.com ___ postgis-users mailing list postgis-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/postgis-users
[postgis-users] importing curved polygons
I have received an ESRI file geodatabase with polygons containing curves that I would like to import into postgis. Using ogr2ogr the curved portion of the polygon is comprised of the chord of the curve (example below). Does anyone have any suggestions for importing an ESRI file geodatabase containing curved polygons? Thanks, Rich MULTIPOLYGON(((-11750835.4823935 5060835.88854035,-11750867.8784639 5060835.62656567,-11750871.3924507 5060835.59816625,-11750871.8264507 5060873.75984909,-11750871.2171506 5060883.12929326,-11750870.900856 5060884.35132355,-11750864.5457614 5060884.41587281,-11750835.8933664 5060856.50810022,-11750835.4823935 5060835.88854035))) -- Richard W. Greenwood, PLS www.greenwoodmap.com ___ postgis-users mailing list postgis-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/postgis-users