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

Styling raster and vector layers using remote sld in mapserver

I have a mapfile and a remote sld that I want to use to style my vector layer. But each time I put a request the map is returned without a style. My mapfile is as follows: MAP NAME "MAPSERVER QUICKSTART" EXTENT -137 29 -53 88 UNITS DD SHAPEPATH…
kartoza-geek
  • 341
  • 1
  • 6
  • 20
1
vote
1 answer

Upload SLD's graphic using geoserver's REST API

How to upload SLD's graphic using geoserver's REST API. I have managed to upload SLD's style file but I do not see any possibility to upload graphic which style is using.
David Warsow
  • 155
  • 1
  • 4
  • 12
1
vote
1 answer

SLD - place label on each multipoint

I have a multipoint geometry (a single geometry containing multiple points) and I want to place a label on each of the points (the label is always the same). Is it possible to achieve this with SLD? Right now the label is only displayed on a single…
Jure M.
  • 23
  • 5
1
vote
1 answer

Set sld font based on map scale - geoserver/sld

I am using GeoServer environment. I am trying to setup font size using sld based on scale. So far I have the following:
Robert Smith
  • 779
  • 1
  • 10
  • 28
1
vote
1 answer

SLD Filter function if_then_else argument #2 - expected type Object

I'm facing a problem with the GeoServer SLD XML. My XML code is as follows:
zeodtr
  • 10,645
  • 14
  • 43
  • 60
1
vote
0 answers

coloring layer with sld based on mysql return value

Hello i'm trying to fill my wms layer using sld with return value from mysql. let's say i have population value which will be divided into 4 four categories. my map attributes only consist of polygon shapes and province. each province will have…
Gamma
  • 331
  • 1
  • 3
  • 15
1
vote
1 answer

how to fill color in sld with the feature's attribute

for example: here is a grass feature like this: id,area, level 1,geometry, 24 2,geometry, 56 ... i wount to write a sld file that display color according to the attribute level, like this :
tedeum
  • 185
  • 3
  • 14
1
vote
0 answers

can I name stlyes of Geosever (SLD) in Chinese?

I have occured a problem when I tried to name styles of Geoserver in Chinese. I want to know whether Geosever supports styles with Chinese name.
0
votes
0 answers

laravel-admin use url/prefix 404 not found

server { listen 80; listen [::]:80; server_name www.kakura.com; rewrite ^(.*) https://$server_name$1 permanent; } server { listen 443 ssl; server_name kakura.com www.kakura.com; charset utf-8; …
0
votes
2 answers

Geoserver WMS-Style set dynamically

I am trying to dynamically style a Geoserver-WMS using userinput on my website. My Idea was to use a proxy-script to create the new sld, delete the layer from the map and add a new one configured with the new style parameter. This is fine so far,…
Felix
  • 91
  • 1
  • 1
  • 10
0
votes
0 answers

Converting and Importing Google Earth Layer with KML Styles into GeoServer (SLD Format) - Styling Discrepancy

I am facing a challenge while trying to import a layer from Google Earth into GeoServer. The styles in Google Earth are in KML format, while GeoServer requires SLD format for styling. As a result, the imported layer in GeoServer does not retain the…
0
votes
1 answer

Geoserver style increase size when user zooms

I have a style with some rules
adrian
  • 97
  • 2
  • 12
0
votes
1 answer

Geoserver SLD: Dynamic BBOX Thematic Shading

I'm not sure if this is possible within Geoserver so wanted to ping to the community. I have a table in a database (~3m rows), this table has a column of counts in it and I want to thematically shade the data by Equal Count or Equal Range or %…
0
votes
2 answers

Nested Rules in SLD and/or nested filters

I am trying to create a SLD for symbology in a map. The map contains 9 counties with cultural assets by category and type. Current symbology is based on type. I would like to duplicate the map for each county and only show the assets in that county…
plbata
  • 13
  • 2
0
votes
1 answer

SLD Dynamic Graphic Size

Does anybody know that is possible to make the value of tag to dynamic in SLD? I'm using geoserver to define a style, but I need more different size objects. I mean like this:
Palcsi
  • 43
  • 1
  • 7