A Styled Layer Descriptor (SLD) is an XML schema specified by the Open Geospatial Consortium (OGC) for describing the appearance of map layers.

learn more… | top users | synonyms

2
votes
1answer
274 views

Geoserver not buffering external graphic in PointSymbolizer

We've got some Point data we're displaying in a WMS layer using geoserver 2.2 (same problem on 2.3.1). We style it with the following SLD <Rule> <PointSymbolizer> <Graphic> ...
2
votes
1answer
310 views

How to stack multiple graphics/marks/backgrounds on a single TextSymbolizer in Geoserver?

I tried simply adding two marks to a graphic, but only 1 got rendered. I tried adding two graphics to a TextSymbolizer, but only 1 got rendered. I tried adding two TextSymbolizers to the same rule, ...
1
vote
1answer
449 views

select (click) labels in openlayers

I have the following style for an OpenLayers vector layer. Color and Name come from Geoserver/PostGIS. I red that setting labelSelect to true, user can also click the label, not only the point and ...
1
vote
2answers
530 views

Arrow labels not rendered correctly

Geoserver SLD: <sld:LineSymbolizer> <sld:Stroke> <sld:CssParameter name="stroke"> <ogc:PropertyName>geo_color</ogc:PropertyName> </sld:...
1
vote
1answer
829 views

SLD encoding with GeoServer REST Configuration

I am using the GeoServer REST Configuration to add the following SLD file to GeoServer: <?xml version="1.0" encoding="ISO-8859-1"?> <StyledLayerDescriptor version="1.0.0" xmlns:ogc="http://...
4
votes
1answer
1k views

Geoserver SLD external graphic path

<Rule> <PointSymbolizer> <Graphic> <ExternalGraphic> <OnlineResource xlink:type="simple" xlink:href="glass.png" /> ...
2
votes
1answer
212 views

How to create graphic margin around labels in geoserver using sld?

I have a little problem using VendorOption - graphic-margin around labels of roads. In some cases they're drawn and somewhere they're not. You can see it on this picture. In the square its drawn ...
1
vote
1answer
125 views

How do I generate a WorldWind importable image file with a transparent background using an SLD file with PointSymbolizers on Geoserver?

I've been tasked with visualizing a few types of metoc data onto Worldwind based on .grib files. I'm VERY new to the GIS world and I'm just beginning to figure out how a lot of these pieces go ...
1
vote
0answers
27 views

Is it possible to change a symbol's default anchor point in Geoserver SLD?

I'm using Geoserver 2.6. I was wondering if it was possible de specify the anchor point for a symbol other than the exact center of the symbol. Here a piece of SLD file: <Rule> <...
1
vote
0answers
18 views

Geoserver SLD creation using a local image

Using this documentation I have made the below SLD file, attempting to use an svg that I obtained from here I have moved the svg into /var/lib/tomcat7/webapps/geoserver/data/styles but the image will ...
0
votes
1answer
20 views

sld styles library

I am looking for a library with several sld styles that I can add to my geoserver styles directory. I find the default styles provided very limited and do not want to spend to much time with creating ...
0
votes
3answers
364 views

Dynamic Styling with Geoserver

In Geoserver, a have a SLD style with a rule that looks like this <Rule> <ogc:Filter> <ogc:PropertyIsGreaterThan> <ogc:Function name="env"&...
1
vote
0answers
12 views

Dynamic Symbolizers w/ CQL not URL encoded

I am trying user Dynamic Symbolizers in my SLD: <?xml version="1.0" encoding="UTF-8"?> <StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:...
2
votes
1answer
37 views

Using dynamic property value in OnlineResource href against MongoDB store?

I am passing this SLD to geoserver: <?xml version="1.0" encoding="UTF-8"?> <StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http:/...
3
votes
1answer
31 views

Label every polygon in Geoserver multipolygon

I want to label all areas in a multipolygon in Geoserver using SLD. I have a map with two or three areas, but the label is only visible on the largest one. See attached images; the first image shows ...
1
vote
1answer
24 views

Styling multiple features in shapefile using GeoServer?

I have a shapefile loaded in a GeoServer instance, and I need some guidance on how to best style the output. The file is depicting public/private land ownership in the State of Colorado. The shapefile ...
0
votes
1answer
30 views

