The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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

Error When Creating SLD

It generates the following error: línea 17: cvc-complex-type.2.4.a: Se ha encontrado contenido no válido a partir del elemento 'PropertyIsEqualTo'. Se esperaba uno de '{"http://www.opengis.net/...
0
votes
1answer
30 views

Querying a Styled Layer Descriptors file for OS MasterMap area fill data

I am attempting to write a software to import OS MasterMaps into our product and am having difficulty getting the area styles to import correctly. How do I get the fill color for a combination of ...
0
votes
1answer
144 views

QGIS does not export heatmap SLD-files

At the moment I am creating a webmap with PostGIS and GeoServer. I want to style the data using SLD-files, because my data keeps updating. I have made SLD-files for Points and Polygons and that ...
2
votes
0answers
1k views

Using .lyr files in QGIS

I'm trying to use a publicly available data set (the Australian National Vegetation Information System) in QGIS, but it has been set up for use in ArcGIS (.lyr file). I tried to convert the file ...
0
votes
2answers
79 views

Geoserver polygon labeling Arabic numbers using SLD

I've used SLD to label polygon features with their parcel Ids. The problem is for Ids include '.' and '-' marks, the ordering of character is messed up. For example 39.1 changes to 139. I've checked ...
3
votes
1answer
121 views

Wrapping WMS across date line using GeoServer?

I am using GeoServer to serve a WMS version of the Natural Earth 1:10m Country shapefile. I have everything working pretty well except that when it wraps around the dateline, there's an extra ...
1
vote
1answer
93 views

Geoserver styling line feature with border in conjunction

I've used SLD to style two type of roads with the border in Geoserver. The question is how can I remove the border of a road when another road or street connects to it. As shown in the image, when ...
0
votes
1answer
148 views

QGIS Server: SLD and SLD_BODY parameters in GetMap request

Does Qgis server support SLD and SLD_BODY parameters in GetMap request? I'm trying to give a valid .sld to qgis server but it returns empty image in response.
0
votes
1answer
201 views

Point averaging alternative to GeoServer WPS heat map transformation

I have a point dataset in which each point has a value for a "rating" field. Points distributions don't follow any pattern and can overlap at identical locations. My requirement is to generate ...
3
votes
2answers
135 views

GeoServer slow rendering of line features with border

I've published some shapefiles including line features using GeoServer and styled them with simple stroke and label. To apply a thin border around the roads, I've used another 'FeatureTypeStyle' ...
1
vote
1answer
63 views

GeoServer 2.10.4 - Vector layer always on top

I have successfully created a new vector layer in my GeoServer 2.10.4. It shall be displayed on top of a basemap and an additional raster layer, but it displays below the raster. I want this order: ...
1
vote
1answer
257 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
231 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
33 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
102 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
103 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
194 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
178 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
90 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
46 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
40 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
101 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
60 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
450 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
212 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
218 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
254 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
49 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 ...
1
vote
1answer
252 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
484 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
64 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
147 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
89 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
675 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
502 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
456 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
72 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
297 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
80 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
106 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
213 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
100 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
374 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
140 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
473 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
384 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
183 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
82 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
86 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
186 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). ...