[Geoserver-users] Cannot specify subset in WCS 2.0.1

Hi,

How to make a successful test with the nurc__Img_Sample demo coverage
http://localhost:8080/geoserver/wcs?service=WCS&version=2.0.1&request=describecoverage&coverageid=nurc__Img_Sample

Check the axis labels from the boundedBy Envelope, for me they are axisLabels="Lat Long". So use them in the most simple request:
http://localhost:8080/geoserver/wcs?service=WCS&version=2.0.1&request=GetCoverage&coverageid=nurc__Img_Sample&&SUBSET=Lat(20,30)&SUBSET=Long(-130,-100)
Axis labels seem to be case sensitive for GeoServer and "lat" does not mean the same as "Lat"

I verified also the SUBSETTINGCRS does not make trouble at least in this request:
http://localhost:8080/geoserver/wcs?service=WCS&version=2.0.1&request=GetCoverage&coverageid=nurc__Img_Sample&&SUBSET=Lat(20,30)&SUBSET=Long(-130,-100)&SUBSETTINGCRS=http://www.opengis.net/def/crs/EPSG/0/4326

You can

I have noticed that Geoserver is sending wrong envelope for the non-flipped Easting-Northing projections. This is from the demo coverage nurc__Pk50095

<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>

Here the labels E and N are correct but the first coordinate in the Envelope is not Easting but it is Northing.

-Jukka Rahkonen-

-----Alkuperäinen viesti-----
Lähettäjä: Passmore, James H. [mailto:jpass@anonymised.com]
Lähetetty: 26. elokuuta 2015 12:16
Vastaanottaja: Richard Cho; geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] Cannot specify subset in WCS 2.0.1

Try

https://localhost:8080/geoserver/wcs?SERVICE=WCS&Version=2.0.1&REQUEST=GetCoverage&CoverageID=test&format=image/geotiff&subset=lat,http://www.opengis.net/def/crs/EPSG/0/4326(34.53627,38.88686)&subset=long,http://www.opengis.net/def/crs/EPSG/0/4326(25.43366,31.32234)

Where 'lat', and 'long' are the names of the axes reported in your GetCapabilities response.

James

-----Original Message-----
From: Richard Cho [mailto:rcho@anonymised.com]
Sent: Wednesday, August 26, 2015 12:21 AM
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] Cannot specify subset in WCS 2.0.1

Hello,

I'm trying to make a WCS GetCoverage call on a subset of a coverage
like
below:

https://localhost:8080/geoserver/wcs?SERVICE=WCS&Version=2.0.1&REQUE
ST=GetCoverage&CoverageID=test&format=image/geotiff&SUBSETTINGCRS
=http://www.opengis.net/def/crs/EPSG/0/4326&outputcrs=http://www.op
engis.net/def/crs/EPSG/0/4326&SUBSET=lat(34.53627,38.88686)&SUBSET=lo
ng(25.43366,31.32234)

But it keeps complaining with the error

<ows:ExceptionReport xmlns:xs="http://www.w3.org/2001/XMLSchema&quot;
xmlns:ows=http://www.opengis.net/ows/2.0
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; version="2.0.0"
xsi:schemaLocation="http://www.opengis.net/ows/2.0
http://schemas.opengis.net/ows/2.0/owsExceptionReport.xsd&quot;&gt;

    <ows:Exception exceptionCode="InvalidAxisLabel" locator="lat">

        <ows:ExceptionText>Invalid axis label provided: lat
</ows:ExceptionText>

    </ows:Exception>

</ows:ExceptionReport>

I have tried multiple axis labels, including latitude, x, y, long,
etc. listed in the
http://mapserver.org/ogc/wcs_server.html#wcs-2-0-kvp-request-
parameters <http://mapserver.org/ogc/wcs_server.html#wcs-2-0-kvp-
request-parameters> , but GeoServer seems to not like it all.

What's the current correct format of specifying subset? I'm using
GeoServer 2.8.

Thanks.

________________________________
This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system.
________________________________

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users