Permalink
Browse files

WCS 2.0 RectifiedGrid: use 'lon lat' and 'x y' labels even with CRS w…

…ith 'inverted axis' order

My understanding of the thread at https://lists.osgeo.org/pipermail/gdal-dev/2017-November/047650.html
is that the RectifiedGrid.axisLabels element should reflect the way the grid axis are ordered (and
not the axis order of the CRS as mandated by EPSG). As our offsetVector s are ordered in the GIS
friendly order, the labels should reflect that as well

Note that according to Peter Baumann per https://lists.osgeo.org/pipermail/gdal-dev/2017-November/047668.html
the content could be pretty much anything.
  • Loading branch information...
rouault committed Nov 9, 2017
1 parent 31c25df commit 3be54424026e24fb37b3bff82027b28484100452
View
@@ -2038,17 +2038,9 @@ static void msWCSCommon20_CreateDomainSet(layerObj* layer, wcs20coverageMetadata
}
if(projection->proj != NULL && pj_is_latlong(projection->proj)) {
if (swapAxes == MS_FALSE) {
strlcpy(axisLabels, "long lat", sizeof(axisLabels));
} else {
strlcpy(axisLabels, "lat long", sizeof(axisLabels));
}
strlcpy(axisLabels, "long lat", sizeof(axisLabels));
} else {
if (swapAxes == MS_FALSE) {
strlcpy(axisLabels, "x y", sizeof(axisLabels));
} else {
strlcpy(axisLabels, "y x", sizeof(axisLabels));
}
strlcpy(axisLabels, "x y", sizeof(axisLabels));
}
xmlNewChild(psGrid, psGmlNs, BAD_CAST "axisLabels", BAD_CAST axisLabels);
@@ -16,7 +16,7 @@
<gml:high>104 60</gml:high>
</gml:GridEnvelope>
</gml:limits>
<gml:axisLabels>lat long</gml:axisLabels>
<gml:axisLabels>long lat</gml:axisLabels>
<gml:origin>
<gml:Point gml:id="grid_origin_multi" srsName="http://www.opengis.net/def/crs/EPSG/0/4326">
<gml:pos>49.874157 14.487132</gml:pos>
@@ -204,7 +204,7 @@
<gml:high>104 60</gml:high>
</gml:GridEnvelope>
</gml:limits>
<gml:axisLabels>lat long</gml:axisLabels>
<gml:axisLabels>long lat</gml:axisLabels>
<gml:origin>
<gml:Point gml:id="grid_origin_multi_new" srsName="http://www.opengis.net/def/crs/EPSG/0/4326">
<gml:pos>49.874157 14.487132</gml:pos>
Binary file not shown.
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 3be5442

Please sign in to comment.