WCS 1.1 Reprojection using an XML GetCoverage request seems to be somewhat broken. (V1.7.3)
From this email:
http://www.nabble.com/WCS-%281.1.1%29-reprojection-parameters–td21199253.html#a21204818
I was able to project the nurc:Pk50095 to 4326 using this URL, after adding EPSG:4326 to the list of comma delimited Response CRSs
Very nice.
However I could not do this using an XML request. I tried all the permutations I could think of ( I won’t bore you with all of them…).
For testing all the XMLs, I used the “Demo Requests” page, with this URL: http://coordinatesolutions.com:8080/geoserver/wcs
For example (using the GridOffsets that GdalInfo gave me from the image from the working URL request, and being as close to the URL version as I could make it) :
<GetCoverage service=“WCS” version=“1.1.1”
xmlns=“http://www.opengis.net/wcs/1.1.1”
xmlns:ows=“http://www.opengis.net/ows/1.1”
xmlns:nurc=“http://www.nurc.nato.int”
xmlns:ogc=“http://www.opengis.net/ogc”
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”
ows:IdentifierPk50095</ows:Identifier>
<ows:BoundingBox crs="urn:ogc:def:crs:EPSG::4326 ">
ows:LowerCorner46.75 13.05</ows:LowerCorner>
ows:UpperCorner46.85 13.25</ows:UpperCorner>
</ows:BoundingBox>
urn:ogc:def:crs:EPSG::4326
urn:ogc:def:method:WCS:1.1:2dGridIn2dCrs
0.000565175007603 0.0 0.0 -0.000392856051951
I get this interesting error response instead of the usual EML image:
"org.opengis.geometry.MismatchedReferenceSystemException: The coordinate reference system must be the same for all objects.
The coordinate reference system must be the same for all objects."
Note that GridOffsets are REQUIRED in the XML, but seem to be left off the above URL request and are specified “mandatory” in the WCS 1.1 spec (page 103). I also tried just EPSG:4326 in GridBaseCRS, and it returned an error plus an unprojected image - totally strange.
Also, note that the following worked fine, converting UTM33 to UTM32, so at least some things do appear to work…
<GetCoverage service=“WCS” version=“1.1.1”
xmlns=“http://www.opengis.net/wcs/1.1.1”
xmlns:ows=“http://www.opengis.net/ows/1.1”
xmlns:nurc=“http://www.nurc.nato.int”
xmlns:ogc=“http://www.opengis.net/ogc”
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”
ows:IdentifierPk50095</ows:Identifier>
<ows:BoundingBox crs=“urn:ogc:def:crs:EPSG:6.6:32633”>
ows:LowerCorner347649.93086859107 5176214.082539256</ows:LowerCorner>
ows:UpperCorner370725.976428591 5196961.352859256</ows:UpperCorner>
</ows:BoundingBox>
urn:ogc:def:crs:EPSG:6.6:32632
urn:ogc:def:method:WCS:1.1:2dGridIn2dCrs
10.0 0.0 0.0 -10.0
Thanks for any insights, also I have added to Jira.
Roger