[Geoserver-devel] [jira] Created: (GEOS-4875) geometryType filter in SLD confuses GetFeatureInfo

geometryType filter in SLD confuses GetFeatureInfo
--------------------------------------------------

                 Key: GEOS-4875
                 URL: https://jira.codehaus.org/browse/GEOS-4875
             Project: GeoServer
          Issue Type: Bug
          Components: WMS
    Affects Versions: 2.1.2
         Environment: Windows Server 2003, Sun Microsystems Inc.: 1.6.0_25 (Java HotSpot(TM) 64-Bit Server VM)
            Reporter: Jes Wulfsberg Nielsen
            Assignee: Andrea Aime
            Priority: Minor
         Attachments: Failing SLD.xml

If an SLD styling uses the custom <ogc:Function name="geometryType"> to test for geometry type as part of a rule, GetFeatureInfo returns an empty result even if the geometry is drawn in the WMS request.
(Easily demonstrated in the built-in OpenLayers previw, using the attached SLD).

Simply including a dummy "else" rule at the bottom of the SLD, like
<Rule>
  <Title>Dummy else to work around GetFeature error</Title>
  <ElseFilter />
  <PointSymbolizer>
  </PointSymbolizer>
</Rule>
makes the GetFeatureInfo response work.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira