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
1 vote
1 answer
35 views

How to define an empty default-style?

I want to skip the feature that does not match any rules. I want GeoServer to draw nothing. And now I can achieve my goal in the way that using opacity=0 would make a transparent drawing. But I am ...
Beettle Juice's user avatar
0 votes
0 answers
19 views

GeoServer Loader class not loading SLD styles

I have a problem when importing styles into GeoServer via our import functionality that takes a backup ZIP file with a workspace file structure, containing styles as well, and loads it with ...
macinos's user avatar
0 votes
1 answer
17 views

How can I change SVG resource using <ogc:Function name="env">

I made a SLD styling file, and I want to change SVG resource dynamically, by using function 'env', so that I can pass the parameter 'href' on client-side. On the other hand, it's acceptable to change ...
Beettle Juice's user avatar
0 votes
0 answers
16 views

How to determine if a property (int array) meets the filters

The property named 'catalog' is an array of Int4 in postgresSQL. [1,2,3,5,8] i want to filter some records that contains '1' or '2',how can i filter it? The GPT answer : <ogc:Filter> <ogc:...
Beettle Juice's user avatar
1 vote
1 answer
15 views

How can I make a point-pattern-fill interlaced symbol in GeoServer SLD

I want to make a point-pattern-fill symbol which is interlaced styling in Geoserver, but seem like impossible. Could you guys show me how to make this style?
Beettle Juice's user avatar
0 votes
3 answers
33 views

Why does SLD apply two Rules

I got three Rules: <Rule> <name>rule1</name> <ogc:Filter>....</ogcFilter> <Symbolizer/> </Rule> <Rule> <name>rule2</name> <...
Beettle Juice's user avatar
1 vote
1 answer
26 views

How to change styles (style group) for a LayerGroup

I made a LayerGroup Name 'basemap' which includes layerA and layerB. When I try to style it, I found the params 'styles' does not work. var baseMapLyr = new ol.layer.Tile({ name: 'basemap', ...
Beettle Juice's user avatar
0 votes
2 answers
49 views

How to select <Rule> according to env params in GeoServer SLD

I want to make some Rule depends on my env params. if my params equals 'a',then select a, if my params euqals 'b',then select b, what should I do ? <?xml version="1.0" encoding="...
Beettle Juice's user avatar
0 votes
1 answer
32 views

Style group of values different in a raster dataset in GeoServer-SLD

I have a GeoTIFF raster with different "parts" of values that should be displayed. One part is the typical span of values that should be displayed in a color ramp (0 to 4000). The other is ...
ErikBoehm's user avatar
0 votes
1 answer
35 views

Else condition in sld styling

I have a point table which I style using the PropertyName Type. I have defined the rules and style for many types but I want to catch any unknown type which I have missed. Isnt there some easier way ...
Bera's user avatar
  • 76.2k
0 votes
0 answers
19 views

Issue with authoring attribute driven text label SLDs for QGIS

I'm attempting to create attribution-driven SLDs, for text labels, that will work within QGIS. This is giving me issues and I'm not quite sure how to proceed. As a simplistic example of what's ...
GbHeathcoteOS's user avatar
0 votes
0 answers
13 views

How to calculate attributes for SLD with GeoServer [duplicate]

When I use <ogc:Literal>5+5</ogc:Literal>, the calculation does not work. Is there a way to perform calculations in GeoServer SLD?
user247498's user avatar
1 vote
1 answer
43 views

GeoServer - Assign color to the feature based on HEX/RGB value from the attribute

I need to color polygons based on HEX value from attribute. Is that possible? To create categories by colors is not really good solution for me, since in future more colors will be added which I don't ...
Maria Savchenko's user avatar
0 votes
1 answer
31 views

SLD styling a polygon with a base fill and a transparent pattern png

With geoserver 2.25, I am trying to add a graphic fill overlaid on a base color with an external graphic. Here is my code but it is not working. <Rule> <Name>Qafy</Name> ...
Jay Hill's user avatar
0 votes
0 answers
35 views

Passing style to GeoServer layer group

We have two layers from PostGIS views defined in Geoserver Layers, the district layer will be overlayed on the point layer, and we defined the point layer with total three styles, we are able to pass ...
SpiderMan's user avatar
0 votes
0 answers
52 views

Pixelated Images in Geoserver SLD-Style

I use external png graphics for a fill-style in geoserver. I directly upload them via the upload image dialogue in the SLD-editor. In the preview of the SLD-editor the icons look quite crips. However, ...
MrSalamikuchen's user avatar
1 vote
1 answer
22 views

Reprojection during SLD styling

I wrote a number of SLD styles that make use of wms_bbox to nicely arrange labels based on what portion of certain geometries are visible. After a lot of debugging, I found out that this only works ...
Will's user avatar
  • 31
2 votes
0 answers
50 views

When creating polygon fill symbols in GeoServer, how do I configure the initial position offset for the fill pattern?

I would like to create a surface fill symbol system which consists of three layers. The first layer is a solid fill; the second layer is a graphic fill; and the third layer is a duplicate of the ...
苏云明's user avatar
0 votes
1 answer
38 views

GeoServer, SLD version is changed during download

I have a SLD (version 1.1.0) on GeoServer (version 2.24.2) <?xml version="1.0" encoding="UTF-8"?> <StyledLayerDescriptor xmlns="http://www.opengis.net/sld" ...
JA_LL's user avatar
  • 29
0 votes
1 answer
61 views

GeoServer SLD style : ordering draw from custom attribute

I want to control the order in which the features are being loaded and drawn on the map with the GeoServer vendor parameter sortBy. I created a layer from an external WFS i'm not owner. So i'can't ...
jlSta's user avatar
  • 1,096
0 votes
0 answers
15 views

How to write an SLD to put the lower left corner of the external symbol on the points in GeoServer

I have a point layer in GeoServer and I used a simple SLD like this: <sld:StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:xlink="http://www.w3.org/1999/xlink" ...
milad's user avatar
  • 729
1 vote
3 answers
155 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
68 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
53 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
41 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
52 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
69 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
  • 29
0 votes
0 answers
21 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
61 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
97 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
50 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
157 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
45 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
46 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
134 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
87 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
141 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
116 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
218 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
127 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
65 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
177 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
2 answers
89 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
32 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
205 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
289 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
60 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
242 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
66 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
1 vote
1 answer
64 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
2 3 4 5
16