[gdal-dev] WCS driver

Ari Jolma ari.jolma at gmail.com
Sun Oct 29 03:40:30 PDT 2017


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
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20171029/9926fe2b/attachment.html>


More information about the gdal-dev mailing list