[Geoserver-devel] [JIRA] (GEOS-8914) SLD drawing order

Todd Fagin created an issue

GeoServer / BugGEOS-8914

SLD drawing order

Issue Type:

BugBug

Affects Versions:

2.13.0

Assignee:

Unassigned

Attachments:

UT_Wells_subset.zip

Created:

04/Sep/18 3:13 AM

Environment:

Windows (this is an issue both on a local Windows 10 box and a Windows Server. I don’t manage the Windows server, so I do not know the OS version).

Priority:

MediumMedium

Reporter:

Todd Fagin

We have a layer (shapefile) with a number of classes as indicated be the field entitled gs. In at least one instance, two points are in the identical location. For some reason, only one of the points was drawing. We tried multiple approaches, such as using multiple <FeatureTypeStyle> tags and ordering the rules in the SLD in the desired drawing order. We also tried using the <VendorOption name=“sortBy”>gs D</VendorOption> tags, but this also didn’t work, nor did setting transparency.

After several messages with Andrea Aime on the GeoServer-User listserv, he recommended we submit a bug report.

Since, we have continued to try to solve the issue, but the problems persist. Interestingly, when we regenerate the shapefile but order it descending based on an appropriate attribute field, we get the desired results. While this is great for this single instance, we fear there may be other instances. Additionally, the shapefile is regenerated every night as these are very dynamic data.

I am including two shapefiles, one called well_subset_asc and the other well_subset_desc. Each is a tiny subset of the full dataset, containing only three features. I am also including the original SLD (but truncated for the three features in the shapefiles). This doesn’t include the individuals <FeatureTypeStyle> or vendor options. Lastly, the zip file includes three SVG graphics we are using in the SLD.

When I use the SLD on the well_subset_asc, only one of the three points draws. When I use it on the well_subset_desc layer, two of the three points draw, but in this instance, the appropriate point we want to draw when the points are “stacked.”

Below are GetMap calls for each:

http://localhost:8001/geoserver/Utah/wms?service=WMS&version=1.1.0&request=GetMap&layers=Utah:wells_subset_asc&styles=&bbox=-110.37731170654297,40.25091552734375,-110.3753433227539,40.25101852416992&width=768&height=330&srs=EPSG:4326&format=application/openlayers

http://localhost:8001/geoserver/Utah/wms?service=WMS&version=1.1.0&request=GetMap&layers=Utah:wells_subset_desc&styles=&bbox=-110.37731170654297,40.250919342041016,-110.37529754638672,40.25101852416992&width=768&height=330&srs=EPSG:4326&format=application/openlayers

Thank you.

Todd

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#100091-sha1:0a6ef10)

Atlassian logo