Created
June 25, 2013 15:54
-
-
Save dwins/5859628 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
* { | |
label: [LABEL]; | |
label-anchor: 0 [ | |
if_then_else(in3(ANCHOR_PT, 0, 3, 6), | |
0, | |
if_then_else(in3(ANCHOR_PT, 1, 4, 7), | |
0.5, | |
1))] | |
} |
This file contains hidden or 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="UTF-8"?> | |
<sld:UserStyle xmlns="http://www.opengis.net/sld" xmlns:sld="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"> | |
<sld:Name>Default Styler</sld:Name> | |
<sld:Title/> | |
<sld:FeatureTypeStyle> | |
<sld:Name>name</sld:Name> | |
<sld:Rule> | |
<sld:TextSymbolizer> | |
<sld:Label> | |
<ogc:PropertyName>LABEL</ogc:PropertyName> | |
</sld:Label> | |
<sld:LabelPlacement> | |
<sld:PointPlacement> | |
<sld:AnchorPoint> | |
<sld:AnchorPointX>0.0</sld:AnchorPointX> | |
<sld:AnchorPointY> | |
<ogc:Function name="if_then_else"> | |
<ogc:Function name="in3"> | |
<ogc:PropertyName>ANCHOR_PT</ogc:PropertyName> | |
<ogc:Literal>0</ogc:Literal> | |
<ogc:Literal>3</ogc:Literal> | |
<ogc:Literal>6</ogc:Literal> | |
</ogc:Function> | |
<ogc:Literal>0</ogc:Literal> | |
<ogc:Function name="if_then_else"> | |
<ogc:Function name="in3"> | |
<ogc:PropertyName>ANCHOR_PT</ogc:PropertyName> | |
<ogc:Literal>1</ogc:Literal> | |
<ogc:Literal>4</ogc:Literal> | |
<ogc:Literal>7</ogc:Literal> | |
</ogc:Function> | |
<ogc:Literal>0.5</ogc:Literal> | |
<ogc:Literal>1</ogc:Literal> | |
</ogc:Function> | |
</ogc:Function> | |
</sld:AnchorPointY> | |
</sld:AnchorPoint> | |
</sld:PointPlacement> | |
</sld:LabelPlacement> | |
<sld:Fill/> | |
</sld:TextSymbolizer> | |
</sld:Rule> | |
</sld:FeatureTypeStyle> | |
</sld:UserStyle> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment