[Geoserver-devel] [jira] Created: (GEOS-1484) OGC Filter not working with covrage and featuretypes layer combination

OGC Filter not working with covrage and featuretypes layer combination
----------------------------------------------------------------------

                 Key: GEOS-1484
                 URL: http://jira.codehaus.org/browse/GEOS-1484
             Project: GeoServer
          Issue Type: Bug
          Components: WMS
    Affects Versions: 1.5.3
         Environment: Microsoft Windows XP,
GeoServer 1.5.3,
Java 1.5.0_05

            Reporter: Ganesh Jothikumar
            Assignee: Andrea Aime
         Attachments: PageClick.log, PageLoad.log

1) I have created a coverage (layer name : top:basemap) based on a JPG file accompanie with a world file.
2) I have created a featuretype (layer name : topp:devicelocationview) which is based on a PostGIS view

Now I am overlaying the featuretype layer above the coverage layer using the below URL

http://localhost:8080/geoserver/wms?bbox=-2.763773148148148,-7445.0,9946.819560185184,1.6666666666666667&styles=&Format=application/openlayers&request=GetMap&layers=topp:basemap,topp:devicelocationview&width=800&height=561&srs=EPSG:4326

This works perfectly fine.

Now I want to filter the data queried from the feature type. So I am using OGC filter in teh URL as well. Since I have no filter for the coverage I am using '()' for the filter for the coverage.

http://localhost:8080/geoserver/wms?bbox=-2.763773148148148,-7445.0,9946.819560185184,1.6666666666666667&styles=&Format=application/openlayers&request=GetMap&layers=topp:basemap,topp:devicelocationview&width=800&height=561&srs=EPSG:4326&filter=()(<Filter><PropertyIsEqualTo><PropertyName>Mode</PropertyName><Literal>READER</Literal></PropertyIsEqualTo></Filter>)

But the filter is not getting applied. I have enabled ALL logs and the log output is attached as file (PageLoad.log)

Now when I click on the map to GetFeatureInfo I get a WMS exception. The log for the click action is attached as (PageClick.log)

This works perfectly fine if I the URL has only the featuretype layer and the filter is applied on it like below

http://localhost:8080/geoserver/wms?bbox=1175.0,-6428.5,8325.0,-741.5&styles=&Format=application/openlayers&request=GetMap&layers=topp:devicelocationview&width=800&height=597&srs=EPSG:4326&filter=(<Filter><PropertyIsEqualTo><PropertyName>Mode</PropertyName><Literal>READER</Literal></PropertyIsEqualTo></Filter>)

The problem seems to come only when it is overlayed on top of a coverage

Also this doesn't seem to happen when we overlay one featuretype over another featuretype and apply filters as in the following example (http://docs.codehaus.org/display/GEOSDOC/WMS+vendor+parameters).

If this is a bug please let me know a workaround with example on how to proceed with this.

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

     [ http://jira.codehaus.org/browse/GEOS-1484?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gabriel Roldán reopened GEOS-1484:
----------------------------------

OGC Filter not working with covrage and featuretypes layer combination
----------------------------------------------------------------------

                Key: GEOS-1484
                URL: http://jira.codehaus.org/browse/GEOS-1484
            Project: GeoServer
         Issue Type: Bug
         Components: WMS
   Affects Versions: 1.5.3
        Environment: Microsoft Windows XP,
GeoServer 1.5.3,
Java 1.5.0_05
           Reporter: Ganesh Jothikumar
           Assignee: Gabriel Roldán
            Fix For: 1.6.0-RC1

        Attachments: PageClick.log, PageLoad.log

1) I have created a coverage (layer name : top:basemap) based on a JPG file accompanie with a world file.
2) I have created a featuretype (layer name : topp:devicelocationview) which is based on a PostGIS view
Now I am overlaying the featuretype layer above the coverage layer using the below URL
http://localhost:8080/geoserver/wms?bbox=-2.763773148148148,-7445.0,9946.819560185184,1.6666666666666667&styles=&Format=application/openlayers&request=GetMap&layers=topp:basemap,topp:devicelocationview&width=800&height=561&srs=EPSG:4326
This works perfectly fine.
Now I want to filter the data queried from the feature type. So I am using OGC filter in teh URL as well. Since I have no filter for the coverage I am using '()' for the filter for the coverage.
http://localhost:8080/geoserver/wms?bbox=-2.763773148148148,-7445.0,9946.819560185184,1.6666666666666667&styles=&Format=application/openlayers&request=GetMap&layers=topp:basemap,topp:devicelocationview&width=800&height=561&srs=EPSG:4326&filter=()(<Filter><PropertyIsEqualTo><PropertyName>Mode</PropertyName><Literal>READER</Literal></PropertyIsEqualTo></Filter>)
But the filter is not getting applied. I have enabled ALL logs and the log output is attached as file (PageLoad.log)
Now when I click on the map to GetFeatureInfo I get a WMS exception. The log for the click action is attached as (PageClick.log)
This works perfectly fine if I the URL has only the featuretype layer and the filter is applied on it like below
http://localhost:8080/geoserver/wms?bbox=1175.0,-6428.5,8325.0,-741.5&styles=&Format=application/openlayers&request=GetMap&layers=topp:devicelocationview&width=800&height=597&srs=EPSG:4326&filter=(<Filter><PropertyIsEqualTo><PropertyName>Mode</PropertyName><Literal>READER</Literal></PropertyIsEqualTo></Filter>)
The problem seems to come only when it is overlayed on top of a coverage
Also this doesn't seem to happen when we overlay one featuretype over another featuretype and apply filters as in the following example (http://docs.codehaus.org/display/GEOSDOC/WMS+vendor+parameters).
If this is a bug please let me know a workaround with example on how to proceed with this.

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