Skip to content

Instantly share code, notes, and snippets.

@dwins
Created October 26, 2010 19:19
Show Gist options
  • Save dwins/647583 to your computer and use it in GitHub Desktop.
Save dwins/647583 to your computer and use it in GitHub Desktop.
* {
mark: url("http://example.com/example.jpg");
mark-size: [ATTR * 6];
}
<?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:PointSymbolizer>
<sld:Graphic>
<sld:ExternalGraphic>
<sld:OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://example.com/example.jpg"/>
<sld:Format>image/jpeg</sld:Format>
</sld:ExternalGraphic>
<sld:Size>
<ogc:Mul>
<ogc:PropertyName>ATTR</ogc:PropertyName>
<ogc:Literal>6</ogc:Literal>
</ogc:Mul>
</sld:Size>
</sld:Graphic>
</sld:PointSymbolizer>
</sld:Rule>
</sld:FeatureTypeStyle>
</sld:UserStyle>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment