Re: [gdal-dev] exportToPrettyWkt and simplify

2021-04-21 Thread Even Rouault
Still, it seems like there's no support to get WKT2 from the exportToPretty() function. Is this correct? $ python -c "from osgeo import osr; srs = osr.SpatialReference(); srs.ImportFromEPSG(4326); print(srs.ExportToWkt(['FORMAT=WKT2']))" GEOGCRS["WGS 84",ENSEMBLE["World Geodetic System 19

Re: [gdal-dev] exportToPrettyWkt and simplify

2021-04-21 Thread Andrew Bell
On Wed, Apr 21, 2021 at 10:49 AM Even Rouault wrote: > Andrew, > > Le 21/04/2021 à 16:31, Andrew Bell a écrit : > > exportToPrettyWkt() takes an argument called simplify. If it's set, > > the FORMAT option is set to WKT1_SIMPLE before a call is made to > > exportToWkt(). But it seems that WKT1_SI

Re: [gdal-dev] exportToPrettyWkt and simplify

2021-04-21 Thread Michael Smith
A 3d srs would have to be demoted to 2d first before exporting to wkt1, correct? sr.SetFromUserInput("epsg:4979") sr.ExportToWkt(['FORMAT=WKT1_SIMPLE']) RuntimeError: PROJ: proj_as_wkt: WKT1 does not support Geographic 3D CRS. Mike -- Michael Smith US Army Corps of Engineers Remote Sensing/GI

Re: [gdal-dev] exportToPrettyWkt and simplify

2021-04-21 Thread Even Rouault
that contains a DATUM[] node I meant a ENSEMBLE[] node -- http://www.spatialys.com My software is free, but my time generally not. ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] exportToPrettyWkt and simplify

2021-04-21 Thread Even Rouault
Andrew, Le 21/04/2021 à 16:31, Andrew Bell a écrit : exportToPrettyWkt() takes an argument called simplify. If it's set, the FORMAT option is set to WKT1_SIMPLE before a call is made to exportToWkt(). But it seems that WKT1_SIMPLE is also the default format value for exportToWkt(). Perhaps I'm

[gdal-dev] exportToPrettyWkt and simplify

2021-04-21 Thread Andrew Bell
exportToPrettyWkt() takes an argument called simplify. If it's set, the FORMAT option is set to WKT1_SIMPLE before a call is made to exportToWkt(). But it seems that WKT1_SIMPLE is also the default format value for exportToWkt(). Perhaps I'm misreading, but it seems like the simplify argument is po