Progetto

Generale

Profilo

Nuova funzione #397 » geoserver-style-events.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>star</WellKnownName>
<Fill>
<CssParameter name="fill">
<ogc:Function name="Categorize">
<ogc:PropertyName>intensity_value</ogc:PropertyName>
<ogc:Literal>#ffcb16</ogc:Literal>
<ogc:Literal>10</ogc:Literal>

<ogc:Literal>#ffff00</ogc:Literal>
<ogc:Literal>20</ogc:Literal>

<ogc:Literal>#27b700</ogc:Literal>
<ogc:Literal>60</ogc:Literal>

<ogc:Literal>#0059d2</ogc:Literal>
<ogc:Literal>300</ogc:Literal>

<ogc:Literal>#dd59d2</ogc:Literal>
<ogc:Literal>500</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>mag_pref_value</ogc:PropertyName>

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

<ogc:Literal>10</ogc:Literal>
<ogc:Literal>4</ogc:Literal>

<ogc:Literal>14</ogc:Literal>
<ogc:Literal>5</ogc:Literal>

<ogc:Literal>18</ogc:Literal>
<ogc:Literal>6</ogc:Literal>

<ogc:Literal>20</ogc:Literal>
</ogc:Function>
</Size>
</Graphic>
</PointSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
(5-5/8)