Created
May 1, 2017 03:30
-
-
Save chingchai/c66ea001c80a3e33a3d756694c86a64b to your computer and use it in GitHub Desktop.
SLD Geoserver - Point show all labels
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>Point show all labels</Name> | |
<UserStyle> | |
<Title>Chingchai: Point show all labels</Title> | |
<FeatureTypeStyle> | |
<Rule> | |
<PointSymbolizer> | |
<Graphic> | |
<Mark> | |
<WellKnownName>circle</WellKnownName> | |
<Fill> | |
<CssParameter name="fill">#FF0000</CssParameter> | |
</Fill> | |
</Mark> | |
<Size>6</Size> | |
</Graphic> | |
</PointSymbolizer> | |
<TextSymbolizer> | |
<Label> | |
<ogc:PropertyName>vill_nam_t</ogc:PropertyName> | |
</Label> | |
<Font> | |
<CssParameter name="font-family">tahoma</CssParameter> | |
<CssParameter name="font-size">8</CssParameter> | |
<CssParameter name="font-style">normal</CssParameter> | |
<CssParameter name="font-weight">bold</CssParameter> | |
</Font> | |
<LabelPlacement> | |
<PointPlacement></PointPlacement> | |
</LabelPlacement> | |
<VendorOption name="maxDisplacement">10</VendorOption> | |
<VendorOption name="labelAllGroup">true</VendorOption> | |
<VendorOption name="goodnessOfFit">0.3</VendorOption> | |
<VendorOption name="spaceAround">0</VendorOption> | |
</TextSymbolizer> | |
</Rule> | |
</FeatureTypeStyle> | |
</UserStyle> | |
</NamedLayer> | |
</StyledLayerDescriptor> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment