Questions tagged [sld]

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

Overview

An SLD is capable of describing the rendering of vector and raster data. A typical use of SLDs is to instruct a Web Map Service (WMS) how to render a specific layer.

Other references

Styled Layer Descriptor (SLD) - Wikipedia

Tag usage

Consider whether the question is more suitable on Stack Overflow SE or GIS SE.

91 questions
1
vote
1 answer

How to concatenate two labels (one string and one double type) in my sld code?

I'm creating a style in geoserver and need to concatenate two different data type (one is string, the other is double) but it's not working. someone can help me? i'm using geoserver 2.16 version and here's the code i've made:
Brenda B
  • 11
  • 1
1
vote
0 answers

Geoserver: how to deal with overlapping labels on overlapping polygons

I've got overlapping polygons with labels and looking for an opportunity to display them (labels) without overlaying. example screen Here are the options i've tried in SLD:
Kryzpoo
  • 11
  • 2
1
vote
1 answer

Get layer name in SLD

Is there any element or function we can use to get the current layer name in SLD? We're requesting multiple layers, and would like to use the same style for each one, but with small customizations such as color change etc. depending on the layer. I…
Stsje
  • 31
  • 1
  • 3
1
vote
1 answer

Geoserver symbols scale differently in different CRS

I am using Geoserver and am getting some odd behaviour with point symbols via WMS. If I request an image using GetMap in EPSG:27700 I get this image: However, if I do the same request using EPSG:3857. I get this: These images are of a layer group…
1
vote
1 answer

SLD code not working, but not showing any error message

I wrote some SLD code to style my map layer, which is stored on GeoServer. The GeoServer input window for SLD does not show any error message, but when I open my map in OpenLayers it does not show the map as i wish. In this case, my intend is to…
WillG
  • 41
  • 7
1
vote
1 answer

SLD Filter MAX function

'density' is a table column, which max value I want to get density
Cold Pol
  • 13
  • 2
1
vote
0 answers

I'm having trouble styling a raster layer with a sld file

I'm trying to style a raster layer using SLD. This layer is displayed on a mapbox map. I have encountered two problems: It's supposed to create a gradient interpolated across all specified colours, but there is no gradient... Colours are changing…
Louis Chaussé
  • 167
  • 4
  • 11
1
vote
1 answer

Encoder in GeoTools does not work for SLD

I'm trying to use GeoTools to write SLDs on the fly for an application I am developing. But try as I might, I can't get the SLDs to be output. Starting with an SLD that looks like this:
Michael
  • 47
  • 5
1
vote
1 answer

GeoServer - use SLD as include in another SLD

I have a big SLD that defines many rules for line geometries. I would like to reuse this SLD in another SLD that have rules for points too. Does GeoServer supports this?
Diego Victor de Jesus
  • 2,575
  • 2
  • 19
  • 30
1
vote
1 answer

Modifying an XML File - Dividing values

I am looking to modify certainly values with in a xml file by dividing them. I need to divide the values for se:SvgParameter[name="stroke-width"] and se:Size by 3.6. I found this tutorial on Python.org, Modifying an XML File, but it doesn’t seem to…
1
vote
1 answer

Converting SLD from 1.1 to 1.0 via python

I currently try to convert an SLD, a type of XML, from one version to another by writing a python script. I’ve been bang my head against it for nearly two weeks and I’m making little progress. I am really new to python and would appreciate any…
1
vote
0 answers

SDL image add Blur filter to code in C

I have code using SDL libary. Code loading image. We can save new image and add some filter and this is my issue. #include #include #include #include "SDL.h" #include "SDL_image.h" void Filter(unsigned char * buf,…
Kama
  • 33
  • 3
1
vote
3 answers

Can you reuse fragments of XML (in some kind of variables/references way)?

I am using SLD to style output from my geoserver. I have couple types of objects to be displayed. Each type have different icons, but text description is generated from the same information (text field in the database). I cannot use object_type as…
rkj
  • 8,787
  • 2
  • 29
  • 35
1
vote
2 answers

Geoserver 2.10 Openlayers 3 TextSymbolizer label not showing up

I am new to geoserver and sld. I have 2 layers on top of my OSM base layer. One for creating a heatmap and one just for the label. My heatmap and base layer is rendering fine but the label text is not showing up in openlayers. When I preview it in…
Wiredo
  • 220
  • 3
  • 14
1
vote
1 answer

Apply SLD to WMS Layer by OpenLayers 3

I want to change SLD of WMS layer dynamically. I Can apply Geoserver saved SLD by STYLES param but when I want to apply SLD by SLD_BODY it send request but nothing happen. I think everything is well but SLD does not apply to layer. Here is the…
SaamTehraani
  • 335
  • 4
  • 11