[Geoserver-devel] [jira] (GEOS-4955) Mismatch between WMS GetMap image and GetFeatureInfo output

Nelson Branco created GEOS-4955:
-----------------------------------

             Summary: Mismatch between WMS GetMap image and GetFeatureInfo output
                 Key: GEOS-4955
                 URL: https://jira.codehaus.org/browse/GEOS-4955
             Project: GeoServer
          Issue Type: Bug
          Components: WMS
    Affects Versions: 2.0.2
         Environment: Windows Server 2008 R2, Java 1.6.0 Update 23 64Bit
            Reporter: Nelson Branco
            Assignee: Andrea Aime

I have a raster layer from a WorldImage.

The image is a PNG in indexed mode that has 2 colors (black and green) plus transparency. In normal cases the GetFeatureInfo is PALETE_INDEX "0.0" when tranparency, "1.0" when black and "2.0" when green.

The bug appears, at least, when I use the conditions exemplified on below URLs, the first one is the GetMap request and the second one is the corresponding GetFeatureInfo for the central point of the GetMap image.

http://map1.mapas.sapo.pt/server/wms?service=WMS&version=1.1.1&request=GetMap&layers=tdt_coverage&styles=&bbox=-896557.948837209,4897567.7,-896557.350387597,4897568.3&width=622&height=330&srs=EPSG:900913&format=image/png&&X=322&Y=160&INFO_FORMAT=text/html&QUERY_LAYERS=tdt_coverage

http://map1.mapas.sapo.pt/server/wms?service=WMS&version=1.1.1&request=GetFeatureInfo&layers=tdt_coverage&styles=&bbox=-896557.948837209,4897567.7,-896557.350387597,4897568.3&width=622&height=330&srs=EPSG:900913&format=image/png&&X=322&Y=160&INFO_FORMAT=text/html&QUERY_LAYERS=tdt_coverage

Has you can test it, the result of GetFeatureInfo is "0.0" when all the image is green.

Exploring the layer with the OpenLayers in that region I notice that the results seems to be correct when deeply inside on zone, that is, when largely surounded of green it return "2.0" and when largely surounded of tranparancy it return "2.0".

The layer mentioned is a layer group in projection EPSG:900913 and the target layer is in projection EPSG:102164.

However, when I use the native projection of target layer the result is correct, has you can see in these URLs

http://map1.mapas.sapo.pt/server/wms?service=WMS&version=1.1.1&request=GetMap&layers=tdt_coverage&styles=&bbox=206799.81,360953.70,206800.27,360954.16&width=622&height=330&srs=EPSG:102164&format=image/png&&X=322&Y=160&INFO_FORMAT=text/html&QUERY_LAYERS=tdt_coverage

http://map1.mapas.sapo.pt/server/wms?service=WMS&version=1.1.1&request=GetFeatureInfo&layers=tdt_coverage&styles=&bbox=206799.81,360953.70,206800.27,360954.16&width=622&height=330&srs=EPSG:102164&format=image/png&&X=322&Y=160&INFO_FORMAT=text/html&QUERY_LAYERS=tdt_coverage

Is there a problem in coordinates transformation for GetFeatureInfo?

Another thing, these eratic results are not exactly the same as in 32 bit JVM, weird no?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira