[gdal-dev] exportToPrettyWkt and simplify

Even Rouault even.rouault at spatialys.com
Wed Apr 21 10:04:46 PDT 2021



> 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 1984 
ensemble",MEMBER["World Geodetic System 1984 (Transit)"],MEMBER["World 
Geodetic System 1984 (G730)"],MEMBER["World Geodetic System 1984 
(G873)"],MEMBER["World Geodetic System 1984 (G1150)"],MEMBER["World 
Geodetic System 1984 (G1674)"],MEMBER["World Geodetic System 1984 
(G1762)"],ELLIPSOID["WGS 
84",6378137,298.257223563,LENGTHUNIT["metre",1]],ENSEMBLEACCURACY[2.0]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic 
latitude 
(Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic 
longitude 
(Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],USAGE[SCOPE["Horizontal 
component of 3D 
system."],AREA["World."],BBOX[-90,-180,90,180]],ID["EPSG",4326]]

-- 
http://www.spatialys.com
My software is free, but my time generally not.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210421/478f4971/attachment.html>


More information about the gdal-dev mailing list