GetCoverage band selection does not work for all bands but the first one
------------------------------------------------------------------------
Key: GEOS-1699
URL: http://jira.codehaus.org/browse/GEOS-1699
Project: GeoServer
Issue Type: Bug
Components: WCS
Affects Versions: 1.6.0-RC3
Reporter: Andrea Aime
Assignee: Andrea Aime
Fix For: 1.6.0, 1.7.0-beta1
Any attempt at a band select besides the first one fails due to a bug in the GeoTools bandselect operation. This affects both wcs 1.0 and wcs 1.1.
A stack trace from the wcs 1.1.1 tests looks like:
{code}
org.vfny.geoserver.wcs.WcsException: java.lang.ArrayIndexOutOfBoundsException: 1
at org.geoserver.wcs.DefaultWebCoverageService111.getCoverage(DefaultWebCoverageService111.java:326)
at org.geoserver.wcs.GetCoverageTest.executeGetCoverage(GetCoverageTest.java:50)
at org.geoserver.wcs.GetCoverageTest.testRangeSubset(GetCoverageTest.java:194)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
at org.geotools.coverage.processing.operation.BandSelector2D.create(BandSelector2D.java:196)
at org.geotools.coverage.processing.operation.SelectSampleDimension.doOperation(SelectSampleDimension.java:152)
at org.vfny.geoserver.util.WCSUtils.bandSelect(WCSUtils.java:478)
at org.geoserver.wcs.DefaultWebCoverageService111.getCoverage(DefaultWebCoverageService111.java:282)
... 18 more
{code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira