Progetto

Generale

Profilo

Nuova funzione #397 » geoserver-style-intensity.xml

Diego Sorrentino, 25-11-2020 13:46

 
<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor 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" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd">
<NamedLayer>
<Name>eventi</Name>
<UserStyle>
<Title>MagPrefValue</Title>
<FeatureTypeStyle>
<Rule>
<Title>Mag</Title>
<PointSymbolizer>
<Graphic>
<Mark>
<WellKnownName>circle</WellKnownName>
<Fill>
<CssParameter name="fill">
<ogc:Function name="Categorize">
<ogc:PropertyName>intensity_value</ogc:PropertyName>
<ogc:Literal>#A8A8A8</ogc:Literal>
<ogc:Literal>1.4</ogc:Literal>

<ogc:Literal>#5068AE</ogc:Literal>
<ogc:Literal>2.7</ogc:Literal>

<ogc:Literal>#0031BB</ogc:Literal>
<ogc:Literal>3.2</ogc:Literal>

<ogc:Literal>#0066D2</ogc:Literal>
<ogc:Literal>3.7</ogc:Literal>

<ogc:Literal>#009BE9</ogc:Literal>
<ogc:Literal>4.2</ogc:Literal>

<ogc:Literal>#00CA75</ogc:Literal>
<ogc:Literal>4.7</ogc:Literal>
<ogc:Literal>#01F901</ogc:Literal>
<ogc:Literal>5.2</ogc:Literal>
<ogc:Literal>#BEF701</ogc:Literal>
<ogc:Literal>5.7</ogc:Literal>
<ogc:Literal>#FDF401</ogc:Literal>
<ogc:Literal>6.2</ogc:Literal>
<ogc:Literal>#FDCF00</ogc:Literal>
<ogc:Literal>6.7</ogc:Literal>
<ogc:Literal>#FEA900</ogc:Literal>
<ogc:Literal>7.2</ogc:Literal>
<ogc:Literal>#FE7300</ogc:Literal>
<ogc:Literal>7.7</ogc:Literal>
<ogc:Literal>#FF0000</ogc:Literal>

</ogc:Function>
</CssParameter>
</Fill>
<Stroke>
<CssParameter name="stroke">#000000</CssParameter>
<CssParameter name="stroke-width">1</CssParameter>
</Stroke>
</Mark>
<Size>

<ogc:Function name="Categorize">
<ogc:PropertyName>n_valid_quests</ogc:PropertyName>

<ogc:Literal>3</ogc:Literal>
<ogc:Literal>2</ogc:Literal>

<ogc:Literal>5</ogc:Literal>
<ogc:Literal>9</ogc:Literal>

<ogc:Literal>10</ogc:Literal>
<ogc:Literal>49</ogc:Literal>

<ogc:Literal>20</ogc:Literal>
</ogc:Function>

</Size>
</Graphic>
</PointSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
(4-4/8)