[Geoserver-users] WCS Square 1 Meter Pixels

Happy New Year!

I’m trying to get square 1 meter pixels in 26914 (UTM14 NAD83) from a mosaic coverage whose native image storage is 4326 using WCS 1.1

The following doesn’t work.
http://localhost:8080/geoserver/wcs?service=WCS&version=1.1.0&request=GetCoverage&identifier=Sil&BoundingBox=-97.61819,35.29752,-97.60081,35.31244,urn:ogc:def:crs:OGC:1.3:CRS84&GridBaseCRS=EPSG:26914&format=image/geotiff&store=true&GridOffsets=1.0,0,0,1.0&GridOrigin=0,0&GridCS=urn:ogc:def:cs:OGC:0.0:Grid2dSquareCS

I get:
<ows:ExceptionReport version=“1.1.0” xsi:schemaLocation=“http://www.opengis.net/ows/1.1 http://localhost:8080/geoserver/schemas/ows/1.1.0/owsAll.xsd”>

<ows:Exception exceptionCode=“NoApplicableCode”>

ows:ExceptionText
java.lang.IllegalArgumentException: The specified dimensional parameter is non-positive.
The specified dimensional parameter is non-positive.
</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>

What am I doing wrong? I’m new to WCS, so it’s probably something simple. I’m using the example in the 1.1.0 OGC WCS Spec page 91 for reference:

EXAMPLE 1 Here is an example 2D GridCRS definition without grid rotation or skewing, defined using

KVP encoding:

GridBaseCRS=urn:ogc:def:crs:EPSG:6.6:63266405&

GridType=urn:ogc:def:method:WCS:1.1:2dSimpleGrid&

GridCS=urn:ogc:def:cs:OGC:0.0:Grid2dSquareCS&

GridOrigin=0,0&

GridOffsets=0.1,0.2&

NOTE 2 This example and the next define a grid in the EPSG:63266405 CRS, that is, WGS84 latitude and

longitude expressed in decimal degrees. The grid spacing is 0.1 degree of latitude and 0.2 degree of longitude.

EXAMPLE 2 Here is the same example GridCRS definition, taking advantage of all three applicable

defaults:

GridBaseCRS=urn:ogc:def:crs:EPSG:6.6:63266405&

GridOffsets=0.1,0.2&

Geoserver also didn’t like the KVP “GridType=urn:ogc:def:method:WCS:1.1:WCS:1.1:2dSimpleGrid&” so I took it out.
It also doesn’t seem to like using only two parameters for GridOffsets, so I added the two middle ones as 0,0.

Here are the first few lines of the log:

01 Jan 12:03:22 ERROR [geoserver.ows] -
org.vfny.geoserver.wcs.WcsException: java.lang.IllegalArgumentException: The specified dimensional parameter is non-positive.
at org.geoserver.wcs.DefaultWebCoverageService111.getCoverage(DefaultWebCoverageService111.java:345)
at sun.reflect.GeneratedMethodAccessor164.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)

Any ideas? Thanks!
Roger

Roger Bedell, President Sylvan Ascent Inc.
800-362-8971
+34 626 855 662
roger@anonymised.com
www.sylvanascent.com
www.topodepot.com