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

Geoserver SLD styling to align labels at the center vertical of roads

I've used SLD to style road features in Geoserver. As roads include multiple segments the 'group' attribute has been used to control label repeat of roads. The problem is some labels can't be placed ...
0
votes
3answers
173 views

Geoserver SLD to hide points when label is not shown

Is it possible to create a PointSymbolizer together with a TextSymbolizer that will hide both the point and label when the label is not shown as a result of conflict-resolution? What I'm trying to ...
1
vote
1answer
29 views

Old Geoserver install (“2.1.?”) will not validate Transformation element in Heatmap SLD XML

I'm stuck with an old, weird version of Geoserver in our production environment (circa 2011, installed in an opengeo-suite directory). It seems the WPS extension is installed. On my http://www.our-...
0
votes
1answer
87 views

How to rotate symbol in each point of LineString?

I have a linestring, and want to draw arrow forward and arrow back in each point except firat and last. Like this I have no problems with first and last point couse i can rotate arrows with ...
1
vote
0answers
76 views

Problems with dynamic symbolizer in Chart Symbolizer extension on GeoServer

I have a layer on GeoServer with a time dimension which shows the number of overnight stays for a certain area in a given year. With the Chart Symbolizer extension, I would like to visualise the ...
1
vote
1answer
144 views

Geoserver Exception with custom SLD file for raster

I have a WMTS provided by Geoserver, based on a GeoTIFF. It works fine with the default style ('raster'). With this default style everything's fine (OpenLayers, QGIS). With the purpose to be able to ...
0
votes
2answers
128 views

Get map legend while using Transformation Functions in SLD style

In my project I have a SLD style which contain Transformation function. The SLD style is looks like this: <PointSymbolizer> <Fill> <CssParameter name="fill"> ...
1
vote
0answers
82 views

GeoServer - labels not working correctly

Currently having a few issues with GeoServer not displaying our labels correctly. The code in question is here: <Fill> <CssParameter name="fill"> <ogc:Literal>#...
0
votes
1answer
41 views

What vector output can I use in GeoServer to convey geometries, style and metadata?

We've been successfully using GeoServer for a few years to serve raster tiles of objects contained in a database. In order to improve the user experience and performance, I'm looking into switching to ...
1
vote
0answers
36 views

Saving Style as SLD in QGIS but after reloading unit changes from map units to pixel?

I have a style I am saving in QGIS (2.18) as an SLD. After reloading the Style onto the layer the ouline width changes to pixels instead of map units. I even checked the .sld in notepad and the uom-...
1
vote
1answer
82 views

Setting SLD rule title using field?

Can I set the title of an SLD rule using a feature's field? I have a very dynamic dataset where the value of a polygon changes after each update, therefore I need to be able to compare using one ...
0
votes
0answers
43 views

Disabling ContrastEnhancement in GeoServer?

I am using Geoserver to upload and display GTiff images in OpenLayers. The images are unsigned 16 bit grayscale at about 300MB size and are processed to to give better performance using the methods ...
1
vote
1answer
355 views

Dynamically change GeoServer SLD style on WMS call using ENV

I need to chage layer style depending on attribute value on wms call. Like this <Fill> <CssParameter name="fill"> <ogc:Function name="Recode"> <!-- Value to ...
2
votes
1answer
162 views

How to make dynamic sld filter?

I have a sld style: <se:FeatureTypeStyle> <se:Rule> <se:Name> 0 - 100 </se:Name> <se:Description> <se:Title> >101 </se:Title> ...
0
votes
1answer
163 views

SLD version=“1.1.0”, GeoServer 2.12.3 and graphic stroke spacing

I am trying to get the spacing or gap between arrows in GeoServer to work. The rendering in QGIS is perfect but in the GeoServer the parameters are not read/taken into account. I tried to get around ...
1
vote
2answers
209 views

How to draw right arrow symbol in SLD for Geoserver?

I have the below part of SLD: <sld:WellKnownName>ttf://Wingdings#0xE0</sld:WellKnownName> <sld:Fill> <sld:CssParameter name="fill">#0000FF</sld:CssParameter> <sld:...
0
votes
1answer
45 views

Why does GeoServer SLD sometimes fail when copy/pasting sample code?

