[Geoserver-devel] [JIRA] (GEOS-7655) WMS GetFeatureInfo with no fill Polygon (not returning results)

david mcquillan created an issue

GeoServer / BugGEOS-7655

WMS GetFeatureInfo with no fill Polygon (not returning results)

Issue Type:

BugBug

Affects Versions:

2.9.0

Assignee:

Unassigned

Components:

WMS

Created:

26/Jul/16 11:36 AM

Environment:

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

Priority:

MediumMedium

Reporter:

david mcquillan

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>

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v1000.184.1#100008-sha1:1fb1cc9)

Atlassian logo