[Geoserver-devel] [jira] (GEOS-5230) Superimposed points in shp files cause problems for SLD rotation

Alexandre Djioev created BugGEOS-5230
Superimposed points in shp files cause problems for SLD rotation

Issue Type:

BugBug

Assignee:

Andrea Aime

Attachments:

shp_error.png

Created:

18/Jul/12 3:22 AM

Description:

At this moment there is a drawing optimization that happens only for shapefiles that avoids painting superimposed points.

We have a use case when we want to render superimposed points with different azimuths. Because of optimization geoserver will render only the first feature resulting a feature showing only one azimuth instead of rendering a “flower”.

Demo SLD:

<?xml version=“1.0” encoding=“UTF-8”?>
<sld:StyledLayerDescriptor xmlns=“http://www.opengis.net/sld
xmlns:sld=“http://www.opengis.net/sld
xmlns:xlink=“http://www.w3.org/1999/xlink
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance
xmlns:ogc=“http://www.opengis.net/ogc
xmlns:gml=“http://www.opengis.net/gml” version=“1.0.0”>
<sld:NamedLayer>
<sld:Name>AZ</sld:Name>
<sld:UserStyle>
<sld:Name>AZ</sld:Name>
<sld:Title/>
<sld:FeatureTypeStyle>
<sld:Name>name</sld:Name>
<Rule>
<Name>az_rule</Name>
<Title>Azimuth</Title>
<Abstract>A 6 pixel square with a red fill and no stroke</Abstract>
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:type=“simple” xlink:href=“file:///usr/local/tomcat/webapps/geoserver/data/styles/azimuth_blue.svg” />
<Format>image/svg+xml</Format>
</ExternalGraphic>
<Size>50</Size>
<sld:Rotation>
<ogc:PropertyName>AZIMUTH</ogc:PropertyName>
</sld:Rotation>
</Graphic>
</PointSymbolizer>
</Rule>
</sld:FeatureTypeStyle>
</sld:UserStyle>
</sld:NamedLayer>
</sld:StyledLayerDescriptor>

Demo SVG:

<svg xmlns=“http://www.w3.org/2000/svg” xmlns:svg=“http://www.w3.org/2000/svg” version=“1.1” width=“200” height=“200”>
<path d=“M 100 100 L 70 10 Q 100 0 130 10 z”
fill=“blue” stroke=“black” stroke-width=“2” />
</svg>

Project:

GeoServer

Priority:

MajorMajor

Reporter:

Alexandre Djioev

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your [JIRA administrators](https://jira.codehaus.org/secure/ContactAdministrators!default.jspa). For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)