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
1answer
15 views

Size of points determined by an attribute value in SLD in Geoserver

I have a point layer with an attribute field containing decimal values. In Qgis, with the help of data defined overide i have managed to make the size of a point dependent on the value of a field (see ...
1
vote
1answer
18 views

GeoServer SLD Offset startPoint/endPoint Along Line

I would like to symbolize a line with a point graphic at each end AND offset the graphics slightly along the line in order to look something like the following: The offset is intended to allow the ...
0
votes
1answer
17 views

Geoserver SLD file for a 4 channel GEOTIFF

I have a 4 channel(RGB+NIR) GeoTIFF(nodata=0) in uintformat. I use this image for WMS(base map) also use for WCS. I use below SLD style for RGB and it works fine(please check edit-2 ) but with RGB+NIR ...
0
votes
0answers
150 views

How to achieve different Anchor Point based on N, W, E, S, NW, NE, SW, SE for point labels if max-displacement vendor option is used in geoserver sld?

How to achieve point label placement should be always as shown in the image. GeoServer SLD code: <PointSymbolizer> ... </PointSymbolizer> <TextSymbolizer> ... <...
1
vote
1answer
32 views

How to visualize callout lines between points and labels in Geoserver?

Is there a way to visualize calloutlines between points and dynamic labels in Geoerver (SLD)? From my understanding, there are no elements in TextSymbolizer to achieve it. But perhaps, there is a way ...
0
votes
0answers
13 views

Windbarbs pointing in wrong direction

I have implemented the style windbarbs as described in the Geoserver documentation here: https://docs.geoserver.geo-solutions.it/edu/en/multidim/accessing_multidim/rtx/wind_barbs.html However the ...
1
vote
2answers
62 views

SLD GeoServer VendorOption

I try create SLD style in QGIS and export to GeoServer. And I have trouble with VendorOption name="placement">lastPoint< Yes, I readed GeoServer import SLD style from QGIS issue on &#...
1
vote
1answer
44 views

Dynamic style using variable substitution

I need to use an array of values to define a style of the WMS dynamically. I understood that I must use the Variable substitution SLD. I'm be able to use env variable to change fill and stroke of a ...
2
votes
1answer
54 views

GeoServer WMS inline SLD_BODY syntax problem

I would like to use inline SLD to style polygon served by GeoServer. Here is working example in MapServer: without defined style: http://gis.ibbeck.de/include/mapserver/mapserv.exe?map=/daten/mapfiles/...
2
votes
1answer
23 views

How to change placement for label of a polygon in mapserver with SLD

I want to change the placement of the label of special polygon by sending SLD to WMS of Mapserver. But it seems as it has no effect. Is label placement in polygons support by mapserver? <...
1
vote
1answer
29 views

GeoServer - Limit feature display SLD

I have a raster for U,V components of wind and I create a style that create wind barbs out of it. What I would like to do is to limit the display of points (for example only to 300), in order to avoid ...
1
vote
1answer
52 views

How to use perpendicularoffset for PolygonSymbolizer in GeoServer?

I want to fill the polygon in GeoServer with 2 parallel lines pattern. Example: 1 continuous and 1 dash line. For example like this image: I can fill the polygon in GeoServer with shape://slash. And ...
3
votes
1answer
46 views

Can a single SLD contain styles for different layer shapes?

I'm interested in creating a single SLD that could be used for a layer group in Geoserver that contains layers in point, line and polygon shapes. According to docs it says: "GeoServer supports ...
1
vote
1answer
24 views

Labeling only a part of the attribute value of a string column in GeoServer

I am looking for a solution for labeling points based on an string attribute value in my table in a way that it shows only a portion of the attribute value in GeoServer. I am using ysld (sld) styling. ...
3
votes
1answer
23 views

How to follow oneway directions using sld?

I want to show oneway directions of streets using SLD in geoserver. I follow this instruction but i still have a problem with directions of arrows. Most of all arrows get south to north and west to ...
1
vote
0answers
19 views

Joining lines with SLD style in GeoServer [duplicate]

I want to create a sld style in road lines in qgis. the style has a fill and a border symbology. Everything is ok in qgis but i have an issue with the style in geoserver. The lines do not merge at ...
1
vote
2answers
118 views

SLD GeoServer COPY of styled labels from QGIS -with a created centroid - every label moved manually with X and Y on different places

In QGIS both in line, point and polygon type layers (for rivers, settlements, lakes..) I created labels for the objects - I created a field X and Y (Decimal Number), so that I define their location (...
1
vote
1answer
45 views

Legends not appearing in GeoServer Layer

I have added a new style in GeoServer. As I am seeing the preview of legend while creating the style, it is appearing. But when I am applying the same to the GeoServer layer, it is not appearing in ...
1
vote
0answers
18 views

ExternalGraphic with LineSymbolizer

I want to symbolize a line with a svg symbol. The following code allows me to get a first result but I would like the symbols to be closer. How can I set up this ? <LineSymbolizer> ...
1
vote
2answers
55 views

Style error after importing SLD of QGIS in GeoServer Layer

I have a layer in GeoServer which opens when default style like "polygon" is selected in the publishing menu but when I change its style in WMS Settings, for which I have created a new ...
1
vote
0answers
65 views

SLD polygon styling + labeling in Geoserver [closed]

I'm trying to label a polygon alongside its boundary. I found out how to do it but the stroke color of the polygon looks wear because of a black line above it. I think that the step I use to label the ...
0
votes
1answer
32 views

SLD Polygon Styling in Geoserver

<Rule> <Title>EU-SPA</Title> <ogc:Filter> <PropertyIsEqualTo> <PropertyName>BEWERT2006</PropertyName> <Literal&...
0
votes
1answer
20 views

Render WMS at fixed scale (static image effect)

I have a point layer that I'm rendering as a WMS using GeoServer, the points look like a continuous surface and 'blend' great at about 1:10 000. I want to keep the WMS rendered at that scale, ...
3
votes
1answer
76 views

Create polygons with blurred edges (SLD (GeoServer))

I would like to create areas from polygons that will visualize an "uncertain" area. So I would like the polygon to appear a little blurred at the edges. Preferably with SLD in GeoServer so ...
0
votes
1answer
37 views

Dynamic GeoServer SLD styling template to use on Multiple Polygon shapefiles

I'm trying to create 1 SLD template for the Geoserver application on any point shapefile I upload. For example, I want a styling that will automatically color the attributes for the selected layer. If ...
-1
votes
1answer
27 views

Use of PropertyName to source fill color from database table [closed]

We use qGIS to style spatial objects, then copy in to GeoServer. Generally this works well. However, we can't get GeoServer to source polygon fill colors from a column in a table. Here is the relevant ...
0
votes
1answer
22 views

Is an SLD necessary for each layer? [closed]

For GeoServer, it is necessary to create a new style for each different layer to load?
3
votes
2answers
133 views

QGIS symbol resources

Anyone have any good resources you can point me to find additional symbol libraries that are published for qgis/sld? My preliminary search has turned up a lot of plugs for the Resource Sharing plugin, ...
1
vote
1answer
116 views

Upload SLD file to GeoServer by using gsconfig

I want to upload a SLD file, to a specific workspace, by using gsconfig-py3 1.0.8 , create_style function, however I get an error. with open(fpath) as f: cat.create_style("railroad", f....
0
votes
0answers
20 views

SLD REST Service

My question is related to successful deployment of the SLD REST Service Community extension at the GeoServer REST APIs, and how to access related end-points. After copying extension's JAR files to WEB-...
0
votes
0answers
44 views

Preventing SLD visualisation rendered as RGB in Earth Engine

Following this answered question, I would like to visualise the rainfall forecast using specified threshold. I tried to use Styled Layer Descriptor (SLD). But unfotunately, but it doesn't work. All ...
0
votes
1answer
123 views

Unicode problem in creating style with REST API on GeoServer

I am creating some new style with Postman. The main problem is that the new style was created with Unicode problem. It means I am seeing the new style has some character that are not Unicode. URL : ...
4
votes
1answer
109 views

IndexOutOfBoundsException when using “in” function in GeoServer

I have trouble with the in filter function in SLD submitted to GeoServer. The root cause seems to be within the geotools. Currently we're using GeoServer Version 2.15.2 and GeoTools Version 21.2. The ...
0
votes
2answers
81 views

Can I bulk import SLD files into GeoServer?

I'd like to import several SLD files into GeoServer (Various styles for OS Open Zoomstack, thanks @OrdnanceSurvey!) Is the only option to import them one at at time using the GeoServer interface? I ...
1
vote
0answers
26 views

ArcGIS Symbology to QGIS [duplicate]

Need to import Symbology from ArcGIS PRO to QGIS 3.10 over ubuntu. Will .SLD do the work?
0
votes
0answers
75 views

GeoServer WMS XML request with NamedLayer filter

I need to draw a map with some custom features I don't have in database. I found SLD query that allows me to do that (https://github.com/geoserver/geoserver/blob/master/data/release/demo/...
0
votes
0answers
46 views

SLD file not being read from ArcGIS Server WMS service

I am trying to link an external SLD file to my WMS service in ArcGIS Server but it is being ignored. I have one layer in my MXD called 'Rivers', I then published the layer as WMS service in the ArcGIS ...
3
votes
1answer
76 views

SLD filter -it is possible to write a unique filter that would filter values ​that contains substering “NEW”

is it possible to make a filter where I define a < Literal > as part of a < PropertyName > ? For example: I want do define rule for all valuse in atribute "NOTE" which contains ...
0
votes
0answers
18 views

Large points get cut off on tile [duplicate]

When there is a large PointSymbolizer, the Graphic gets cut off on the tile edge. This doesn't happen on small points. Is there a way to prevent this? blue size - 200 green size - 30 The SLD_BODY we ...
0
votes
1answer
82 views

GeoServer import SLD style from QGIS issue on 'se:Stroke'

GeoServer (2.14.3) gives me the following error: line 29: cvc-complex-type.2.4.a: Invalid content was found starting with element 'se:Stroke'. One of '{"http://www.opengis.net/se":...
4
votes
1answer
93 views

Applying SLD style to raster with two bands?

I have a raster with two bands. Both bands only have ones and zeros. I want to apply the following style: Band1 Band2 Color 0 0 #000000 0 1 #ff0000 1 0 ...
0
votes
0answers
16 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
41 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
22 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
44 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
69 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
50 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
408 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
15 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
101 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 ...

1
2 3 4 5
13