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
16 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 ...
user avatar
0 votes
0 answers
12 views

Static Heatmap in Geoserver [duplicate]

Is it possible to prepare SLD style for static(without recalculating per zoom level) heatmaps and served it as WMS layer? I have dynamic wms layer with heatmap but it looks very bad on Cesium 3d globe....
user avatar
  • 341
0 votes
1 answer
45 views

SLD ignoring PropertyName's case or using if_then_else

I have Geoserver 2.19.1, using layers from both Postgres and Oracle, in two different workspaces. Most of the layers are based on identicaly described tables (same fields+datatypes, different content) ...
user avatar
0 votes
0 answers
27 views

Style multiple Layer with SLD in getPrint Request on QGIS Server

is there a way to send a wms getPrint Request with SLD_BODY to set different Styles on multiple different Layers? I want to allow the User on the Client Side to create their own Styles and apply them ...
user avatar
  • 1
0 votes
1 answer
23 views

Use a layer attribute in a generic dynamic SLD

I have many raster layers that all look the same (same extent, all single-band). I'd like to write only one style (SLD) to specify the colors (colormap) to show in a WMS request. But if the different ...
user avatar
0 votes
0 answers
14 views

SLD style - pointN: position the label in the lower left corner

I am trying to position the label in the lower left corner. The idea is to get the vertex using the pointN function. But the label is not showing anywhere. Validation and legend preview is OK. Here ...
user avatar
  • 800
0 votes
0 answers
19 views

Change namedlayer and remove classe

How do I change the name of the layer, for example reseau_routier to Réseau routier and remove the class that was created, or vice versa, if this is not possible? I would like to be able to modify ...
user avatar
1 vote
2 answers
40 views

Dynamically generate ColormapEntry in GeoServer SLD file via request

I have a big set of GeoTIFF files being served by GeoServer. All the styles are previously generated and then posted through GeoServer REST API. Then I need to send color and quantity parameters to ...
user avatar
3 votes
2 answers
38 views

Change the decimal and thousands separators in a GeoServer SLD styled map

I didn't find a way to change the decimal and thousands separators in the SLD style of map in my GeoServer. The Server (Ubuntu 20.04.3 LTS), Tomcat (9.0.31), JVM (Ubuntu: 11.0.13 OpenJDK 64-Bit Server ...
user avatar
1 vote
1 answer
33 views

SLD - Failed to build legend preview

I write an SLD style on GeoServer. The date in label is showing with the letter 'Z' at the end (2021-07-28Z). I want to display the date parameter in the label but without the 'Z' at the end. The '...
user avatar
  • 800
0 votes
0 answers
47 views

GeoServer is unable to read layer name, when GetMap uses external SLD

We are currently testing GeoServer 2.20.1 to be replaced for GeoServer 2.11.2. One issue which we found is while getting prints from GeoServer 2.20. When a request is sent to GetMap for layers whose ...
user avatar
2 votes
2 answers
79 views

SLD - at the end of the parameter in label the letter ‘Z’ was added

I have some basic SLD style for polygon with label. The date parameter is displayed in the label, and that's ok. But at the end of the date the letter ‘Z’ was added why is this happening? SLD: <?...
user avatar
  • 800
1 vote
1 answer
41 views

SLD style: put all labels at top of polygon/visible part of polygon

This is desired output: I am trying to construct the point at the top of each polygon (visible part of polygon) and point label to it. EDIT: How to get Y coordinate of the top of the visible polygon? ...
user avatar
  • 800
0 votes
1 answer
28 views

Refer to other SLD in geoserver for GetLegendGraphic

I have a group layer in geoserver with all layers having one style each. However, for the legend I want to refer to an "external" SLD (basically a simplified "dummy legend"). The ...
user avatar
0 votes
0 answers
10 views

Conflict between label rotation and label background in SLD Style

When I use rotation attribute and Graphic for label Background together in SLD Style, then SLD style ignores my rotation attribute and because of that positioning of labels is incorrect. EXAMPLE OF MY ...
user avatar
1 vote
0 answers
34 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 ...
user avatar
  • 11
0 votes
1 answer
22 views

Styling GeoServer layer by taking coordinates from feature and plot marker

I am trying to style the GeoServer layer. I have the shapefile with multi polygon feature into it and in the attributes, I have the x, y(centroid of each polygon) where I need to plot the marker or ...
user avatar
  • 261
0 votes
0 answers
40 views

GetLegendGraphic with Filtered Range Rules

