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
5
votes
3 answers

Geoserver SLD styling issue with external graphics and attribute rules

I am creating a SLD for Geoserver wms layer. The SLD validates without error but the icons will not show in the map. I am using attribute based rules to compare strings to have the correct image show for the correct feature. Here is my code and…
cstokes2
  • 105
  • 1
  • 2
  • 8
4
votes
3 answers

How to style transparent overlayed WMS layer

I successfully overlayed a WMS layer in google maps v3, however, as the information on tiles is black on transparent, it is not well seen on dark background (like satellite map), see some tile for example: (This was the WMS link to retrieve that…
Tomas
  • 57,621
  • 49
  • 238
  • 373
4
votes
0 answers

GeoServer 2.17 internal error rendering process failed

I have a problem with migrating from GeoServer 2.13.2 to 2.17 which serves WMS and WMTS for a simple web application. The problem is that in some zoom levels and some tiles, the layer preview of GeoServer give me the internal error rendering process…
4
votes
1 answer

Add a new filter into SLD

i want to update my sld. In my sld, there is not a filter but i want to apply a filter using the python,dynamically not by manually putting the values in sld. This is my sld.
tech_geek
  • 1,624
  • 3
  • 21
  • 44
3
votes
1 answer

How to change OpenLayers style?

I am very, very new to web mapping. I have an OpenLayers map made from shape file from PostGis database, have a vector layer and it has default style (GeoServer SLD), but I want to change style of vector layer when user click on refresh button. I…
user2189282
  • 31
  • 1
  • 4
2
votes
1 answer

SLD Geometry function 'area' returns different values at each zoom level

I'm using an SLD to label polygons with the derived area (cartesian) using the area function. I would expect that the area of the polygon would remain consistent - the polygon isn't changing size, but I'm finding that the area value changes at each…
epidemiks
  • 23
  • 3
2
votes
0 answers

Styling polygon dash-dot borders in GeoServer using SLD

I want to draw polygon borders using a pattern of dashes and other symbols like triangles or circles but most polygons share borders so I get an undesired result. Using this SLD code:
DMS02
  • 149
  • 4
2
votes
1 answer

SAXParseException Geoserevr SLD error

I want to change SLD of wms layer dynamically. In SLD string I have CssParameter XML tag that it has Hex color code like "#ff0000". When I post it to Geoserver I got this error: java.lang.RuntimeException: org.xml.sax.SAXParseException; lineNumber:…
SaamTehraani
  • 335
  • 4
  • 11
2
votes
1 answer

Dynamically style a WMS layer with Javascript from Geoserver

My web application serves a WMS layer to an OpenLayers map from Postgis via Geoserver 2.6.0, which works fine and as expected. The user can filter certain elements of the WMS layer by its attributes (via drop down boxes in the HTML) and the layer…
eluxon
  • 21
  • 1
  • 3
2
votes
1 answer

Geoserver Sld Not Working Correctly

I work with Geoserver and I use SLD for my layers my sld file is
javagc
  • 846
  • 1
  • 17
  • 37
1
vote
2 answers

How to use geoserver SLD style to serve single channel elevation raster ("gray" channel) as Mapbox Terrain-RGB tiles

I have an elevation raster layer in my GeoServer with a single channel ("gray"). The "gray" values is elevations values (signed int16). I have 2 clients: The first one is using that elevation values as is. The second one expect to get [Mapbox…
Meir Ivry
  • 35
  • 3
1
vote
0 answers

How to make the Geoserver SLD with vector layer(linestring geometry) if rasterize gray color lines to RGB color line using RasterSymbolizer Colormap?

I am a starter with the Geoserver. I created lineString vector layer with lineSymbolizer SLD style. And the vector layer is connected by postgis and that layer only have linestring geometry rowdata. other attributes values does not exist(only…
Moses Kim
  • 11
  • 2
1
vote
0 answers

Is there a way to associate a symbol style file .sld to a geojson file with QGIS

I have a QGIS project and i would like to export a point Geojson file with styles. The given style is a symbol for each point. I can generate .sld file but the Application i am working with takes only Gesojson as its input.
Izaganami
  • 11
  • 4
1
vote
0 answers

"Rendering process failed" error in Geoserver when i add an for an env parameter of my WMS request

I created a layer in Geoserver with a database of cities using a SQL VIEW query to retrieve only the cities valid for the year I am interested in. This layer contains city positions. Each city has as attributes its name, its population, a boolean…
1
vote
1 answer

Geoserver SLD Style - Space in propertyName

I'm trying to set up an sld style in Geoserver which references a column in a PostGIS view "Route Type". I'd like to have spaces in my column names as my goal is to create user friendly views for all my spatial data. With the sld below I get an…
giscoder12
  • 25
  • 4
1
2 3 4 5 6 7