Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
A Styled Layer Descriptor (SLD) is an XML schema specified by the Open Geospatial Consortium (OGC) for describing the appearance of map layers.
2
votes
Accepted
How to request an sld style from geoserver by name
You can use the REST API to fetch styles by using a link like:
http://localhost:8080/geoserver/rest/styles/green.sld
3
votes
Error When Creating SLD
Everything in your Filter block must be in the ogc: namespace, so:
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>valor</ogc:PropertyName>
<ogc:Literal>baja< …
0
votes
Aligning dashed lines with SLD
There is an example of this in the SLD Cookbook. I think the key trick is to make the two dasharrays add up to the same length and then to offset the start of the lines by half that length. … I would experiment with your SLD but it's in the wrong namespace. …
1
vote
How to create graphic margin around labels in GeoServer using SLD?
I can't see anything obvious wrong, comparing
http://www.edpp.cz/geoserver/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=test_zabaged&WIDTH=256&HEIGHT=256&C …
1
vote
Is an SLD necessary for each layer?
No, it is perfectly acceptable to use the same style (generic) for every layer but then all your layers will look the same (a red square, a blue line, grey polygons, and simple rgb or greyscale raster …
3
votes
Accepted
Free GeoSserver SLD for 2009 TIGER line data (preferably Google Maps color scheme)
I was sure that there used to be a google like SLD but I can't find it - you may be able to start with https://github.com/mitchelljj/openstreetmap-sld and convert it to give what you are looking for. …
0
votes
How to create varying opacity within a layer in Mapserver?
I'm not sure if MapServer implements this but SLD allows you to specify the opacity of the line itself in the styling. …
1
vote
Accepted
How to get multiple SLD files of the same shapefile?
The simplest way to do this is to create the first SLD file using which ever tool you like. … Though from you description you should be able to have one SLD file with all the criteria in it, unless an object can have a 1 in multiple columns. …
4
votes
Accepted
Is it possilbe to change SLD from client side?
Easiest way is to have two SLD files and change the style in the WMS request depending on if you want labels on or off. … Or you could try to have a local SLD file and upload it with each request but that will be slower and much harder to handle on the client. …
1
vote
How to update a SLD file in GeoServer?
As you have guessed there is some more configuration going on behind the scenes in GeoServer when a SLD file is added to the server. … You will particularly want this section which describes the settings you'll need to post a SLD file. …
1
vote
Issue showing multiple labels on a polygon of OpenLayers2
In general SLD (though I haven't tested it in OpenLayers) you can do:
<sld:Label>
<ogc:PropertyName>XYZ</ogc:PropertyName>
<ogc:PropertyName>ABC</ogc:PropertyName> …
3
votes
Using sld in geoserver some states are not published
It's hard to answer this without seeing all of your data but I suspect that the states (?) that don't draw are not matching any of your filter elements. One way to check that is to include a Rule with …
1
vote
Accepted
Adding inward facing triangles on a polyline/polygon SLD Geoserver
You need to use a Graphic Stroke with a triangle shape
<LineSymbolizer>
<Stroke>
<GraphicStroke>
<Graphic>
<Mark>
<WellKnownName>extshape://triangle</We …
1
vote
Accepted
Using SLD <Mark> to construct multi-character font symbols
Sadly TTFMarkFactory where the magic happens only handles a single TTF code at a time.
AFAIK the only way to do this is to implement a custom MarkFactory or an ExternalGraphicsFactory. There is a pag …
4
votes
Removing Trailing Zeros in Geoserver SLD
You can use the numberFormat function. This allows you to specify how many digits you want after the decimal point.
Here is an example from MASS-GIS:
<TextSymbolizer>
<Label>
…