I have a style with several rules that include range filters. I'm having a hard time getting the appropriate legend graphic for a specific record. For example, a soil depth of 3 should return the ...
user avatar
  • 101
1 vote
2 answers
119 views

Variable substitution with environment variables in SLD and GeoServer

I'm posting this as a new question as a follow-up to this one Geoserver SLD: Dynamic Variable Substitution I am struggling to get SLD variable substitution to work where I have an environment variable ...
user avatar
1 vote
1 answer
73 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
user avatar
  • 1,095
0 votes
1 answer
26 views

Labels keep rotating 90º. Is there a way to aplay the rotate oº and use the the LinePlacement at the same time?

I'm using the LinePlacement in order to place the label in a corner or my bounding boxes, the problem is that for some reason the labels sometimes are rotated 90º. Is there a way to force them to have ...
user avatar
0 votes
1 answer
65 views

GeoServer SLD env function does not work

I have a database: and I made with it a GeoServer getMap request which works great for one year (one column). But I want to change the year programmatically with JavaScript (I am open for better ...
user avatar
0 votes
0 answers
26 views

GeoServer SLD ServiceExceptionReport:The style specifies an attribute of "Layer" and the layer is: "Workspace:Layer"

This is the follow-up to this question Displaying Layer values using Graphs or Histograms in GeoServer. I have looked at various solutions suggested and I seem not to be implementing them correctly. I ...
user avatar
1 vote
1 answer
159 views

Applying multiple filters using Geoserver SLD styling

I have vector point data being served via Geoserver, with layer styling being applied using an SLD stylesheet. I've created a number of styling rules to symbolise these points, and I'd like to ...
user avatar
1 vote
0 answers
56 views

Displaying Layer values using Graphs or Histograms in GeoServer

I have a WMS polygon layer read from PostgreSQL, this polygon layer has different values that I would like to display using bar graphs per polygon. The polygons are 4, the bar should ideally look like ...
user avatar
0 votes
2 answers
195 views

Converting SLD to MapboxGL style

I'm struggling to convert SLD (from Qgis) to MapboxGL style format. Does anyone have any ideas if this is possible?
user avatar
  • 129
0 votes
0 answers
21 views

Hide rule symbology from legend - SLD geoserver [duplicate]

Is there any way to specify style which I don want to show in a legend? Idea is to set different parameter size depending on scale Here is a simplified example: <Rule> <Title>Test<...
user avatar
  • 800
2 votes
2 answers
95 views

Using Conditional Statement - SLD GeoServer - based on scale

Is there any way to use the conditional statement in SLD based on scale to set parameter for example: for scale between 25001 and 50 000 set size 15 for scale between 5001 and 25 000 set size 28 for ...
user avatar
  • 800
3 votes
0 answers
82 views

QGIS symbology to SLD for web map

I use OpenLayers together with QGIS Server to deploy GIS projects as WMS service online and everything works fine using it together with MapProxy for seeding and caching layers. Now I want to ...
user avatar
  • 836
2 votes
1 answer
19 views

Create Style from SimpleFeatureCollection

Is it possible to create a Style from a SimpleFeatureCollection and SimpleFeatureType. I noticed that StyleBuilder has, public Style buildClassifiedStyle(SimpleFeatureCollection fc, ...
user avatar
  • 187
0 votes
0 answers
35 views

SLD Style rendering transform value on GeoServer

I am using GeoServer 2.19, and I have a wind coverage view from a grib file (uwnd,vwnd components), and I want it to become a wind speed raster layer. When I preview it with a raster style, I realised ...
user avatar
  • 1
1 vote
1 answer
32 views

Error loading attribute based SLD consisting of 7 classes to GeoServer styles

I've got a line data published through GeoServer. I'd like style it based on 7 numerical intervals by using one of the columns. I classify symbology accordingly and export to sld to use it with ...
user avatar
  • 91
0 votes
1 answer
72 views

Putting Graphic in TextSymbolizer of Geoserver SLD Style

I tried to add external graphic element in TextSymbolizer of point layer as Geoserver 2.19, I got the following result <?xml version="1.0" encoding="UTF-8"?> <...
user avatar
  • 1,095
0 votes
1 answer
120 views

Styling GeoJSON polygons with hatch fill in MapFish Print

I am working with MapFish Print (v3.23.1) and have a mix of layers for a map, some from GeoServer and some local GeoJSON files. I have GeoJSON polygons that I would like to apply a hatch pattern to, ...
user avatar
  • 1,386
1 vote
1 answer
180 views

GeoServer SLD Functions

I am in need to use a postgres query inside an sld file. Based on the documentation, before testing the now() function, I decided to make a test with the max function. I want to style only the max ...
user avatar
0 votes
2 answers
224 views

GeoServer RASTER cql filter

I have a layer in GeoServer based on a raster file (GEOTIFF) I can visualize the layer, but I want to apply dynamic filters. Before I used CQL for vector data, no problem. But not sure if the ...
user avatar
0 votes
1 answer
62 views

How to add attribute Priority to SLD for GeoServer style

I tried to add Priority attribute to SLD Style on GeoServer, but i got the following error line 186: cvc-complex-type.2.4.a: Invalid content was found starting with element '{"http://www.opengis....
user avatar
  • 1,095
0 votes
0 answers
74 views

GeoServer first filter does not work

I've cerated SLD style and send to the GeoServer. But after sending just the second filter works! SLD in GeoServer is like this : <?xml version="1.0" encoding="UTF-8"?><...
user avatar
  • 91
0 votes
1 answer
57 views

How to use spatial filter in SLD file GeoServer

I've created SLD style for GeoServer and send it to GeoServer. But after sending GeoServer change it to another SLD. It is source SLD I send <StyledLayerDescriptor version="1.0.0" xsi:...
user avatar
  • 91
0 votes
1 answer
35 views

Problem with Symbol Line Level in GeoServer

I created two style for casing and fill for roads layer, but I do not know how to fix symbol level in GeoServer. I followed this answer and the problem still exists symbol level SLD <?xml version=&...
user avatar
  • 1,095
0 votes
0 answers
15 views

Problem with SLD Style on Geoserver [duplicate]

I have a new challenge with Geoserver Style, i created a new SLD style on geoserver for roads layer, SLD file has been generated from QGIS. SLD file <StyledLayerDescriptor xmlns="http://www....
user avatar
  • 1,095
1 vote
1 answer
54 views

Rotate label by formula and attribute

I have a point layer with a field/attibute called trikt which I need to use to rotate labels. The labels should be rotated by the formula MOD(-trikt/360) (remainder of -trikt/360) So I try using ...
user avatar
  • 51.1k
5 votes
1 answer
88 views

Length limit to GeoServer SLD files in QGIS?

I'm symbolizing a polygon layer by an attribute called kkod. I've copy pasted the FeatureTypeStyle block about 10 times for each kkod but the 11th time the WMS layer is no longer symbolized in QGIS, ...
user avatar
  • 51.1k
1 vote
1 answer
57 views

Problem with put sld in geoserver

I want to send SLD to GeoServer via AJAX: this is my SLD as XML format: <?xml version='1.0' encoding='UTF-8'?> <StyledLayerDescriptor version="1.0.0" xsi:schemaLocation="http://...
user avatar
  • 91
1 vote
0 answers
59 views

It's possible to add feature blending mode in Geoserver

I exported layer style from QGIS as SLD file to use it in Geoserver, but unfortunately feature blending mode did not applied on Geoserver, so it's possible to edit SLD style in Geoserver to add ...
user avatar
  • 1,095
1 vote
1 answer
100 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 ...
user avatar
  • 11
0 votes
1 answer
46 views

There was a problem using the SLD REST Service (' ' is not recognized as an internal or external command)

I've been learning how to use SLD REST Service in Geoserver (https://docs.geoserver.org/latest/en/user/extensions/sldservice/index.html) which has some problems Some commands cannot be run, for ...
user avatar
0 votes
1 answer
67 views

default-style when no rule applies in SLD

I have this SLD associated to my parcels-style within GeoServer: <sld:StyledLayerDescriptor xmlns="http://www.opengis.net/ogc" xmlns:sld="http://www.opengis.net/sld" xmlns:ogc=&...
user avatar
0 votes
0 answers
61 views

GeoServer CoverageView provides the same value for u and v components

Following these two tutorials I'm trying to create a currents layer: [https://docs.geoserver.geo-solutions.it/edu/en/multidim/accessing_multidim/coverageview.html] [https://docs.geoserver.geo-...
user avatar
  • 71
2 votes
2 answers
150 views

GeoServer SLD Parsing Error on unknown rule

I tried loading an SLD file generated from QGIS 3.18 into GeoServer and I keep getting the message below. I suspect the error is from one or more of the rules, but I don't know how to get the feedback ...
user avatar
  • 2,597

1
2 3 4 5
14