Hi Jeremy,

> Is there a way to report the axis order that GDAL understands internally
> for automatically swapping coordinates axis order when dealing with OGC/GML
> services?
> 
> EPSG is defined as North/East order and is correct in
> http://epsg-registry.org/export.htm?wkt=urn:ogc:def:crs:EPSG::2193
> 
> However when I run gdalsrsinfo  -o wkt -p  "EPSG:2193" using GDAL 2.2.3 it
> does return any information relating to axis:
> 
> gdalsrsinfo  -o wkt -p  "EPSG:2193"

Yes, use "EPSGA:2193"
note the A after EPSG for Axis

If using EPSG, axis will be stripped off for lat-long geodetic SRS, and 
northing-easting 
projected SRS.
Whereas EPSGA always retain axis order
The rationale for the EPSG:xxxx behaviour is that most of the time the raster 
or vector data 
in those "inverted axis" CRS will actually be returned in GIS friendly order, 
and thus the axis 
info would be misleading.

> 
> However back in 2013 the gdalsrs did report it:
> https://lists.osgeo.org/pipermail/gdal-dev/2013-March/035624.html.

Yes, at that time stripping off was only implemented for lat-long geodetic SRS. 
It has since 
then being extended to northing-easting projected SRS.

Even


-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to