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
0
votes
1 answer

Openlayers Styling WMS with SLD from external file problem

I am facing with problem how to use style in SLD format to styling WMS from geoserver. I would like to add SLD definition as variable ${sld} from external .js file: const sld = `
piorkoo
  • 35
  • 4
0
votes
0 answers

Geoserver not uploading styled layer descriptor(.sld) files

I'm currently having trouble uploading styled layer descriptor files onto geoserver. I have been trying to upload a styled layer however each time I click the upload (even validate or save) button nothing happens. I have tried with several…
Leelo
  • 1
  • 2
0
votes
0 answers

GeoServer 2.21 SLD - how to make complex text-based label

Can I create the "Label" like in the picture below and apply it to the "Layer" using the SLD? ! Source site for picture : https://sdimd-free.austrocontrol.at/mapstore/#/viewer/openlayers/121
kamranation
  • 1
  • 1
  • 1
0
votes
0 answers

getLegendGraphic in Geoserver does not display title

When a SLD have a dynamic fill color or dynamic stroke color, then the title is not displayed in the Legend when a legend is requested from Geoserver. See example below:
Skalla
  • 31
  • 3
0
votes
1 answer

How deep is mouse in Rectangle C++ & SDL2 (Position flickers between two positions)

I am creating a program, and I have a rectangle. Basically, I am creating a custom window inside the SDL2 window, which is a Rect, with another Rect being its toolbar. I am struggling for hours trying to figure how to detect how deep is the mouse…
user15182026
0
votes
2 answers

Dynamic SLD on Geoserver

Can somebody help me with this CSS sld on geoserver? If someone have better option rather than my approach, please suggest. [activity_group_id = 20] [application_status = 'PreSanction-Pending']{ mark:symbol('ttf://ESRI Business#39'); :symbol { …
SpiderMan
  • 15
  • 5
0
votes
0 answers

Change Geoserver layer style dynamicaly

I am loading a layer from Geoserver to OpenLayers using this code : overlays = new ol.layer.Group({ 'title': 'Couches', layers: [ new ol.layer.Image({ title: 'refer_22', source: new ol.source.ImageWMS({ …
obito M
  • 25
  • 5
0
votes
1 answer

Exporting sld with pyQgis

Is there a way to export the style of a layer thanks to pyqgis in a sld file? I didn't find it in the documentation. I am in a 3.x version of Qgis
0
votes
1 answer

How can data from a WMS Service be filtered by attribute value?

I am trying to filter out data from a WMS Service by the value of a certain attribute. Here is the WMS link:…
gecco15
  • 33
  • 7
0
votes
0 answers

which file(s) to modify in geotools source code to have different anchor points for directions(N,W,E,S,NW, ...) for point labels for maxDisplacement?

which file(s) to modify in geotools or geoserver source code to have different anchor points for directions(N,W,E,S,NW, ...) for point labels if maxDisplacement is used? If I use anchor point (1, 0.5) in geoserver sld file with maxDisplacement…
mmk
  • 1
  • 2
0
votes
2 answers

Geoserver style with condition

How can I use a different image (OnlineResource) depending on the attribute value? I have a feature with a 'number' attribute, I need to do something like: if number = 0 then OnlineResource = image 1 else OnlineResource = image 2
Robotoflex
  • 27
  • 6
0
votes
1 answer

How to define the style of objects in a collection for one record via SLD

How to define the style of objects in a collection for one record via SLD. For example, lines are separate, polygons are separate. For instance
0
votes
1 answer

Geotools Sld TextSymbolizer drawes text to wrong places

im using geotools GTRenderer as a Tileserver and have a SLD File for styling (taken from here https://docs.geoserver.org/stable/en/user/styling/sld/cookbook/points.html#point-with-styled-label):
Ludi
  • 433
  • 2
  • 16
0
votes
0 answers

Style error after importing SLD of QGIS in GeoServer Layer

I have a layer in GeoServer which opens when default style like "polygon" is selected in the publishing menu Layer opening with default style but when I change its style in WMS Settings, for which I have created a new style by importing the SLD of…
0
votes
1 answer

Geoserver Point Styling - Add values from a specific field from ALL records into label

I have data with overlapping points. (Exact locations) such as "name","lat","lon", "total employees" "Amtec", "50.33","22.10", "10" "Slivy", "50.33","22.10", "15" As you can see some records overlap and have exact locations. I am trying to create…
user2092856
  • 301
  • 5
  • 13