Using a LineSymbolizer on a polygon can lead to unexpected results, try just adding the stroke to the polygon symbolizer and deleting the second rule.
Ian
···
On 20 October 2017 at 08:28, alexandr bobrov (JIRA) <jira@anonymised.com> wrote:
Issue Type:
|
Bug
|
Affects Versions:
|
2.11.2
|
Assignee:
|
Unassigned
|
Attachments:
|
crones.sld, wrong_crones.png
|
Components:
|
WMS
|
Created:
|
20/Oct/17 9:28 AM
|
Environment:
|
postgresql 9.5, windows server 2012 r2 standart
|
Priority:
|
Medium
|
Reporter:
|
alexandr bobrov
|
Hello.
There is a base with trees. Trees may be single or multitrunk. Geometry of trees stored as point or multipoint. Also trees has crone diameter and sort id.
I want displayed map of crones. I create layer with such sql view
select
id,
sort,
ST_Buffer(geom::public.geography ,diametr_cron/2)::public.geometry as geom
FROM trees
sld like this (full sld in attachment):
<?xml version="1.0" encoding="WINDOWS-1251"?>
<sld:StyledLayerDescriptor xmlns="[http://www.opengis.net/sld](http://www.opengis.net/sld)" xmlns:sld="[http://www.opengis.net/sld](http://www.opengis.net/sld)" xmlns:ogc="[http://www.opengis.net/ogc](http://www.opengis.net/ogc)" xmlns:gml="[http://www.opengis.net/gml](http://www.opengis.net/gml)" version="1.0.0">
<sld:UserLayer>
<sld:UserStyle><sld:Name>crones</sld:Name><sld:Title/>
<sld:FeatureTypeStyle>
<sld:Rule>
<sld:Name>crone fill</sld:Name>
<sld:PolygonSymbolizer>
<sld:Fill>
<sld:CssParameter name="fill">#7a9083</sld:CssParameter>
<sld:CssParameter name="fill-opacity">0.8</sld:CssParameter>
</sld:Fill>
</sld:PolygonSymbolizer>
</sld:Rule>
<sld:Rule>
<sld:Name>crone border</sld:Name>
<sld:LineSymbolizer>
<sld:Stroke>
<sld:CssParameter name="stroke">#000000</sld:CssParameter>
<sld:CssParameter name="stroke-width">0.5</sld:CssParameter>
</sld:Stroke>
</sld:LineSymbolizer>
</sld:Rule>
</sld:FeatureTypeStyle>
</sld:UserStyle>
</sld:UserLayer>
</sld:StyledLayerDescriptor>
Attached picture demonstrate sample of wrong rendering.
|
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#100066-sha1:d6072bf)
|
Check out the vibrant tech community on one of the world’s most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Geoserver-devel mailing list
Geoserver-devel@anonymised.com.366…sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
–
Ian Turton