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
1 answer
432 views

GeoServer returns blank image (completely transparent)

I have a recent issue occur where for certain styles GeoServer is returning blank, completely transparent images. See here for an example. GeoServer version is 2.17.2 This is occurring with GetMap ...
0 votes
0 answers
82 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: ...
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 ...
0 votes
0 answers
14 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/...
2 votes
1 answer
402 views

Double or triple 45 degree hatch in GeoServer - possible?

My end goal is to have a style like this in GeoServer: I have tried using ExternalGraphic in SLD but that only seems to work with vertical/horizontal hatch. Edit: By using ExternalGraphic with 45 ...
0 votes
1 answer
230 views

SVG not fully rendered in GeoServer

I was trying to load some SVG for point features, but some of the SVG symbols were partially rendered. Someone from the community suggested that the SVG with too large/small aspect ratio would cause ...
1 vote
2 answers
567 views

Problem with Geoserver SLD Style Encoding UTF-8 Chars

I have installed Geoserver 2.20.1 with Java JDK 15.0.2 ON Windows Server 2012 R2, when i add a new SLD style including UTF-8, Geoserver does not understand UTF-8 chars
1 vote
1 answer
945 views

Styling negative values in Geoserver via SLD [closed]

I have a PostGIS table that holds (numeric) values from -1 to +1. I would like to style these values in GeoServer so I created an SLD file in QGIS which looks like this: ---snip--- <?xml version=&...
1 vote
1 answer
201 views

GeoServer - render transformation reprojection issue

I'm visualizing a NetCDF file with the NetCDF plugin and using ras:contour rendering transformation to display the isolines. The raster data and contours look correct when checking the layer in the ...
-1 votes
1 answer
400 views

Use of PropertyName to source fill color from database table [closed]

We use QGIS to style spatial objects, then copy in to GeoServer. Generally this works well. However, we can't get GeoServer to source polygon fill colors from a column in a table. Here is the relevant ...
1 vote
0 answers
97 views

SLD- double line (offset) shows only one of two lines in legend

I've made a double line from a single line feature using the following code: <NamedLayer> <Name>Name1</Name> <UserStyle> <Title>Title1</Title> <...
0 votes
1 answer
30 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 ...
0 votes
1 answer
2k views

GeometryCollection styling in Geoserver

I am trying to style an GeometryCollection geometry data type from PotGIS table in Geoserver. I have not found any examples on the Internet how to do it nor is it supported in Geoserver or not. When I ...
0 votes
1 answer
53 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....
1 vote
0 answers
33 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 (...
7 votes
3 answers
1k views

How to remove tiny polygon outlines in geoserver sld?

The data I am using a polygon feature layer, consisting multiple polygons and I want to show the same without polygon outlines. In ArcGIS I simply use outline colour as no colour. This produce the ...
5 votes
1 answer
975 views

SLD - Is it possible to create a Rule that stylise only the first and last point of a Line?

I've read the SLD doc, but I can't find any clue on how to create an SLD file to add a graphic symboliser on the first and last point of a line. Does someone know how to do that ?
3 votes
3 answers
3k views

GeoJSON style in Leaflet from GeoServer

I have a GeoJSON point layer from GeoServer. As I recognised there are several ways to style. My question is, is it possible to style it using an SLD from GeoServer? I use AJAX request for importing ...
1 vote
3 answers
2k views

How to write SLD rules with data-defined symbol size and color?

I have shapefile with points. They are classified - Graduated colors. I made SLD file with ArcMap2SLDConverter. I have a task to manual edit SLD file to show symbol diameters relating to field Area. I ...
3 votes
1 answer
1k views

Adding the Legend title using GetLegendGraphic request in GeoServer to Leaflet

I am trying to load the dynamic legend for GeoServer using GetLegendGraphic request. My GetLegendGraphic URL is something like this, http://localhost/geoserver/wms?REQUEST=GetLegendGraphic&...
0 votes
0 answers
34 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.
1 vote
2 answers
330 views

SLD style not imported in geoserver while publishing it through REST API

I am using REST APIs to publish and change the default style of layers published in GeoServer. When I copy the SLD and paste it directly in the GeoServer styles it works fine. but while using REST API ...
0 votes
0 answers
34 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 ...
0 votes
2 answers
90 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 ...
1 vote
1 answer
140 views

How to represent an object at 25 differents dates

So basically, I have a map at day D. On this day X objects are represented with a color and full opacity. What I'd like to do is to be able to represent on this map the Y objects present on the map ...
2 votes
2 answers
415 views

SLD file with .png's to style points on a Geoserver OpenLayers map

The .png's are stored here: C:\Program Files (x86)\GeoServer 2.12.1\data_dir\styles. I have seen many different ways to incorporate a .png into Geoserver and none have worked for me. I have no idea ...
0 votes
2 answers
54 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 ...
1 vote
1 answer
266 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 ...
0 votes
0 answers
84 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 ...
2 votes
0 answers
2k views

GeoServer: Get styles from PostgreSQL/PostGIS table

We're running GeoServer with all layers coming from a PostGIS data source. Most people work directly on the PostGIS database, but we have one person sitting 10.000km away, and for him, connecting to ...
0 votes
1 answer
77 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><...
0 votes
1 answer
4k views

Geoserver SLD for OSM valdation errors

I'm trying to build a Geoserver (V2.0.2) style file for OSM data using https://github.com/FlorentDotMe/OSM-Styles-for-GeoServer as a starting point but they produce a number of validation errors Can ...
0 votes
2 answers
113 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"?> ...
1 vote
1 answer
105 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 ...
1 vote
1 answer
690 views

Using WMS server parameter SLD

I have an issue with using the parameter SLD in GetMap when using the WMS service via the geoserver's API. When passing a style into the parameters of a GET call to a WMS layer using the STYLES ...
0 votes
0 answers
96 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 ...
4 votes
2 answers
12k views

Styling remote WMS layer

I also posted this question on stackoverflow. I successfully overlaid a WMS layer in google maps v3, however, as the information on tiles is black on transparent, it is not well seen on dark ...
2 votes
2 answers
2k views

Styling OS Vectormap Local in QGIS?

I am attempting to style Ordnance Survey Vectormap Local on QGIS 1.8.0 by using the styling sheets suplied by Ordnance Survey. The styling sheets are available from the OS website (http://www....
3 votes
1 answer
576 views

Can single SLD contain styles for different layer shapes?

I'm interested in creating a single SLD that could be used for a layer group in GeoServer that contains layers in point, line and polygon shapes. According to the documentation it says: "...
0 votes
1 answer
51 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 ...
0 votes
2 answers
59 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 ...
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-...
0 votes
0 answers
18 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). ...
0 votes
1 answer
1k views

Using SLD Filter Difference

I have a PostGIS table with polygon geometries. I would like to create an sld which first does an inside buffer, and then a difference between the buffer and the original geometry. This is basically ...
2 votes
1 answer
141 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,...
4 votes
1 answer
525 views

Seeking parallel line function for slds

I am attempting to make an sld style which symbolizes a line with an offset. I have tried with filters, functions online graphics but can achieve only ugly results. The line consists out of 2 line ...
0 votes
0 answers
182 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 ...
1 vote
0 answers
48 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 ...
2 votes
1 answer
47 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" ...
0 votes
1 answer
130 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 ...

1
2 3 4 5
16