Geoserver tiles missing point labels that show up fine when serving as a single tile

Using Geoserver 2.8.2, I just loaded a new "address points" layer (shp files). I have a style I've used before, and perhaps this has happened in the past and I've not noticed, but with the custom ...
1
vote
1answer
22 views

SLD ogc filter for MS Sql server table

In geoserver only geometry type of SQL server table is detected. Which means SLD style can't be applied ogc filter tag. But none of my SQL server field beside geometry are detected by geoserver. How ...
2
votes
1answer
403 views

Can I use relative path for image in SLD 1.1.0

Can I use relative path in the SLD 1.1.0? When validating it in geoserver, it said Parsing failed for ExternalGraphic: java.lang.IllegalArgumentException: URI is not absolute SLD: <se:...
0
votes
1answer
17 views

Using external images on geoserver with dynamic url

I'm trying to get dynamic icon loading based on an attribute in GeoServer 2.9 My SLD: <sld:ExternalGraphic> <sld:OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="...
1
vote
0answers
14 views

Duplicate an existing geoserver style using gsconfig

I am playing around with gsconfig and trying to assign a new style on a layer I have created. What I want to do is to actually create a new style, which is the same with an existing one. I searched ...
0
votes
0answers
6 views

In geoserver styles how to get stroke colour value from propertyname? [duplicate]

for ex, <Stroke> <CssParameter name="stroke">#0000ff</CssParameter> <CssParameter name="stroke-width">1</CssParameter> </Stroke> in the ...
7
votes
8answers
7k views

SLD Editor with GUI? [closed]

I am setting up a GeoServer instance to serve up a few different PostGIS databases. I have GeoServer up and running however, it takes me forever to enter the SLD into GeoServer by hand. Is there a ...
1
vote
1answer
42 views

Geoserver CSS plugin - combining styles

I'm currently trying to write some SLD styles using the CSS plugin in geoserver. The problem is that the plugin merges single rules into complexed ones, ie. the following code generates 5 rules ...
2
votes
3answers
667 views

Is it possible to use simple Math in an SLD file on Geoserver?

Is it possible to use simple Math in an SLD file on Geoserver? Suppose I want to read a text size property from a database and multiply its value, how can I do this? <sld:TextSymbolizer> ......
0
votes
0answers
26 views

Unable to get the SLD file of existing style in Geoserver

I am trying to access some specific geoserver styles but I get an error page: HTTP Status 404 - The requested resource () is not available. This is the URL I use: http://localhost:8080/geoserver/...
1
vote
2answers
72 views

How to label lines with their length in GeoServer?

I would like to display land parcel dimensions on a map layer. The source layer in GeoServer has the parcel boundaries as line features. I made an attempt using the geomLength function in an SLD, ...
1
vote
2answers
29 views

How to convert JOSM MapCSS to SLD?

I've found an important style file, but it is only in MapCSS format: https://raw.githubusercontent.com/OpenSeaMap/josm/master/INT1_Seamark.mapcss I need to convert it to SLD to use in Geoserver. Can ...
1
vote
1answer
41 views

Geoserver SLD: setting fill color from property does not work

I'm trying to style a vector (Point) Layer in Geoserver 2.8 by using a property (attribute field) of the underlying data source. Here's the snippet: <PointSymbolizer> <Graphic> ...
0
votes
1answer
28 views

Styling selected objects with SLD

Does anyone knows - is it possible to style selected objects in Geoserver (using SLD) in different way than "normal" objects? For example: "normal" points from layer would be shown in blue, but ...
1
vote
2answers
34 views

How to only draw an inside or outside stroke around a polygon in GeoServer

If I add a stroke to a polygon SLD style, I get something that extends over both sides of the polygon boundary like this: I want to highlight certain polygons, some without drawing anything over ...
2
votes
4answers
1k views

Line stroke offset in Geoserver

Does anyone know how to offset a stroke in Geoserver? For example I will color the left side of the street (line feature) red and the other side (same line feature) blue. I believe I will be using 2 ...
0
votes
0answers
46 views

HTTP WMS GetMap using default SLD instead of provided one

Im trying to give a sld with my wms getMap request. My issue is that instead of using the provided sld it uses the default one. Am I missing something obvious? Here is the request: http://url.dev/...
4
votes
1answer
116 views

