[Geoserver-devel] [jira] Created: (GEOS-4537) WCS reprojection throws "TargetCRS must be compatible with TargetGG CRS" exception

WCS reprojection throws "TargetCRS must be compatible with TargetGG CRS" exception
----------------------------------------------------------------------------------

                 Key: GEOS-4537
                 URL: http://jira.codehaus.org/browse/GEOS-4537
             Project: GeoServer
          Issue Type: Bug
          Components: WCS
    Affects Versions: 2.1-RC5
         Environment: Tomcat 6.0.26, Ubuntu Linux, Java 1.6.0_24
            Reporter: Torsten Heinen
            Assignee: Andrea Aime

Requesting an non EPSG:4326 coverage store with EPSG:4326 BBOX and Target SRS results in an ServiceException:

<?xml version="1.0" encoding="UTF-8"?>
<ServiceExceptionReport version="1.2.0" >
<ServiceException>
      java.lang.IllegalArgumentException: Illegal value for argument &quot;TargetCRS must be compatible with TargetGG CRS&quot;.
Illegal value for argument &quot;TargetCRS must be compatible with TargetGG CRS&quot;.
</ServiceException>
</ServiceExceptionReport>

Adding EPSG:4326 to the Request/Response SRS in Layer/Publishing Tab does not make any difference (maybe as they are not published in the WCS capabilities doc?). Also, I couldn't find a documentation on how to set these SRSs programatically (using REST or via something similar to the "Limited SRS list").

You can reproducable this error with the demo store "sf:sfdem". Simply post this WCS getCoverage request:

<?xml version="1.0" encoding="UTF-8"?>
<GetCoverage version="1.0.0" service="WCS"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
xmlns="http://www.opengis.net/wcs&quot;
xmlns:ows="http://www.opengis.net/ows/1.1&quot;
xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot;
xsi:schemaLocation="http://www.opengis.net/wcs
http://schemas.opengis.net/wcs/1.0.0/getCoverage.xsd&quot;&gt;
<sourceCoverage>sf:sfdem</sourceCoverage>
<domainSubset>
   <spatialSubset>
     <gml:Envelope srsName="EPSG:4326">
       <gml:pos>-103.87108701853181 44.370187074132616</gml:pos>
       <gml:pos>-103.62940739432703 44.5016011535299</gml:pos>
     </gml:Envelope>
     <gml:Grid dimension="2">
       <gml:limits>
         <gml:GridEnvelope>
           <gml:low>0 0</gml:low>
           <gml:high>648 496</gml:high>
         </gml:GridEnvelope>
       </gml:limits>
       <gml:axisName>E</gml:axisName>
       <gml:axisName>N</gml:axisName>
     </gml:Grid>
   </spatialSubset>
</domainSubset>
<output>
   <crs>EPSG:4326</crs>
   <format>GeoTIFF</format>
</output>
</GetCoverage>

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