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
2
votes
3answers
3k views

SLD parsing fail on GeoServer

I created a custom style on QGis and saved as SLD file. When I added to GeoServer, after validation it, I got an errors about parsing. Here is the error message below: Parsing failed for Filter: ...
1
vote
2answers
260 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
118 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>#...
4
votes
2answers
790 views

GeoServer Heatmap WMS style problem

I just try to visualize some points using GeoServer to publish them as WMS and bind this WMS to my Openlayers website using the GeoServer internal Heatmap process to visualize it. I don't want to use ...
3
votes
0answers
1k views

Doing crop coverage with WPS chain in SLD?

I had 2 layers: custom:Temperature: Point layer. custom:Region: Polygon layer. I would like to perform a gs:CropCoverage of the Raster Layer which is the result of gs:BarnesSurface of vector layer '...
1
vote
0answers
48 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-...
3
votes
2answers
257 views

Offsetting raster layers in GeoServer SLD

Is it possible to scale or offset raster layers in GeoServer SLD, for example to convert Kelvin to Celsius on the fly? Given a basic raster style: <?xml version="1.0" encoding="ISO-8859-1"?> &...
0
votes
1answer
49 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
1answer
179 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 ...
2
votes
1answer
378 views

Case Insensitive PropertyName Evaluation in SLD

I have a table layer_styles created by QGIS and, inside this table, the column stylesld. The problem is that the PropertyNames (column names) stored inside this column and the generated SLD that ...
0
votes
0answers
89 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 ...
0
votes
1answer
107 views

WMS Custom styles (remotely)

I access this WMS (link) which is returned in only .png/.jpg/.gif in a pre-defined colour-scale. I want to change those colours and am asking myself if I can set up a custom style for the rasters. I'm ...
8
votes
2answers
8k views

Geoserver SLD external graphic path

<Rule> <PointSymbolizer> <Graphic> <ExternalGraphic> <OnlineResource xlink:type="simple" xlink:href="glass.png" /> ...
1
vote
1answer
667 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 ...
6
votes
2answers
14k views

Geoserver SLD using PropertyIsEqualTo And PropertyIsLike

I have two SLD rules one using PropertyIsEqualTo and another using PropertyIsLike Using PropertyIsEqualTo <Rule> <Name>Vendor FirstVendor</Name> <...
2
votes
1answer
455 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> ...
1
vote
1answer
164 views

How to get all the Rules and Filters from GeoServer for specific Workspace

I am using GeoServer 2.4.2 for storing my vector data. And I created a style for a layer now I want to fetch all the Rules and Filters from style which I created on my work-space. I am currently using ...
2
votes
1answer
1k views

Specifying distance between arrows in line SLD in GeoServer?

I have designed an SLD for a line format shapefile in GeoServer, in which I am using an arrow symbol as shown in figure. The code is: <?xml version="1.0" encoding="UTF-8"?> <sld:...
8
votes
2answers
6k views

Drawing arrow on line using SLD of GeoServer?

I have a line layer in geoserver as in the 1st image. How can I draw an arrow on the line like in the 2nd image? The line.rar includes a shapefile and a sld file. Can edit a sample for me? line....
0
votes
1answer
299 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
370 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
61 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
752 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 ...
1
vote
1answer
359 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 ...
2
votes
1answer
88 views

Need Help on Multiple External SLDs for GeoServer LayerGroup

I have a layer group called "basemap" in my GeoServer made up of 3 layers but their SLDs needs to be styled dynamically so I have decided to create a XML web service for the external SLDs but I am ...
0
votes
2answers
506 views

How to crop coverage which is the result of gs:BarnesSurface with WPS chain in sld? It's throw a Error

I would like to perform a gs:CropCoverage of the Raster Layer which is the result of gs:BarnesSurface The SLD file is below: <?xml version="1.0" encoding="ISO-8859-1"?> <...
1
vote
1answer
486 views

