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
44 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
91 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
289 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
45 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
90 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
6k views

Geoserver SLD external graphic path

<Rule> <PointSymbolizer> <Graphic> <ExternalGraphic> <OnlineResource xlink:type="simple" xlink:href="glass.png" /> ...
1
vote
1answer
394 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 ...
5
votes
2answers
12k 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
179 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
151 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
914 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:...
7
votes
2answers
5k 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
188 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
221 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
46 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
3k views

Showing Two Labels of One feature In GeoServer?

I have prepared a Web GIS Map using Geoserver-Openlayers_Postgis....For One Feature I need to show two labels such as "premise_no' & "bld_name'... The following is the xml I used for styling(in ...
0
votes
1answer
407 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
230 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
81 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
443 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
365 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
59 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
230 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
129 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 ...
3
votes
4answers
617 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 ...
1
vote
1answer
211 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
77 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
709 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 ...
3
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
1k 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
491 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
457 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
422 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
393 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
504 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 ...
1
vote
0answers
100 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
65 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
269 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
71 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
713 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
323 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
203 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 ...
2
votes
2answers
322 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
264 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
vote
1answer
94 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 ...
1
vote
0answers
89 views

Getting QGIS SLD From OpenStreetMap [closed]

QGIS has a plugin called OpenLayers. From that plugin, we can get a very pretty map. I have downloaded some shapefiles for the region (a city in my case) I am targeting. When I put the shapefiles on ...
1
vote
1answer
130 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
418 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 ...
2
votes
4answers
2k views

Is there a way to set the attribute name dynamically via sld substitution in Geoserver?

In Geoserver, a have a SLD style with a rule that looks like this <Rule> <ogc:Filter> <ogc:PropertyIsGreaterThan> <ogc:Function name="env"&...