Uploaded image for project: 'GeoServer'
  1. GeoServer
  2. GEOS-7655

WMS GetFeatureInfo with no fill Polygon (not returning results)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2.9.0
    • Fix Version/s: 2.9.2
    • Component/s: WMS
    • Labels:
      None
    • Environment:

      Ubuntu 14.04 VM (4G ram,4 processors), Java oracle 8, Geoserver 2.9 stable, openlayers 2.13

      Description

      This seems to be a reintroduction of a similar bug as discussed here

      http://osgeo-org.1560.x6.nabble.com/WMS-GetFeatureInfo-with-Polygon-td5163455.html

      We have styles with polygons with no fill but that do have a border.

      Using WMSGetfeatureinfo we get no features for these polygons unless we click on the border or label.

      We have worked around this by changing our styles to 1% opaciity

      A style where this occurs is:

      <?xml version="1.0" encoding="UTF-8"?><sld:StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:sld="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" version="1.0.0">
        <sld:NamedLayer>
          <sld:Name>MeathTownlands</sld:Name>
          <sld:UserStyle>
            <sld:Name>MeathTownlands</sld:Name>
            <sld:Title>SLD Cook Book: Simple polygon with stroke</sld:Title>
            <sld:FeatureTypeStyle>
              <sld:Name>name</sld:Name>
             
              <sld:Rule>
                <sld:Title>Townlands</sld:Title>
                <sld:PolygonSymbolizer>
                  <sld:Stroke>
                    <sld:CssParameter name="stroke">#FF0000</sld:CssParameter>
                    <sld:CssParameter name="stroke-width">0.2</sld:CssParameter>
                  </sld:Stroke>
                </sld:PolygonSymbolizer>
              </sld:Rule>
              <sld:Rule>
                <sld:MinScaleDenominator>7500.0</sld:MinScaleDenominator>
                <sld:MaxScaleDenominator>132100.0</sld:MaxScaleDenominator>
                <sld:TextSymbolizer>
                  
               <sld:Geometry>
                <ogc:Function name="centroid">
                  <ogc:PropertyName>the_geom</ogc:PropertyName>
                </ogc:Function>
              </sld:Geometry>
                  
                  <sld:Label>
                    <ogc:PropertyName>TNL_NAME</ogc:PropertyName>
                  </sld:Label>
                  <sld:Font>
                    <sld:CssParameter name="font-family">Arial</sld:CssParameter>
                    <sld:CssParameter name="font-size">12</sld:CssParameter>
                    <sld:CssParameter name="font-style">normal</sld:CssParameter>
                    <sld:CssParameter name="font-weight">bold</sld:CssParameter>
                  </sld:Font>
                  <sld:LabelPlacement>
                    <sld:PointPlacement>
                      <sld:AnchorPoint>
                        <sld:AnchorPointX>0.5</sld:AnchorPointX>
                        <sld:AnchorPointY>0.5</sld:AnchorPointY>
                      </sld:AnchorPoint>
                    </sld:PointPlacement>
                  </sld:LabelPlacement>
                  <sld:Halo>
                    <sld:Radius>1.0</sld:Radius>
                    <sld:Fill>
                      <sld:CssParameter name="fill">#FFFFFF</sld:CssParameter>
                    </sld:Fill>
                  </sld:Halo>
                </sld:TextSymbolizer>
              </sld:Rule>
            </sld:FeatureTypeStyle>
          </sld:UserStyle>
        </sld:NamedLayer>
      </sld:StyledLayerDescriptor>
      

        Attachments

          Activity

            People

            • Assignee:
              aaime Andrea Aime [Administrator]
              Reporter:
              xevxx david mcquillan
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: