Skip to main content

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.

Filter by
Sorted by
Tagged with
0 votes
2 answers
52 views

Default SLD symbology broken in Kartoza's GeoServer docker-compose

I successfully ran a dockerized instance of GeoServer, using docker compose and the Kartoza images. The problem is that the default SLD styles seems to be broken. The validation of the SLD gives me ...
guillermo_dangelo's user avatar
0 votes
0 answers
22 views

Error with GeoServer: "The specified dimensional parameter is non-positive" when scale not 1 in SLD

I'm using a custom SLD style to render surface currents with GeoServer vesrion 2.20.3. This SLD structure works fine for other layers in order to display arrows. But for this perticular set of GeoTIFF ...
JulienRobitaille's user avatar
0 votes
0 answers
26 views

GeoServer Bulk TTF marks: my installed font is working when my legend uses my SLD style, but a WMS request of the same layer/style can't find it

I have an SLD style for a layer that uses Bulk TTF marks that point to a custom font I have installed on the host/geoserver. The font is showing up as available in the JVM fonts under Server Status ...
cevondanady's user avatar
1 vote
0 answers
25 views

GeoServer showing different style based on zoom

I have a .tiff file that I'm uploading to GeoServer. I'm able to create layer successfully, but when I'm viewing the data, it shows different colored image based on zoom (I have not configured style ...
krishna lodha's user avatar
2 votes
0 answers
37 views

Multi-language label in colormap SLD (GeoServer)

I would try to make my colormap available in different languages. In the documentation from the GeoServer and GeoTools I can't find any opportunity to do that. In the "standard" SLD with ...
MaTo's user avatar
  • 21
0 votes
0 answers
29 views

SLD doesn't display SVG image on certain PostGIS layers

I use a simple sample of SLD, that displays "test.svg" image via GeoServer (2.24.1) for point layers: <StyledLayerDescriptor version="1.0.0" xmlns="http://www.opengis.net/...
JA_LL's user avatar
  • 31
0 votes
0 answers
13 views

Trouble with GeoServer SLD Script - Point Layer Not Displaying Correctly

I'm facing an issue with GeoServer where a layer does not display correctly despite configuring a Styled Layer Descriptor (SLD) script to style the features based on attribute values. I've carefully ...
Niko's user avatar
  • 1
0 votes
1 answer
40 views

GeoServer SLD : Labels only showing in partial polygons

I have a GeoServer with a layer that is an SQL View containing a few polygons and a value. I made the SLD and I don't get why the label only shows up once in a while when the circle is partially out ...
James McGrath's user avatar
0 votes
1 answer
72 views

WMS Request sld& parameter has no effect

I am trying to use dynamic styling by providing the sld& parameter in the WMS request. The parameter is pointing to a local file that is modified by a script. Like this: sld=file:///D:/testStyle....
Șarif Omar's user avatar
1 vote
0 answers
38 views

SLD Inverted Polygon

I have a layer in QGIS that has a symbology as inverted polygon. However, I'm not able to export that in SLD (for showing it in GeoServer with geOrchestra). I have tried to write the code manually (...
user207536's user avatar
0 votes
0 answers
99 views

Geoserver SLD styling with multiple filters & Denominator

I have a WFS Store - I add a new layer from there and style it. Style is generating too long URL (Depending on a features requested). Often geoserver log is filled with. java.lang.RuntimeException: ...
Tomppeli's user avatar
0 votes
0 answers
38 views

How to symbolize line feature like the picture with GeoServer

I have a line featureclass, I want to symbolize as pic attached, all the number are different fields of the feature, I just don't know how to make the arrow box, with white and black part.
yan jet's user avatar
0 votes
0 answers
36 views

The TFF style is not displaying correctly, and the configured attributes are not being displayed correctly

(1)I imported the SLD exported from QGIS into GeoServer, but I noticed that the font symbols displayed are completely different in shape from what I see in QGIS, as shown in the image below. geoserver ...
苏云明's user avatar
0 votes
2 answers
99 views

How to use symbol systems configured in ArcMap in GeoServer

I configured symbol systems for some polygon features in ArcMap, which include symbols with fill patterns and some symbols with slanted lines. I exported these symbol systems as LYR files, then ...
苏云明's user avatar
0 votes
2 answers
68 views

When importing a style via SLD in GeoServer and previewing it, there is an issue with the Chinese legend names displaying as garbled characters

When I use an SLD file exported from QGIS to create a new style in GeoServer and then preview the style, there is an issue with the legend name displaying as garbled characters. QGIS windows as ...
苏云明's user avatar
0 votes
0 answers
103 views

Adding marker at dynamic location on WMS map with GeoServer

I need to generate a static map image with a marker at coordinates specified in the WMS request URL. I have a GeoServer instance which provides the WMS layer, and I am able to get static map images ...
stalemate's user avatar
  • 121
0 votes
1 answer
92 views

Width of lines determined by attribute value in SLD in GeoServer

I read in Size of points determined by attribute value in SLD in Geoserver, that it is possible to set the size of points via an attribute supplied by the data source as follows: <se:Size><...
William Dicks's user avatar
1 vote
1 answer
128 views

GeoServer SLD Polygon fill value from attribute value

I have a shapefile that includes a color HEX value in the hex_col column in the attribute table. index count bin hex_col 86bc1b29fffffff 1 Bin 1 #fee5d9 86bc51407ffffff 2 Bin 1 #fee5d9 ...
user2655827's user avatar
0 votes
0 answers
102 views

GeoServer 2.22.0 use JSON attribute into SLD Heatmap

I am trying to create a heatmap definition in SLD and as value I want to use a property inside a json attribute of the layer. I have a PostGIS instance connected to the GeoServer, and the attribute ...
Galletas Maria's user avatar
0 votes
1 answer
56 views

Point data from PostgreSQL to GeoServer symbology

I'm publishing a point dataset from PostgreSQL to GeoServer. When I leave default symbology for this dataset, GeoServer works fine and I'm able to see the data in QGIS as WMTS. When I change ...
Benas Pekarskis's user avatar
0 votes
2 answers
138 views

How to create contour map for wind speed using Geoserver?

I am new to using Geoserver and I am trying to create a contour map for wind speed. Is this SLD style correct to solve my problem? <?xml version="1.0" encoding="ISO-8859-1"?> ...
user avatar
0 votes
0 answers
19 views

Stylize multiple layers with same coordinates GeoServer

I have many light buoys and if a buoy have two colours, I have two layers buoys with their different attributes like this: However, I can't stylize the second layer with the second colour (green). ...
Clement's user avatar
0 votes
2 answers
69 views

Compare variable substitution to property in GeoServer SLD

I'm trying to create a layer style that displays point data as upward/downward triangles depending on if the property value is higher or lower than the provided variable substitution value. The ...
cevondanady's user avatar
0 votes
1 answer
31 views

Error while filtering data from a WMS with SLD LayerFeatureConstraints

Trying to filter a WMS layer with the following query: https://wms.geo.admin.ch/?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=true&LAYERS=ch.bafu.klima-...
Maxime Collombin's user avatar
2 votes
1 answer
164 views

Drawing arrow on line using SLD of GeoServer - add an offset to the arrow head

I have a style on GeoServer where lines have arrows at the end. I need to move arrow head back to make it end exactly on the line. Not after. SLD style look style this: I was trying too add an offset,...
Maria Savchenko's user avatar
0 votes
0 answers
206 views

Point Stacker GetFeatureInfo

I've got a sld globally inspired by those posts (and a lot of others): GeoServer – Creating Stacked Points GeoServer Point Stacker: does identify work on non-clustered points? Point Stacker in ...
FloCAD's user avatar
  • 33
1 vote
0 answers
51 views

Converting SLD to CPT

I have different DEM data I want to publish with GeoServer using SLD files for styling. No problem so far, I created the files in QGIS and can use them for the WMS. But additionally I would like to ...
Nunkuat's user avatar
  • 495
0 votes
1 answer
141 views

How to style layer group in Geoserver

I have three vector layers showing the same information but with a different level of details. In fact, despite the same symbology and attribute table, there is a need to display them at different ...
FloCAD's user avatar
  • 33
0 votes
1 answer
31 views

Upload already created SLD styles in GeoServer

I have locally created some SLDs and uploaded to the GeoServer corresponding 'styles' folder The idea is not to go through the GeoServer user interface to create the styles again (copy and paste via ...
user1249791's user avatar
0 votes
0 answers
71 views

GeoServer SLD styling: Ignore NaN values when generating pie chart

I want to create a style in GeoServer to display a pie chart based on four attributes. With the SLD code below I can create functional pie charts: <?xml version="1.0" encoding="ISO-...
GisUser's user avatar
  • 653
1 vote
1 answer
49 views

SVG rendering in GeoNode: SVG cut in 2

I try to have an SVG as a symbol in GeoNode but my svg is cut in 2. Here is my svg : and here's my layer style SLD in GeoServer <?xml version="1.0" encoding="UTF-8" ...
Céline Bassine's user avatar
1 vote
1 answer
89 views

GeoServer unable to validate SLD created in QGIS

I'm creating an SLD file using QGIS 3.28.3, but when I try to validate it in GeoServer I get the following error message: java.lang.RuntimeException: Parsing failed for Filter: java.lang....
granit's user avatar
  • 13
0 votes
1 answer
342 views

Set transparency for 3-channel GeoTIFF in GeoServer (with SLD, no alpha channel)

My GeoTIFF has 3 channels (RGB). I would like to generate a transparent output for pixels with R=0 AND G=0 AND B=0. Zero values should remain black in case there are values >0 in any other channel (...
luti's user avatar
  • 1
3 votes
2 answers
277 views

Creating polygon that should not move when panning the map QGIS

I would like to know if it is possible to create a polygon or even just add some text that will stay in the same place on the screen even when I pan the map (in the same way that a legend is always ...
Șarif Omar's user avatar
0 votes
1 answer
107 views

GeoServer WMS GetMap call with mix of cascaded named layer and inline userlayer fails

We are calling our own GeoServer WMS with GetMap requests using POST and SLD_BODY. The XML-content looks something like the below example. This gives us a bakground map with our own features overlayed ...
user223210's user avatar
0 votes
1 answer
52 views

Visualize polygons of shapefile in GeoServer with different colors for even and odd numbers of "id" field?

I have a polygon shapefile in GeoServer. I want to visualize the polygons with even ids in dark purple and odd ids in light purple. What is the SLD that can do it?
milad's user avatar
  • 719
4 votes
1 answer
135 views

WKT not using "metre" as measure unit in SLD

After solvig this question, seems WKT is not respecting my intent to use "metre" as measure of distance. I have this SLD: <FeatureTypeStyle> <Rule> <...
Magno C's user avatar
  • 2,140
1 vote
1 answer
159 views

Using WKT in SLD

I have a Point geometry and need to draw some shape (a Polygon for now) when styling. Lets say I have this SLD: <Rule> <PointSymbolizer> <Graphic> <Mark> &...
Magno C's user avatar
  • 2,140
0 votes
1 answer
36 views

Access and change SLD elements by code

Lets say we have this SLD in a file called "vessel.sld": <NamedLayer> <Name>Vessel Layer</Name> <UserStyle> <Title>GeoServer SLD Cook Book: ...
Magno C's user avatar
  • 2,140
2 votes
0 answers
333 views

GeoServer: Creating pie charts using SLD

I have created a layer in QGIS using pie charts as below: I wanted to export this style to SLD and import it into GeoServer and then apply it to a WMS. The export from QGIS to SLD does not work ...
GisUser's user avatar
  • 653
0 votes
1 answer
110 views

Why GeoServer illustrates SVG symbols only partially?

I have few SVG symbols that are names based on an attribute value of the table of attributes of my point ShapeFile layer. I want to illustrate the corresponding SVG for each point where the field &...
milad's user avatar
  • 719
0 votes
0 answers
93 views

Rotating Text and Graphic Parts Together in GeoServer SLD Point Layer Label

I am trying to develop an SLD style for GeoServer that represents the label of a point layer based on one of its fields. The label has a text part and a graphic part, which is a square with the length ...
Guille Galiano's user avatar
1 vote
0 answers
71 views

Change SLD file to add title

I have a SLD file generated from QGIS and added to GeoServer. My SLD is just like this: <?xml version="1.0" encoding="UTF-8"?> <StyledLayerDescriptor xmlns="http://...
Bárbara Duarte's user avatar
0 votes
2 answers
179 views

Geoserver SLD parsing error on filter

I'm wortking with GeoServer Version 2.20.4 and I have uploaded an SLD file generated with QGIS 3.22.9-Białowieża. When validating the code, however, I get the following error java.lang....
jpinilla's user avatar
  • 3,230
1 vote
1 answer
283 views

How to build a legend for polygon layer with fill color coming from data field?

I have a polygon layer published in GeoServer through PostgreSQL (PostGIS) and I am trying to build a legend to use with GetLegendGraphich. The layer is requested as WMS layer in client with Leaflet ...
Andre Silva's user avatar
  • 10.3k
2 votes
1 answer
134 views

How to know if WMS GetLegendGraphic supports bounding box? [closed]

I am working on an application where users can input WMS layers, which is displayed on a map along with the respective legend graphic. Now, I want to display content specific legend graphics based on ...
Lars Eivind's user avatar
1 vote
0 answers
12 views

SLD Layers transparent output from GeoServer [duplicate]

I have two layers in leafletjs. The first layer shows OpenStreetMap and I want a transparent layer above it. For this layer I have a heatmap and a UK coastline, both vector layers. I am trying to ...
Ian Bottomley's user avatar
0 votes
1 answer
88 views

Aligning dashed lines with SLD

I would like to create a dashed line with a repeated symbol like below, but with the dashed lines aligned between the symbols. How shall I think, right now I'm just guessing? Here is my current SLD: ...
Paul's user avatar
  • 477
2 votes
0 answers
73 views

java.lang.IllegalStateException during redraw with SLD

I would like to draw this border line on polygons: But sometimes when zooming/redrawing I get this Exception: feb. 08, 2023 1:01:37 EM org.geotools.renderer.lite.StreamingRenderer fireErrorEvent ...
Paul's user avatar
  • 477
2 votes
1 answer
368 views

Getting Styles in Layer Groups in GeoServer

Does anyone know how to get individual styles that have have been associated with layers in specific layer groups in GeoServer? (Layers can have more then one style, and after you add a Layer to a ...
John's user avatar
  • 66

1
2 3 4 5
16