Hello Everyone.
I have a layer with countrys information.
I have a simple SLD (at the end) for it that fills the polygon and draw the
surrondings.
All is fine and the result is as espected.
Now, i want to change the SLD for the surroundings of the polygon (stroke),
only gets drawed if it has another polygon adjacent to it.
In short, i only want to draw the countrys borders and not all of it.
i have a property with the country name. I cant distinguish by that, but i
dont know how.
Intercect, touches.. i havent been hable to make this to work.
I dont know how to make a condition that states something like:
my current coutryNameProperty is FR. if i have a polygon next to me with
coutryNameProperty diferent than mine, then draw the border.
Any help will be greatly apreciated.
Regards
<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/sld 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>countryLayer</Name>
<UserStyle>
<Title>countryLayer</Title>
<Abstract>countryLayer</Abstract>
<FeatureTypeStyle>
<Rule>
<Name>countryLayer</Name>
<ogc:Filter>
<ogc:PropertyIsGreaterThan>
<ogc:PropertyName>isLand</ogc:PropertyName>
<ogc:Literal>0</ogc:Literal>
</ogc:PropertyIsGreaterThan>
</ogc:Filter>
<PolygonSymbolizer>
<Fill>
<CssParameter name="fill">#F4F4F4</CssParameter>
</Fill>
<Stroke>
<CssParameter name="stroke">#666666</CssParameter>
<CssParameter name="stroke-width">0.1</CssParameter>
</Stroke>
</PolygonSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/SLD-Rule-for-Country-Borders-tp5107997.html
Sent from the GeoServer - User mailing list archive at Nabble.com.