Using SLD in GeoServer with OpenLayers 3?

I am facing display problem in SLD. Working on Geoserver 2.8 & Open layer 3 I have one polygon layer in which I am applying SLD, when I view it in my web application polygon number is repeating ...
0
votes
2answers
142 views

How to crop coverage which is the result of gs:BarnesSurface with WPS chain in sld? It's throw a Error

I would like to perform a gs:CropCoverage of the Raster Layer which is the result of gs:BarnesSurface The SLD file is below: <?xml version="1.0" encoding="ISO-8859-1"?> <...
1
vote
1answer
53 views

SLD combine interpolate+categorize function and pass threshold

In my requirement I have a float atribute (value) containing values between 0 and 10. I want to use the interpolate function to color values between 0 and the threshold=5 in green colors and to ...
1
vote
0answers
35 views

How to specify distance between arrows in line sld in geoserver

i have designed sld for line format shape file in geoserver. in which i am using arrow symbol as shown in figure. the code is given <?xml version="1.0" encoding="UTF-8"?><sld:...
2
votes
1answer
32 views

How to specify default value for Rotation in SLD?

Am using geotools to render a set of point features. I have SLD for styling point features. The SLD uses an expression to calculate Rotation value based on Angle attribute value of feature. The ...
0
votes
1answer
39 views

how to call a function within an SLD

I have the below SLD and I I need to filter based on multiple (several dozen) that do not meet the criteria: <PropertyIsNotEqualTo> <PropertyIsLessThan> <PropertyIsLessThanOrEqualTo>...
1
vote
2answers
52 views

SLD : setting Multiple Values in one Literal Tag

Is it possible to use multiple values in one Literal tag? This is what I have: <ogc:PropertyIsEqualTo> <ogc:PropertyName>name</ogc:PropertyName> <ogc:Literal>...
1
vote
1answer
39 views

GeoServer - Multiple symbology on single layer

I'm trying to show multiple symbologies on a single GeoServer layer. I'm also using the CSS extension, but an SLD example would be fine. My GeoServer version is 2.8.2 For example: A yellow rectangle ...
1
vote
1answer
96 views

Changing background color to transparent in GeoServer?

How to set the background color to transparent. I want use style which describe in *.sld file for all my photo with tif format. How to do that?
0
votes
0answers
21 views

Transforming GML into image?

I am looking for a simple way to transform a GML file into an image. I have a number of SLD files to provide the formatting. In the past we used an XSLT style sheet to transform the GML into a SVG ...
1
vote
1answer
61 views

problem displaying inline features with geoserver sld

I am trying to display a simple inline feature on top of other features with geoserver. I need the top feature to be defined through sld. The sld does'nt give me any error but also does not display ...
1
vote
1answer
23 views

geotools : styling features based on a custom rule

I have a java swing app which loads lines shapefiles which represents a road system. I want to show the congested roads on this map with a separate style. My current approach I have two attributes ...
1
vote
1answer
1k views

Unexpected font family displayed using custom SLD from a published WMS using geoserver

When publishing a WMS in geoserver using a custom SLD file, I'm seeing the WMS preview correctly on my local geoserver. However, doing everything the same on a remote hosted geoserver, my seeing an ...
0
votes
1answer
63 views

Geoserver Dynamic Colormap using CQL won't work

I'm trying to create a dynamic heatmap using GeoServer 2.8.3, but when it comes to validating the colormap-part of my SLD i keep getting the same error: line 66: cvc-datatype-valid.1.2.1: '${env('...
1
vote
1answer
772 views

Geoserver SLD for min-max scale range display

I am new to GeoServer. I am trying to add a scale range to a layer that I am serving as a WMS. I want the layer to only be displayed between 1:30,000 and 1:1,000,000. I am using the max/min scale ...
0
votes
0answers
46 views

Adding a border of different color to a halo in StyledlayerDescriptor

How to add a border of different color to a halo in StyledLayerDescriptor. I am trying to add halo to my labels, but I want the border of the halo f different color than the halo. How to achieve that? ...
0
votes
1answer
42 views

Creating custom SLDs for Heatmaps using GeoServer

im trying to figure out whether it is possible to create a custom SLD to style heatmaps provided by GeoServer depending on dynamic data input. Already checked out the Rest api and some related ...