Classified contour-line visualization in SLD Geoserver

I have a problem with the Styling for the contour-lines. here is how I want to style them: 4 different classes with different display zoom MaxScaleDenominator. The interval is a variable (not fixed) ...
6
votes
3answers
2k views

Problem with Styles having a Workspace

I've encountered a little problem with my styles having an assigned workspace. For one, I've got to admit that I'm not really sure what good does it make to put a certain style inside a workspace. I ...
0
votes
0answers
73 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&...
1
vote
2answers
280 views

What is causing this distortion?

What is causing this strange behaviour in my map? As closer to the poles, the labels are distorted. Local OpenStreetMap data in PostgreSQL Geoserver OpenLayers Projection of data: 4326 Projection of ...
0
votes
1answer
223 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 ...
1
vote
1answer
285 views

Read Sld Style in pyQGIS

I am trying to set a layer's style using pyQGIS. My primary idea was to set the style from a string, but unfortunately I can only do it from a file. This code works as a charm: filename= QDir....
0
votes
1answer
124 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 ...
1
vote
1answer
746 views

Error using SLD with MapServer based WMS (GeoBC)

I'm trying to customize rendering of map tiles from a government WMS server. When I use the GetStyles WMS query to retrieve the SLD for a layer, then feed that SLD directly back in a GetMap query, the ...
4
votes
2answers
2k views

Putting piechart <Graphic> in <TextSymbolizer> of Geoserver style?

I reckon that GeoServer layer label style has excellent feature of TextSymbolizer where text label can be positioned relatively on centroid of VISIBLE PART of polygon, as oppose to a geographically ...
1
vote
2answers
2k views

french accents changed to junk characters when saving the SLD in geoserver 2.11.2 [closed]

I have a shapefile with french accent and needs to be published in geoserver 2.11.2. I have my geoserver in tomcat 8.5 and am using Ubuntu 14.04. The french accents are showing fine in get feature ...
1
vote
1answer
613 views

Geoserver SLD error - Premature end of file

Could you give me an advice with this SLD file http://pastebin.com/vyHLCFxq If I add more feature content and I want to display the layer with this style it won´t display it , but It downloads wms....
1
vote
1answer
659 views

Geoserver SLD TextSymbolizer showing up

I am very new to geoserver and SLD. I am trying to put labels on my heatmap layer using SLD but the labels are not showing up in the preview. I found this example to implement it which looked ...
2
votes
2answers
814 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. ...
3
votes
1answer
573 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 ...
1
vote
1answer
554 views

How do I generate a WorldWind importable image file with a transparent background using an SLD file with PointSymbolizers on Geoserver?

I've been tasked with visualizing a few types of metoc data onto Worldwind based on .grib files. I'm VERY new to the GIS world and I'm just beginning to figure out how a lot of these pieces go ...
2
votes
0answers
128 views

Google.maps.ImageMapType getTileUrl maximum length

I am using google.maps.ImageMapType to render a GeoServer WMS to Google Map. When a request is made, it uses GET. I am concern the WMS getMap length might exceed 4k in length due to a requirement to ...
0
votes
1answer
98 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
398 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
96 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
740 views

Arrow labels not rendered correctly

Geoserver SLD: <sld:LineSymbolizer> <sld:Stroke> <sld:CssParameter name="stroke"> <ogc:PropertyName>geo_color</ogc:PropertyName> </sld:...
1
vote
1answer
412 views

Using the same SLD when attributes are named differently

I have 3 SLD file (let's call them 2013, 2014, 2015) which are related to three shp file. The shapefiles are identical except for the fact that the attributes are named differently (from 2013 and so ...
0
votes
1answer
258 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 ...
3
votes
2answers
728 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
314 views

Styling features based on a custom rule using GeoTools

I have a Java swing app which loads lines shapefiles which represents a road system. I want to show the congested roads on this map with a separate style. My current approach I have two attributes ...

1 2 3
4
5
13