Mercurial > gemma
view style-templates/sounding_results_area.sld-template @ 4548:befb94e3a953 iso-areas
More debug output.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 30 Sep 2019 11:22:41 +0200 |
parents | e0d04cd8f992 |
children |
line wrap: on
line source
<?xml version="1.0" encoding="UTF-8"?> <StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:se="http://www.opengis.net/se" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd" version="1.1.0"> <NamedLayer> <se:Name>sounding_results_areas</se:Name> <UserStyle> <se:Name>sounding_results_areas</se:Name> <se:FeatureTypeStyle> <se:Name>area_colours</se:Name> <se:Description> <se:Abstract> FeatureTypeStyle defining colour classes for height attribute </se:Abstract> </se:Description> {{ range . -}} <se:Rule> {{- if not .HasLow }} <se:Name>≤ {{ printf "%g" .High }}</se:Name> <ogc:Filter> <ogc:PropertyIsLessThanOrEqualTo> <ogc:PropertyName>height</ogc:PropertyName> <ogc:Literal>{{ printf "%f" .High }}</ogc:Literal> </ogc:PropertyIsLessThanOrEqualTo> </ogc:Filter> {{- else if not .HasHigh }} <se:Name>> {{ printf "%g" .Low }}</se:Name> <ogc:Filter> <ogc:PropertyIsGreaterThanOrEqualTo> <ogc:PropertyName>height</ogc:PropertyName> <ogc:Literal>{{ printf "%f" .Low }}</ogc:Literal> </ogc:PropertyIsGreaterThanOrEqualTo> </ogc:Filter> {{- else }} <se:Name>≤ {{ printf "%g" .High }}</se:Name> <ogc:Filter> <ogc:And> <ogc:PropertyIsGreaterThan> <ogc:PropertyName>height</ogc:PropertyName> <ogc:Literal>{{ printf "%f" .Low }}</ogc:Literal> </ogc:PropertyIsGreaterThan> <ogc:PropertyIsLessThanOrEqualTo> <ogc:PropertyName>height</ogc:PropertyName> <ogc:Literal>{{ printf "%f" .High }}</ogc:Literal> </ogc:PropertyIsLessThanOrEqualTo> </ogc:And> </ogc:Filter> {{- end }} <se:PolygonSymbolizer> <se:Fill> <se:SvgParameter name="fill">{{ .Color }}</se:SvgParameter> </se:Fill> <se:Stroke> <se:SvgParameter name="stroke">#404040</se:SvgParameter> <se:SvgParameter name="stroke-width">0.5</se:SvgParameter> </se:Stroke> </se:PolygonSymbolizer> </se:Rule> {{ end }} </se:FeatureTypeStyle> <se:FeatureTypeStyle> <se:Name>area_labels</se:Name> <se:Description> <se:Abstract> FeatureTypeStyle for labels at colour areas </se:Abstract> </se:Description> <se:Rule> <!-- <se:MaxScaleDenominator>5e3</se:MaxScaleDenominator> --> <se:TextSymbolizer> <se:Label> <ogc:PropertyName>height</ogc:PropertyName> </se:Label> <se:Font> <se:SvgParameter name="font-family">Avenir</se:SvgParameter> <se:SvgParameter name="font-family">Helvetica</se:SvgParameter> <se:SvgParameter name="font-family">Arial</se:SvgParameter> <se:SvgParameter name="font-family">sans-serif</se:SvgParameter> </se:Font> <se:LabelPlacement> <se:LinePlacement> <se:PerpendicularOffset>5</se:PerpendicularOffset> </se:LinePlacement> </se:LabelPlacement> <se:Fill> <se:SvgParameter name="fill">#070707</se:SvgParameter> </se:Fill> </se:TextSymbolizer> </se:Rule> </se:FeatureTypeStyle> </UserStyle> </NamedLayer> </StyledLayerDescriptor>