Sometimes I find that GeoServer SLD files fail to validate, even when copying code directly from the SLD Cookbook. For example, I start with the polygon with styled label sample code, paste it into a ...
0
votes
1answer
210 views

Show a gif icon in point GeoServer SLD

How to show a gif image for a point in GeoServer SLD like blinking point? I found here animated wms layer. Please help me. I tried SVG Icon. Its working without animation. My svg code is <svg ...
0
votes
1answer
363 views

How to specify a label “weight” in GeoServer SLD to control label priority?

I'm labelling a cities layer using GeoServer SLD. I need the larger city labels to draw first, then the smaller city labels to draw if there is enough room. There is a pop_band field which I'm using ...
0
votes
0answers
58 views

Extra square brackets in variable substitution - GeoServer SLD

I am trying to create a SLD in GeoServer to change the layer style based on the attribute passed. I am using GoeServer Variable substitution. The following is block of my SLD. <Rule> <Name&...
0
votes
1answer
117 views

GeoServer option “followline” results in no labels on a river layer

I'm using GeoServer 2.10.1 with a river layer and I'm trying to add labels which follow the lines. (The river layer is sourced from a PostGreSQL table if that makes a difference.) Using the line with ...
0
votes
1answer
74 views

Hatching on filtered region of raster layer

I've created RasterSymbolizer-based styles (colour ramps )for a bunch of trend maps layers (from NetCDFs) in GeoServer, and I serve them over WMS. I also have matching p-value raster layers, and I'd ...
3
votes
4answers
588 views

Relative path to the plugin folder for SVG file in QGIS3 .SLD file

I'm trying to update an old plugin to QGIS3 where we use default svg files (in the plugin folder) as markers. It is important that it is the plugin folder since I just to have the entire plugin in one ...
2
votes
2answers
378 views

Style MapServer layers easily (or as easy as possible)

I am working with MapServer WMS in the form of mapfiles and consuming them into a OpenLayers map. I am trying to find out a way to ease the symbolization process of the various layers in a mapfile. ...
2
votes
1answer
358 views

How do I use the True Type Font that has a space in the name in an SLD?

Using an answer from another question, I learned how to use a Wingdings character in my point SLD. Now, I'd like to use a character from "Wingdings 3". Here's the XML from the answer above that ...
0
votes
1answer
63 views

Is it possible to use NamedStyle inside of UserStyle with MAPSERVER SLD?

I want to use a NamedStyle inside a UserStyle for the ElseFilter of my SLD-Definition: <NamedLayer> <Name>MyLayer</Name> <UserStyle> <FeatureTypeStyle> <Rule> <...
0
votes
1answer
245 views

Load sld file with URL link in OL3

I was wondering if there is a way in OL3 or Leaflet to load another SLD file other than the one is coupled with the layer in Geoserver. I have tried to find some topic related to this but no luck. ...
2
votes
0answers
64 views

SLD file Style in Geoserver [closed]

When I want to load sld file in geoserver appears this error: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath....
1
vote
1answer
93 views

Display palette (coloramp) imagery in GeoServer

I have a data set of palette imagery. These are basically RGB imagery that have been converted to 1 band color map imagery using ArcGIS. I am loading the images to GeoServer as GeoTIFFs but nothing ...
0
votes
1answer
199 views

Geoserver SLD Styling Error with zoom

I think I've run into a bug in how SLD rules are applied in geoserver. This is on GS 2.12.2 with the css styling extension. In my table I have units that I'd like to render with different icons and ...
1
vote
1answer
93 views

Filtering number of features in GeoServer using SLD?

I have published point file in geoserver from postgis table as store. I had huge data in my table(rows) and the data will keep udate daily (at least one point for one day). Now I want to show only ...
2
votes
2answers
295 views

Adding SLD using OpenLayers 3

I wonder if I can add SLD style to WMS or WFS layer existing in GeoServer, using OpenLayers 3?
1
vote
1answer
124 views

Variable substitution in SLD for geoserver 2.13 RasterSymbolizer ChannelSelection

I'm trying to publish a layer with a style that allows the extended WMS request to specify what image bands to map to the RGB values. Based on existing examples I assumed that my SLD should have ...
2
votes
1answer
400 views

How to show Labels on Geoserver, only if they fit within the Polygon?

