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
10 views

Using line symbolizer in YSLD with minrectangle function trows 'Failed to run GetFeatureInfo on layer' error when selecting objects in GeoServer

As envelope function isn't working at all in YSLD I've tried to use minrectangle instead. Using minrectangle function on multipolygon objects with line symbolizer throws 'Failed to run GetFeatureInfo ...
0
votes
0answers
16 views

GeoServer function PointN doesn't work in YSLD

I did some tests and want to confirm if function PointN doesn't work in YSLD. For example below YSLD doesn't display any label: name: style feature-styles: - name: style rules: - name: style ...
0
votes
0answers
12 views

GeoServer YSLD stroke-dashoffset property produce 'Rendering process failed' error for some values

I'm using 'Alternating symbols with dash offsets' example from YSLD cookbook with all values divided by 10 and using uom: metre: title: 'YSLD Cook Book: Dash/Symbol line' feature-styles: - name: name ...
0
votes
1answer
15 views

Request entire data extent independently from view extent to style GeoServer layer

I created a modified PointStacker which stacks/clusters the data features according to an indicated attribute of the data set (e.g. state or district) which is a user-indicated parameter in the sld ...
0
votes
0answers
17 views

How can i Store all data styles in the database on one SLD? [closed]

I want to store all visible layers in QGIS in one SLD. Is there any way? Data: postgis
0
votes
0answers
22 views

GeoServer displacement property shifted (rotation ignored) position of point symbolizers mark symbols with rotation in YSLD (except SVG symbols)

Displacement property is supported for point symbolizer in YSLD. It's working well with no rotation. Below example is SVG black simple vertically oriented arrow, green square and red circle. All of ...
0
votes
0answers
49 views

Geoserver envelope function not working in YSLD

I'm trying to use envelope function like this i my ysld: - line: uom: metre geometry: ${envelope(geometry)} My ysld won't validate with error: java.lang.IllegalArgumentException: Invalid ...
0
votes
0answers
12 views

Gap option in GeoServer

I am trying to use Gap option with Graphic symbolizer in GeoServer but changing the value in it does not change the distance between the graphics... What is wrong? Here is a snippet of my sld: ...
0
votes
1answer
59 views

GetLegendGraphic and getLegendUrl function filter by extent

I tried to get a legend image from my GeoServer Instance filtered by extent (render only symbologies that are currently displayed on screen). For this purpose I used the getLegendUrl function from ...
0
votes
0answers
8 views

GeoServer PointStacker transformation and <PropertyName> based on data attributes [duplicate]

