Even Rouault kirjoitti 29.10.2017 klo 11:52:

The "tradition" in GDAL drivers such as GML, WFS is to strip AXIS from the CRS WKT exposed when they are in the "annoying" lat,long and northing,easting,

From the GML driver:

{{{

if (poSRS != NULL && m_bInvertAxisOrderIfLatLong &&

GML_IsSRSLatLongOrder(pszSRSName))

{

OGR_SRSNode *poGEOGCS = poSRS->GetAttrNode("GEOGCS");

if( poGEOGCS != NULL )

poGEOGCS->StripNodes("AXIS");

OGR_SRSNode *poPROJCS = poSRS->GetAttrNode("PROJCS");

if (poPROJCS != NULL && poSRS->EPSGTreatsAsNorthingEasting())

poPROJCS->StripNodes("AXIS");

}

}}}

and to switch the coordinates appropriately so that the user sees the "GIS friendly" lon,lat and x,y order. It would be propably appropriate for the WCS driver to do so as well, as nothing else in GDAL can deal with rasters referenced in lat,long order.


So, treat lat,lon and north,east always as exceptions. And in this case add an option to make that exception when appropriate and when writing the BoundingBox into the request. (But not when reading GridOrigin. However, I still have to see what other servers say.)

Now, you may also have to deal with implementation bugs (if what MapServer does is indeed a bug), which can sometimes be auto-corrected, or not...


We'll see what MapServer developers say. I submitted an issue to its github.

Ari

Even

--

Spatialys - Geospatial professional services

http://www.spatialys.com


_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to