[Geoserver-users] Axis labels and trimming with WCS 2.0.1

Hi,

I am trying to understand something about WCS 2.x but I do not quite understand how the trimming should be done.

I am playing with Geoserver 2.7.2 and the standard demo layers.
GetCapabilities I am getting with
http://localhost:8080/geoserver/ows?service=WCS&version=2.0.1&request=GetCapabilities

If am interested in the coverage "nurc__Pk50095" I read more info with
http://localhost:8080/geoserver/ows?service=WCS&version=2.0.1&request=describecoverage&coverageid=nurc__Pk50095

(BTW, after installing Geoserver both the store and layer must be activated from the config utility before Pk50095 can be used.)

So, now I can read the extents of this coverage and they are
<gml:Envelope srsName="http://www.opengis.net/def/crs/EPSG/0/32633&quot; axisLabels="E N" uomLabels="m m" srsDimension="2">
<gml:lowerCorner>5176214.082539256 347649.93086859107</gml:lowerCorner>
<gml:upperCorner>5196961.352859256 370725.976428591</gml:upperCorner>
</gml:Envelope>

Ok, wonderful to see an OGC service where axis order is finally defined so that nothing can go wrong. I'll put Easting first and Northing next and go trimming:
localhost:8080/geoserver/wcs?service=WCS&version=2.0.1&request=GetCoverage&coverageid=nurc__Pk50095&format=image/tiff&subset=E("5176214","5186214")&subset=N("347649","357649")

But the result is:
<ows:Exception exceptionCode="InvalidSubsetting" locator=""><ows:ExceptionText>Empty intersection after subsetting
</ows:ExceptionText>
</ows:Exception>

Changing the axis labels makes the request to work:
localhost:8080/geoserver/wcs?service=WCS&version=2.0.1&request=GetCoverage&coverageid=nurc__Pk50095&format=image/tiff&subset=N("5176214","5186214")&subset=E("347649","357649")

I wonder what is going wrong this time. Is it that GeoServer sends the coordinates of the Envelope or the axis labels in wrong order? If I check the source image with gdalinfo I can see that the first coordinates in the advertised envelope are actually northings

Upper Left ( 347649.931, 5196961.353)
Lower Left ( 347649.931, 5176214.083)
Upper Right ( 370725.976, 5196961.353)
Lower Right ( 370725.976, 5176214.083)

-Jukka Rahkonen-