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

Transparent background in a multiband raster using GeoServer [duplicate]

I have a raster with a black collar (background). I want to set those black pixels to transparent. The problem is that the values of the pixels have three bands (Red, Green and Blue) and I don't know ...
1
vote
1answer
18 views

How to specify alpha channel selection inside SLD raster style on GeoServer

Is there a way to specify alpha channel inside raster SLD in GeoServer. For example, I have a multispectral map with 6 bands(B-G-R-RE-NIR-Alpha), where the sixth band is alpha, and I would like to ...
1
vote
0answers
24 views

Image Visualization - Styled Layer Descriptors - Sentinel 2

I try user the Styled Layer Descriptors to SLDs ( https://developers.google.com/earth-engine/image_visualization ) for stretching pixel values to improve visualizations of continuous data in images ...
0
votes
0answers
42 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 ...
1
vote
1answer
20 views

Problem with SLD Style definition - Filters in Rules

I created a style in QGIS, exported in SLD and imported in geoserver. However validating throws me errors. I tried a lot of variants according to geoserver documentation and stackexchange solutions ...
1
vote
0answers
30 views

How to pass jiffle script expression as env parameter through url in GeoServer in SLD style

I'd like to create a style for GeoServer for raster algebra using jiffle. The main thing is that I want jiffle script to be dynamic (I want to pass the formula through the request URL) and also if ...
0
votes
0answers
27 views

Fixing QGIS generated SLD to avoid repeating polygon labelling [duplicate]

I have generated SLD's in QGIS that I use in GeoServer. Although the labeling shows fine when previewing the layer in GeoServer, when bringing the WMS in Leaflet then labeling repetition occurs. How ...
1
vote
1answer
32 views

GetFeature EqualTo filter incluiding substring function?

I have the following table as a layer in geoserver: I'm trying to get the features with the first 3 characters of the codigo field matching the Literal. When doing a GetFeature request with EqualTo ...
1
vote
1answer
33 views

What is the difference between <ogc:Literal>wms_scale_denominator</ogc:Literal> and MaxScaleDenominator/MinScaleDenominator

I take my first steps in creating SLDs using the documentation. For TextSymbolizer I found this code snippet to achieve different views in different zoom levels - Zoom-based views. <...
1
vote
1answer
18 views

LabelPlacement in high zoom and AnchorPoint

In the documentation of geoserver I found, that <AnchorPoint> <AnchorPointX> 0 </AnchorPointX> <AnchorPointY> 0.5 </AnchorPointY> </AnchorPoint> ...
3
votes
1answer
53 views

Geoserver SLD style text

I'm novice in Geoserver. I use Version 2.15.1. I would like to display labels. This is my SLD – made and export with QGIS: <?xml version="1.0" encoding="UTF-8"?> <StyledLayerDescriptor ...
1
vote
1answer
49 views

Adding Addtional Styles to GeoServer via Python

I am having difficulties in adding additional styles to GeoServer Layers using pythons Requests module. The below code works perfectly up to the try block. It will successfully publish layer from an ...
2
votes
0answers
39 views

Style not conserved from QGIS to GeoServer

I have a raster file with following properties : Driver: GTiff/GeoTIFF Files: raster.tif Size is 28185, 24579 Coordinate System is: PROJCS["Merchich / Nord Maroc", GEOGCS["Merchich", ...
0
votes
1answer
37 views

Create RasterSymbolizer SLD style in Geoserver

I'm trying to create a sld style for my raster, but I'm getting this error : line 18: cvc-complex-type.2.1 : L'élément 'sld:Normalize' ne doit comporter aucun enfant ([children]) de type caractère ...
0
votes
1answer
33 views

SLD space in TTF url fails

Use geoserver rest interface to create a style,param like below url:http://localhost:8080/geoserver/rest/workspaces/qgisImport/styles Content-Type:application/vnd.ogc.se+xml;charset=UTF-8 body: ... &...
1
vote
1answer
40 views

Function “PropertyExists” in GeoServer style returns NullPointerException

I am using GeoServer 2.15.2. With this as the "ogc:Filter" in my "FeatureTypeStyle" element ... <ogc:PropertyIsEqualTo> <ogc:Function name="PropertyExists"> <ogc:Literal>foo&...
0
votes
0answers
28 views

Adding prefix to Literal in SLD?

I have a Sql Server Store in Geoserver. I want to create Attribute-based sld. I used Persian characters in Literal tag. Like this: <se:FeatureTypeStyle> <se:Rule> <se:Name>...
1
vote
0answers
41 views

Using Arabic and Persian in SLD filter?

I want to create Attribute-based polygon with SLD but when I use Persian or Arabic filter It's not working. This is my sld: Attribute-based polygon SLD Cook Book: Attribute-based ...
0
votes
1answer
43 views

Missing / wrong Legend of WMS service

i am working with geoserver to publish some wms services. One of them is a temperature overview. With the help of my styling file (SLD) i am coloring up each tile of the map depending on its value. ...
1
vote
2answers
58 views

SLD endPoint arrow not working

I've found several examples for how to draw a simple arrow (on one line end). Also, I've found few that explain how it should work to put one on the other end of a line. Unfortunately I don't have any ...
2
votes
1answer
107 views

Adding existing style while publishing a new layer in GeoServer using REST API

I have a function which publishes a layer in GeoServer with the REST API. Now I want to add an existing style in the layer while publishing it. Anyone has any idea where I write the style name or ...
1
vote
3answers
75 views

SLD - styling geometry collections in geoserver

I’m trying to style a geometry collection column (PostGIS) that stores both polygons and points in each record. I already read the geoserver manual on how to style mixed geometry types and I don’t ...
0
votes
0answers
21 views

OSM Overlapping Polygon symbolism editing .xml

Looking to show both administrative boundaries of counties as states. There seems to be something that is showing counties and not states when both are showing for a certain zoom level. attached is ...
1
vote
0answers
117 views

Geoserver SLD: How to get CENTROID of result of INTERSECTION?

In my GeoServer SLD I need to place a symbol (particularly a piechart) exactly on Centroid of the result of Intersection of 2 geometry: geom field from my PostGIS table AND environment variable ...
1
vote
1answer
62 views

SLD not valid inside of GeoServer

I created a SLD file and it does not run at all inside of GeoServer. Schematically it looks all there: <?xml version="1.0" encoding="ISO-8859-1"?> <StyledLayerDescriptor version= "1.0.0" ...
0
votes
0answers
53 views

Using BarnesSurface Style in GeoServer?

I want to apply the BarnesSurface style to a layer in the GeoServer. I applied the SLD samples I found in my research, but did not get results. I get the sample “Image-1” from the GeoServer demo page. ...
0
votes
0answers
28 views

Apply style to layer group?

I've created some layers and styles and am yet unable to apply a style to a layer group. The style I want to apply works fine when applying it to a single layer. The style also works fine if I set ...
0
votes
1answer
163 views

GeoServer polygon transparency (SLD style file)

I am trying to add transparency to a set of polygons (city bounds) within a .sld style file for OSM. Please see below: As you can see the city bounds are overlapping Montana State University. My ...
2
votes
1answer
40 views

Label Rotation in GeoServer SLD based on CRS

I'm styling a series of vector data in Polar Stereographic Projection (specifically EPSG 3031) using GeoServer and SLDs. These maps can be rotated E/W, so if the labels are fixed they appear upside-...
1
vote
2answers
46 views

Problem SLD LineSymbolizer

How can I solve this problem with my SLD code for styles. When I do two scale ranges for a one lineSymbolizer to use another color or another thickness they appear twice in the legend of my viewer ...
0
votes
0answers
16 views

Create an SLD style for contour curves [duplicate]

I have a database with controur curves generated by gdal_contour -f PostgreSQL -a elevation -nln contour_gdal -i 10 srtm/S23W043.hgt "PG:host=volcano-db user=johndoo password=guesswhat dbname=volcano"...
2
votes
0answers
138 views

Styling GeoServer vector tiles using *.sld files (PostGIS, QGIS, Leaflet)

I've been styling vector layers published to GeoServer using *.sld files saved from QGIS as explained in this link. Now, I'd like to work with vector tiles. While I am able to code the JSON within ...
0
votes
0answers
69 views

Not wanted red colour background when applying .sld file style to a raster in GeoServer

I have a raster displaying slopes whose pixel values go from 0 to 85. Like most values are between the range (0 - 30) when publishing in GeoServer I want to apply to it the following sld file to make ...
1
vote
2answers
128 views

GeoServer Style for Float32 GeoTiff returns black image

I have a Float32 GeoTiff image(DEM image) that I published on my GeoServer instance. Image is being displayed correctly in QGIS but GeoServer is always returning black image. I generated style inside ...
2
votes
1answer
86 views

Geoserver SLD stylesheets - what does “se” namespace mean?

I frequently use QGIS to generate SLD stylesheets for geoserver layers. When I do it that way, namespace with value "se" is added to SLD tags. Example: <se:Rule> When I make a stylesheet ...
0
votes
1answer
16 views

Optional parameters in PointSymbolizer href

I am trying to build a dynamic url for a PointSymbolizer: /api/icons?foo=${strUrlEncode("foo")}&bar=${strUrlEncode("bar")} The problem I am running into is that the strUrlEncode will return null ...
2
votes
1answer
134 views

GeoServer SLD applying two styles for one layer

How can I apply two styles (NamedStyle and UserStyle). When executing a query, only the top one is applied. How can I apply both styles? This sld_body: <?xml version="1.0" encoding="UTF-8"?>...
0
votes
0answers
88 views

SLD point style - different styles on two different attributes

I need to style a WMS Geoserver layer using SLD. The layer is a point layer that represents trees. The "basic" style is a green point: <FeatureTypeStyle> <Rule> <Name>rule1&...
0
votes
0answers
124 views

Geoserver 2.15 error when rendering a geotiff with normalize and StretchToMinimumMaximum sld

I have been supplied an SLD file and a raster dataset. The raster data is a processed sentinel-1 scene. Here is the SLD: <?xml version="1.0" encoding="UTF-8"?> <StyledLayerDescriptor ...
0
votes
1answer
218 views

Geoserver SLD - priority option displays multiple labels

I'm using priority option for labels in my geoserver SLD stylesheet because I have multiple overlapping points. <Priority> <ogc:PropertyName>language</ogc:PropertyName> </...
0
votes
1answer
82 views

GeoServer Point Labels not rendering until Scale = 1 : 545K

I have a series of points that I have reading an attribute to display a label. I don't see the labels on my map until Scale = 1 : 1M when SOME of them start to show up. But it's not until I hit Scale =...
0
votes
1answer
59 views

How to create “wave styled” lines in geoserver SLD style?

I nees to stylize lines with a style like the image below: as seen in nautical charts. Already read the "geoserver cookbook" but can't found anything useful.
1
vote
1answer
46 views

GeoServer - prioritize labels with certain attribute value

I have a point layer that I serve as WMS with GeoServer. The points have language and name properties and some points have the same geometry so they overlap. What I want to do is to prioritize ...
0
votes
1answer
149 views

GeoServer labels & vendor options

I have the following label style defined in geoserver SLD stylesheet: <TextSymbolizer> <Label> <ogc:PropertyName>pisanjeimena</ogc:PropertyName> </...
1
vote
1answer
115 views

Mapfish-Print with SLD Style and TTF marks

Is it possible to print ttf's in an SLD using mapfish-print? <GraphicFill> <Graphic> <Opacity>1</Opacity> <Size>25</Size> <Mark> ...
1
vote
1answer
47 views

GeoServer 2.10.1 Center Justify Polygon Label Style File .xml

The Title kind of says it all. Trying to Center Justify a label of a polygon using a sld style file on Geoserver 2.10.1. Here is the code snippet followed by a screenshot of the label now. ...
0
votes
0answers
100 views

Geoserver SLD Style - Wind Barbs

I m trying to dynamically draw wind barbs based on a two bands tiff (geoserver 2.15). My sld is the following: <StyledLayerDescriptor version="1.0.0" xmlns="http://www.opengis.net/sld" xmlns:gml="...
4
votes
1answer
195 views

Batch convert of viewer styles from QML to SLD

Until now I was saving styles in QML files. Now I need them in SLD to be used in GeoServer. Is there a way how to perform a batch convert?
0
votes
1answer
88 views

Ordering symbols in GeoServer using SLD with rendering transformations

I have been following this post-Is there a symbols level option/solution for SLD? about stacking symbols but I have been stuck in using <FeatureTypeStyle> with GeoServer rendering ...
0
votes
2answers
59 views

GeoServer SLD subquery in WHERE clause

I have this SQL request select name from osm_places where name in (select capital_city from osm_places where capital_city != '') Is it possible to write such a request in < ogc:Filter> section? ...