[Geoserver-devel] [JIRA] (GEOS-8842) GetFeatureInfo with same layer twice but different styles returns the features according to the first style only (and duplicated)

László Németh created an issue

GeoServer / BugGEOS-8842

GetFeatureInfo with same layer twice but different styles returns the features according to the first style only (and duplicated)

Issue Type:

BugBug

Affects Versions:

2.12.3

Assignee:

Unassigned

Created:

11/Jul/18 3:58 PM

Priority:

MediumMedium

Reporter:

László Németh

Steps to reproduce on demo data.

Workspace, Datastore and nyc Layer setup according to http://docs.geoserver.org/latest/en/user/gettingstarted/shapefile-quickstart/index.html

Create two styles as below.
Associate the styles to layer: nyc_roads.

Queries from browser:
1: return two road sections from roads other than Broadway
http://192.168.96.33:8080/geoserver/nyc/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&FORMAT=image%2Fpng&TRANSPARENT=true&QUERY_LAYERS=nyc%3Anyc_roads&STYLES=nyc_BROADWAY&LAYERS=nyc%3Anyc_roads&INFO_FORMAT=text%2Fhtml&FEATURE_COUNT=50&X=50&Y=50&SRS=EPSG%3A2908&WIDTH=101&HEIGHT=101&BBOX=986942.4708652133%2C213077.2430648932%2C988870.345253427%2C215005.11745310682

2: return two road sections from Broadway
http://192.168.96.33:8080/geoserver/nyc/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&FORMAT=image%2Fpng&TRANSPARENT=true&QUERY_LAYERS=nyc%3Anyc_roads&STYLES=nyc_BROADWAY&LAYERS=nyc%3Anyc_roads&INFO_FORMAT=text%2Fhtml&FEATURE_COUNT=50&X=50&Y=50&SRS=EPSG%3A2908&WIDTH=101&HEIGHT=101&BBOX=986942.4708652133%2C213077.2430648932%2C988870.345253427%2C215005.11745310682

3: SHOULD return all 4 sections, but only returns Broadway sections twice
http://192.168.96.33:8080/geoserver/nyc/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&FORMAT=image%2Fpng&TRANSPARENT=true&QUERY_LAYERS=nyc%3Anyc_roads,nyc%3Anyc_roads&STYLES=nyc_BROADWAY,nyc_not_BROADWAY&LAYERS=nyc%3Anyc_roads,nyc%3Anyc_roads&INFO_FORMAT=text%2Fhtml&FEATURE_COUNT=50&X=50&Y=50&SRS=EPSG%3A2908&WIDTH=101&HEIGHT=101&BBOX=986942.4708652133%2C213077.2430648932%2C988870.345253427%2C215005.11745310682

4: SHOULD return all 4 sections, but only return not Broadway sections twice
http://192.168.96.33:8080/geoserver/nyc/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&FORMAT=image%2Fpng&TRANSPARENT=true&QUERY_LAYERS=nyc%3Anyc_roads,nyc%3Anyc_roads&STYLES=nyc_not_BROADWAY,nyc_BROADWAY&LAYERS=nyc%3Anyc_roads,nyc%3Anyc_roads&INFO_FORMAT=text%2Fhtml&FEATURE_COUNT=50&X=50&Y=50&SRS=EPSG%3A2908&WIDTH=101&HEIGHT=101&BBOX=986942.4708652133%2C213077.2430648932%2C988870.345253427%2C215005.11745310682

nyc_BROADWAY with SLD content:
<?xml version=“1.0” encoding=“ISO-8859-1”?>
<StyledLayerDescriptor version=“1.0.0”
xsi:schemaLocation=“http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd
xmlns=“http://www.opengis.net/sld” xmlns:ogc=“http://www.opengis.net/ogc
xmlns:xlink=“http://www.w3.org/1999/xlink” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>

<NamedLayer>
<Name>Broadway only</Name>
<UserStyle>
<Title>Broadway only</Title>
<FeatureTypeStyle>
<Rule>
<Title>Broadway only</Title>
<Filter>
<PropertyIsEqualTo>
<PropertyName>name</PropertyName>
<Literal>BROADWAY</Literal>
</PropertyIsEqualTo>
</Filter>
<LineSymbolizer>
<Stroke>
<CssParameter name=“stroke”>#ff0000</CssParameter>
<CssParameter name=“stroke-width”>3</CssParameter>
</Stroke>
</LineSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>

nyc_not_BROADWAY with SLD content:
<?xml version=“1.0” encoding=“ISO-8859-1”?>
<StyledLayerDescriptor version=“1.0.0”
xsi:schemaLocation=“http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd
xmlns=“http://www.opengis.net/sld” xmlns:ogc=“http://www.opengis.net/ogc
xmlns:xlink=“http://www.w3.org/1999/xlink” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>

<NamedLayer>
<Name>Broadway only</Name>
<UserStyle>
<Title>Broadway only</Title>
<FeatureTypeStyle>
<Rule>
<Title>Broadway only</Title>
<Filter>
<PropertyIsNotEqualTo>
<PropertyName>name</PropertyName>
<Literal>BROADWAY</Literal>
</PropertyIsNotEqualTo>
</Filter>
<LineSymbolizer>
<Stroke>
<CssParameter name=“stroke”>#ff0000</CssParameter>
<CssParameter name=“stroke-width”>3</CssParameter>
</Stroke>
</LineSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100088-sha1:58ef012)

Atlassian logo