I'm trying to Set the Style via SLD on a Polygon Layer, such that it shows labels, and the Labels are visible only within the Polygon, and do not overflow outside the Polygon. I've managed to get the ...
0
votes
1answer
315 views

Geoserver SLD style PointSymbolizer ExternalGraphic issue

Any idea why this isn't working? It's taken straight from here: http://geoserver.readthedocs.io/en/latest/_downloads/point_pointasgraphic.sld refernced from this page http://geoserver.readthedocs.io/...
1
vote
1answer
150 views

How to change the wind direction vector GeoServer

I'm trying to change the direction of the vector automatically. I'm looking for in a NetCDF file the variable wd, but the vectors are all directed down, as if it were null follows the result of ...
0
votes
1answer
73 views

GeoServer not infilling Polygons in WMS?

I am trying to make a WMS service for complicated Polygons using geoserver pointed at postGIS. When some of the polygons are being rendered by the WMS the polygon fill crosses the geometry of the ...
1
vote
1answer
76 views

geoserver CSS-Styling call WPS function

I've a custom WPS function gs:GetStyleSize, that I used to call from SLD like the following: <FeatureTypeStyle> <Rule> <PointSymbolizer> <Graphic> ...
1
vote
1answer
162 views

Styling each feature of a layer individually

I’ve a PostGIS table which is published as a Geoserver layer. Every feature in the table has some attributes that should style that feature (e.g color, size, opacity, external graphic url, ... etc). ...
1
vote
1answer
121 views

Geoserver: Call custom OWS function from inside SLD

I've a PostGIS table published as a layer, I need to style this layer using SLD. I need to call a custom OWS function (which I wrote) from inside the SLD. It should look something like: <?xml ...
0
votes
0answers
292 views

Error: The requested Style can not be used with this layer

I'm trying to calculate the area of a polygon using the code from this page and I'm getting the following error The requested Style can not be used with this layer. The style specifies an ...
2
votes
1answer
246 views

Working with Geoserver ttf marks?

I am trying to add multiple symbols to my SLD using the bulk ttf marks. However it does not work, it always returns a blank mapview. This is part of my code and lets say I would like to add a little ...
1
vote
1answer
30 views

Setting color based in quotient and remainder of data with Geoserver WMS SLD?

I need to style a raster WMS layer based on a math operation over the raster data. In this case I need to set for example one output channel as a linear ramp from the quotient of the raster data by a ...
1
vote
0answers
56 views

How to successfully call CQL in YSLD?

I am trying to create a web map using GeoServer, and doing styling via YSLD. According to YSLD documentation, I should be able to include CQL in order to do filtering. For a test, I am using ...
1
vote
1answer
207 views

GeoServer GetLegendGraphic without x-mark

I'm using the GeoServer WMS to display some raster data with a custom color ramp. When I request a legend using GetLegendGraphic, I get a legend entry with a big red X in it: Is there any way I can ...
1
vote
1answer
35 views

How can I see which layers my style is assigned to in Geoserver?

How can I easily tell which layers in Geoserver (2.3.5 at the moment) are assigned a particular style? For instance, I have a style called "buildings"... How can I tell which layers have a "Default ...
2
votes
1answer
324 views

Draw arrow in direction of line on midpoint in Geoserver SLD

Similar to this question: How do I draw the arrow on the line using SLD of Geoserver? The answer there works, but I need to place the arrow on the midpoint of the line. Alternatively, it could be ...
1
vote
1answer
358 views

Apply different styles using GS pointstacker's “count” variable

In an effort to give the Geoserver’s pointstacker method more life, I only applied it to scales greater than 1: 34085, so that on the lower scales it is possible to use “getfeature” function in the ...
1
vote
1answer
145 views

How to hide label when“count” is equal to 1 in pointstacker?

Is there a way to hide labels when the "count" value is 1 (one), using pointstacker? "count" = <ogc:PropertyName>count</ogc:PropertyName> SLD Code: <?xml version="1.0" encoding="utf-...
1
vote
1answer
120 views

Geoserver SLD string functions for GetFeatureInfo requests

I have several Geoserver WMS layers styled with SLD. I also run GetFeatureInfo requests against those layers. My understanding is that Geoserver checks the layer's SLD rules even for GetFeatureInfo ...