Hi,
I am having difficulties executing a WCS getCoverage query when converting from the native coverage CRS (EPSG:26911) to EPSG4326. If I make a query using the WCS Request Builder over the entire coverage bbox, I get an Illegal grid range exception.
If I make the query for a smaller region within the coverage bbox I don’t get an exception, but the query never seems to return a response. Here is the request XML:
<?xml version="1.0" encoding="UTF-8"?>
<GetCoverage version="1.1.1" service="WCS" xmlns:xsi="[http://www.w3.org/2001/XMLSchema-instance](http://www.w3.org/2001/XMLSchema-instance)" xmlns="[http://www.opengis.net/wcs/1.1.1](http://www.opengis.net/wcs/1.1.1)" xmlns:ows="[http://www.opengis.net/ows/1.1](http://www.opengis.net/ows/1.1)" xmlns:gml="[http://www.opengis.net/gml](http://www.opengis.net/gml)" xmlns:ogc="[http://www.opengis.net/ogc](http://www.opengis.net/ogc)" xsi:schemaLocation="[http://www.opengis.net/wcs/1.1.1](http://www.opengis.net/wcs/1.1.1) [http://schemas.opengis.net/wcs/1.1.1/wcsAll.xsd](http://schemas.opengis.net/wcs/1.1.1/wcsAll.xsd)">
<ows:Identifier>USGS:ortho</ows:Identifier>
<DomainSubset>
<ows:BoundingBox crs="urn:ogc:def:crs:EPSG::26911">
<ows:LowerCorner>477024.0 3656511.0</ows:LowerCorner>
<ows:UpperCorner>477124.0 3656611.0</ows:UpperCorner>
</ows:BoundingBox>
</DomainSubset>
<Output store="true" format="image/tiff;subtype="geotiff"">
<GridCRS>
<GridBaseCRS>urn:ogc:def:crs:EPSG::4326</GridBaseCRS>
<GridType>urn:ogc:def:method:WCS:1.1:2dSimpleGrid</GridType>
<GridOffsets>3.2238674990922263E-6 -2.715107510245265E-6</GridOffsets>
<GridCS>urn:ogc:def:cs:OGC:0.0:Grid2dSquareCS</GridCS>
</GridCRS>
</Output>
</GetCoverage>
If I make the same query specified as a URL:
localhost:8080/geoserver/wcs?request=GetCoverage&version=1.1.1&identifier=USGS:ortho&SERVICE=wcs&FORMAT=image/geotiff&BOUNDINGBOX=477024,3656511,477124,3656611,EPSG:26911&gridbasecrs=EPSG:4326
I get back an all black image. The requested bbox is within the coverage bbox and I have added EPSG:4326 to the response SRS list for the layer. As a sanity check, I made the same query without the CRS conversion and the results were as expected.
Also is there a link to an explanation of GridType and GridOffset parameters? It seems to be required by the XML request, but not in a URL-based request.
I am using GeoServer 2.1.4, btw.
Any help would be greatly appreciated.
Thanks.