I created a point cluster style (for health facilities) in QGIS 3.12 that I try to replicate in GeoServer. The SLD saved from QGIS does not work in GeoServer (mine is 2.12 as it is embedded in a SDI, ...
1
vote
0answers
45 views

How to force fixed position of lines and gaps pattern in SLD/YLSD with stroke-dasharray or stroke-graphic

Any kind of dashed effects (simple line or svg/image symbols on line) are rendered correctly at fixed position if the whole line or its start point are currently visible. If we move the map view that ...
0
votes
1answer
20 views

SLD PointSymbolizer remove offset in legend?

I'm trying to style a point layer with map markers using GeoServer, so that each marker points to the geometry it represents. The markers are a variation of the droplet-type icon that has become ...
0
votes
1answer
20 views

How to bind to coordinates <onlineresourse>, in sld GeoServer?

I have coordinates and there is an image (link to png image), I need to bind it to the coordinates (onlineresource tag) in the GeoServer. An example of how to google maps here https://developers....
0
votes
1answer
12 views

In GeoServer 2.16 or 2.15 colours raster with 5 bands shown as black and white raster

I have problem with 5 bands colour raster. When I open the raster in ESRI ArcGIS or QGIS the raster is open with colours, but when I uploaded it to GeoServer software the WMS shows it only with black ...
0
votes
0answers
32 views

GeoServer SLD prevent icon overlapping

I've developed a simple web map using GeoServer and OpenLayers in WMS format. The styles are created in Geoserver using SLD and send image tiles to the client. In order to display a point layer, I've ...
1
vote
0answers
31 views

Adding Text and defined placement to a label in SLD (from QML(QGIS))

I've created a beautiful rule-based Labeling format in QGIS 3.12. 1) I have added text to the labels. for example using the value : 'Beton' then the word Beton is added to the line 2) I also used ...
3
votes
1answer
40 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&...
1
vote
1answer
24 views

How can I label feature using sld file in geoserver for symbols?

I generate the sld file from Qgis and upload it to the geoserver. My sld file looks like following, <?xml version="1.0" encoding="UTF-8"?> <StyledLayerDescriptor xmlns="http://www.opengis....
0
votes
1answer
44 views

GeoServer layer preview doesn't work for chinese columns or columns that has underscore in name

I am learning to use GeoServer. I published a layer from a shp, which I created by importing a csv file into QGIS in utf-8 encoding, and exporting as shp in utf-8 encoding. I added a style to the ...
0
votes
0answers
49 views

Dynamic WMS styling Lizmap/QGIS-SERVER

I made a map served by QGIS server (v3.12) and I use Lizmap client (v.3.3.4). I want to add a custom tool to dynamically styling a WMS layer with a date parameter. Let me explain, this map is a ...
0
votes
1answer
58 views

Serving 16 bit floating point with GeoServer?

I gave created a GeoTIFF file with python/gdal as 16 bit floating point (to save space), using -999 as noData value. In GeoServer (v2.15.2), I have defined an SLD color style for this layer. However, ...
1
vote
1answer
33 views

Apply Point style in JMapFrame GUI

I've managed to create a Point shapefile creating a SimpleFeature and outputting it as Test_Point.shp, public static final SimpleFeatureType POINT = createPointType(); private static SimpleFeature ...
1
vote
0answers
32 views

Control RasterAsPointCollection plotting granularity for the GeoServer in SDL file?

I am using the geoserver to create windcharts. This works perfectly fine, except that the data is not plotted in a clean grid, i.e. the granularity of the wind barbs along the vertical axis is a lot ...
2
votes
0answers
30 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> <...
2
votes
1answer
55 views

How to reference a PostGIS JSON field in GeoServer SLD

I have a PostGIS table with a JSON field which I successfully published in GeoServer 2.16 The contents of the JSON field (named "display_properties") are an array and like this (some values have been ...
3
votes
0answers
62 views

Multiple color styles in one GeoServer layer

I have a GeoServer layer coming from a shapefile and I am using it with OpenLayers. I want to put multiple colors in the same layer depending on their attributes. How can I put multiple colors on a ...
2
votes
1answer
53 views

QGIS geometry generator to SLD

In QGIS I'm using the geometry generator to visualize a point shape file as a line with the simple code: And then I'm doing a graduated styling according to the burial value of those points: So ...
2
votes
1answer
22 views

SLD, combine variable and propertyIsEqualTo

I'm trying to make simple switch (if if else) statement in SLD with value coming from variable. I'm calling Goeserver with parameter env=imageSize:A4. Now based on that, I'd like to set cssProperty ...
1
vote
0answers
62 views

How to modify the automatic GetLegendGraphic in QGIS when using QgsRasterLayer in the python interface to load data from a ncWMS server

tl;dr: How to add an extra parameter (using python) to the GetLegendGraphic request made by QGIS when a WMS layer is added using QgsRasterLayer? UK Reading University developed a map server called ...
1
vote
0answers
56 views

Transparent background in a multiband raster using GeoServer

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
52 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
29 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
52 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
35 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
61 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
51 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
90 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
23 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
95 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
66 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
49 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", ...
1
vote
1answer
75 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
52 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
76 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
29 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
43 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
54 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
87 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
182 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
2 3 4 5
13