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
0 answers
20 views

GeoServer doesn't render SVG markers properly

GeoServer Version 2.21.0 GeoTools Version 27.0 GeoWebCache Version 1.21.0 GeoServer doesn't render SVG external graphic well, the graphics is cut and not all visible- only about upper left square is ...
1 vote
0 answers
31 views

GeoServer style displayed right in EPSG:4326 but not in EPSG:3857

I deployed a GeoServer instance and I published some raster files (netCDF). I then applied the following style that contains both raster colorMap and lineSymbolyzer to show the isocurves: <?xml ...
0 votes
1 answer
20 views

GeoServer SLD "patch" composition

I am trying to create an SLD style that will allow polygons (in the same <FeatureTypeStyle>, but as separate or the same Symbolizers) to 'patch' compose themselves, which is to say, when one ...
  • 1
0 votes
0 answers
27 views

Problem with loading SLD file in QGIS

I have some svg files that I want to use in QGIS and save as SLD files. I added the path of the SVG file to QGIS (Settings -> Option -> System -> SVG Paths), loaded the SVG file on the layer, ...
0 votes
1 answer
39 views

Geoserver stretch WMS color ramp to current view extent?

Is it possible to restyle a Geoserver WMS so that the color ramp is stretched across the min max values for the current map extent (bounding box)? I want to do this for a single band DEM dataset. This ...
  • 143
2 votes
0 answers
38 views

GeoServer problem on WMS call when the image changes

We started to work with GeoServer a few months ago. We encountered a problem that we cannot answer, linked to the interaction with GeoServer and SLD service plugin. As follows a simplified ...
1 vote
1 answer
37 views

SLD - Get polygon from intersection between wms_bbox and geometry

I am working on a specific style for a geoserver layer Im trying to get polygon from intersection between wms_bbox and geometry <ogc:Function name="intersection"> ...
  • 860
1 vote
1 answer
30 views

Showing statistics about area or percentages of coverage in the legend titles

I have a multicolumn spatial data . I added the data to geoserver and add different styles to that layer based on different columns and then I visualize it with mapstore. The geometries are polygons ...
  • 31
1 vote
0 answers
12 views

Get layer group from GeoServer WMS with sld_body [duplicate]

I have a layer group named "town-location" in the GeoServer that contains one layer. I am trying to recover it with a specific style attaching to the GeoServer request the parameter "...
1 vote
1 answer
28 views

Not NaN values with jiffle based style in Geoserver

I have a problem with SAVI radiometric index calc over multiband raster file. I have Jiffle based styles for some radiometric index. For example: NDVI: Jiffle code: dest = (band8 - band4) / (band8 + ...
0 votes
1 answer
26 views

GeoServer style based on number points returned

I have a point layer with many points. I am filtering these points from the frontend application (OpenLayers+Angular) with multiple filtering options (dropdowns, checkboxes, etc.) using CQL_FILTER ...
0 votes
1 answer
38 views

How to parameterize the PointSymbolizer in a SLD Style?

I am trying to clean my GeoServer deleting some redundant SLD Styles. All this styles work in the same way, they assign some image (different for every style, which name is hardcoded in every style) ...
0 votes
1 answer
72 views

GeoServer layer style not updating through REST API after deploying on Ubuntu server

I am trying to update the GeoServer layer style using REST API. First I wrote a function to update the layer and SLDon GeoServer and then another function to update the default style of uploaded. this ...
0 votes
1 answer
62 views

PropertyIsEqualTo And PropertyIsLike filter

I'm trying to label points with a rule based on two fields: Text kkod I need to create a rule: "When the letter E is in Text field and kkod=79" then label with the Text field content. So ...
  • 55.2k
0 votes
1 answer
86 views

Dynamically mask raster layer by features from vector layer in GeoServer

Is it possible to mask raster layer by features from vector layer in GeoServer? I want dynamic connection, so adding a new feature to the vector layer will automatically change the raster layer mask. ...
0 votes
0 answers
31 views

Specify CRS for coverage in SLD with WPS elements

I try to create SLD that overlays two raster FeatureTypeStyles: first — full raster, second — same raster cropped by features in specified vector layer. Here is my SLD: <?xml version="1.0"...
1 vote
1 answer
67 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
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....
  • 351
0 votes
1 answer
82 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) ...
0 votes
0 answers
48 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 ...
  • 21
0 votes
1 answer
62 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 ...
0 votes
0 answers
24 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 ...
  • 860
0 votes
0 answers
20 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 ...
1 vote
2 answers
97 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 ...
3 votes
2 answers
112 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 ...
1 vote
1 answer
61 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 '...
  • 860
0 votes
0 answers
88 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 ...
2 votes
2 answers
124 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: <?...
  • 860
1 vote
1 answer
62 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? ...
  • 860
0 votes
1 answer
54 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 ...
0 votes
0 answers
22 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 ...
1 vote
0 answers
54 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 ...
  • 11
0 votes
1 answer
37 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 ...
  • 271
0 votes
0 answers
58 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 ...
  • 101
1 vote
2 answers
185 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 ...
1 vote
1 answer
143 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,095
0 votes
1 answer
34 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 ...
0 votes
1 answer
120 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 ...
0 votes
0 answers
63 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 ...
1 vote
1 answer
391 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 ...
1 vote
0 answers
73 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 ...
0 votes
2 answers
358 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?
  • 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<...
  • 860
2 votes
2 answers
159 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 ...
  • 860
3 votes
0 answers
122 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 ...
  • 874
2 votes
1 answer
27 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, ...
  • 187
0 votes
1 answer
48 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 ...
  • 1
1 vote
1 answer
37 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 ...
  • 91
0 votes
1 answer
146 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"?> <...
  • 1,095
0 votes
1 answer
181 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, ...
  • 1,396

1
2 3 4 5
15