New answers tagged

2

Usually you draw a second layer over the top of the map with a different style and a filter that makes your selection specified in the CQL filter that goes with the selection layer.


2

For GeoServer 2.8.x you can use compositing to achieve a "inner stroke" effect, see here: http://docs.geoserver.org/2.8.x/en/user/styling/sld-extensions/composite-blend/example.html


1

You can use <PerpendicularOffset>5</PerpendicularOffset> A positive value places the offset line on the left of the line. In the example above the offset is 5 pixels. You can then specify the line thickness, so if you want an inner line 10 pixels wide and touching the perimeter, I would try setting the offset to 5 and the line thickness to 10. ...


2

I solve this option using VendorOption <sld:VendorOption name="polygonAlign">mbr</sld:VendorOption> <sld:VendorOption name="goodnessOfFit">0.3</sld:VendorOption> <sld:VendorOption name="partials">true</sld:VendorOption> --> <sld:VendorOption name="autoWrap">80</sld:VendorOption> ...


0

This is an old post but there is no clear solution.. I noticed something odd in the SLD. The <ogc:Function name="parameter"> of the <ogc:Function name="gs:CropCoverage"> should be close before the <ogc:Function name="gs:BarnesSurface"> starts, no? Anyway, this did get rid of the above error in my case. I was not yet successful in combining ...


0

You need to check if the value of rotation is null using a function: First you need an if_then_else function to select the outputs based on the isNull function's result. If the property is null it returns true and the if_then_else returns the first argument (the literal), if it is not null then it returns false and the second argument of the if is used (the ...


0

You need to compare the result of the function to true, so your example would look like: <ogc:Filter> <ogc:PropertyIsEqualTo> <ogc:Function name="in"> <ogc:PropertyName>type</ogc:PropertyName> <ogc:Literal>0</ogc:Literal> <ogc:Literal>23</ogc:Literal> ...


1

I would go with something like: <ogc:Function name="in"> <ogc:PropertyName>name</ogc:PropertyName> <ogc:Literal>1</ogc:Literal> <ogc:Literal>11</ogc:Literal> <ogc:Literal>62</ogc:Literal> <ogc:Literal>42</ogc:Literal> </ogc:Function> Alternatively generate a new ...


0

You can use other operators like: <PropertyIsEqualTo> <PropertyIsNotEqualTo> <PropertyIsLessThan> <PropertyIsLessThanOrEqualTo> <PropertyIsGreaterThan> <PropertyIsGreaterThanOrEqualTo> Check here the geoserver doc. For array, check the "in" comparison function.


2

As you can see in the documentation this is achieved by applying two (or more) marks to the point. So for your example something like: [usage='example'] { mark: symbol('square'), symbol('circle'); } [usage='example'] :nth-mark(1) { size: 16px; fill: yellow; } [usage='example'] :nth-mark(2) { size: 14px; fill: red; }



Top 50 recent answers are included