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
1
vote
1answer
104 views

Wrong SLD style generated by QGIS for Geoserver

can you tell me what is wrong with following SLD style? I've generated it by QGIS (2.18.3). In QGIS styles works fine, but when I upload it into Geoserver (2.10.1) and click valide I've had a lot of ...
1
vote
1answer
497 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
1answer
229 views

WKT MultiPoint string not working in GeoServer?

I have a problem with a MULTIPOINT WKT string (SLD file for GeoServer) that is not displaying at all: <WellKnownName>wkt://MULTIPOINT((-1.5 1), (0 1), (1.5 1), (-1 -1), (1 -1))</...
1
vote
1answer
465 views

GeoServer: points' symbols with a WKT polygon geometry?

I need to define custom points symbols in a SLD file for GeoServer. It seems that some WKT strings are accepted and others are not. I need to draw a closed line with a fill color. The following ...
3
votes
1answer
471 views

How to convert svg to sld

I use geotools library for creating my application. Geometries I use need to be represented with style which is defined by sld. I have these styles as a library in svg format and need to convert it to ...
2
votes
1answer
138 views

GeoServer: SLD polygon texture image

I have a layer with polygons - rectangles to be specific. For every rectangle there is an image specified. That's basically ImageMosaic format but ImageMosaic does not have feature info on those ...
1
vote
0answers
117 views

QGIS (2.14 and olders). Problems with OGC SLD Text Labels Support

Could you tell me if QGIS 2.14 (and older versions) support SLD labels correctly? I had some problems trying to incorporate some SLD files that labels specific objects in a layers. This is my SLD ...
2
votes
2answers
295 views

Geoserver SLD: link to symbol in database instead of file

I have a PostgreSQL table with fields: 'id' with identificators of objects types (e.g. shops, cinemas etc), 'graphic' with SVG codes of correcponding map symbols. I want to create sld style with ...
1
vote
1answer
2k views

Rotation in GeoServer SLD

I am using the style editor in GeoServer to make some symbols for an OpenLayers based Web GIS solution. But I face a challenge when trying to rotate some symbols. I have a Point Layer that needs to be ...
2
votes
1answer
256 views

Absolute scale for Geoserver's heatmap rendering transformation

By default the SLD to generate a heatmap in Geoserver takes numbers between 0 - 1 to define the color ramp. So this would be a relative scale, where 1 is assigned to the area with the highest value in ...
2
votes
2answers
338 views

SLD Polygon Styling: Add Point feature to Northern Edge?

I am trying to create an SLD to style a polygon; the goal is a simple block fill along with a single point image added to the most northern edge of the polygon. Something like this: This example SLD ...
1
vote
1answer
222 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....
2
votes
1answer
283 views

SAXParseException GeoServer SLD error

I want to change SLD of WMS layer dynamically. In SLD string I have CssParameter XML tag that has Hex color code like "#ff0000". When I post it to GeoServer I got this error: java.lang....
1
vote
0answers
33 views

Some areas of label repeat, do not show, or appear offsets in Geoserver [duplicate]

I found that tile map of each region in geoserver2.9.2 of platform independent binary displays its name two or more times. As shown in the first picture. I have done as How to avoid duplicate labels ...
1
vote
0answers
184 views

Problem with MaxScaleDenominator in GeoServer

I'm using GeoServer version 2.7.6, and I had to publish a WMS service, I tried to establish a limit in the scale (with <se:MaxScaleDenominator>5001.0</se:MaxScaleDenominator>) but when I ...
2
votes
0answers
391 views

Apply SLD to WMS Layer by OpenLayers 3 [closed]

I want to change SLD of WMS layer. I think everything is well but SLD does not apply to layer. Here is the code: var SLD = '<?xml version="1.0" encoding="UTF-8"?>'+ '<StyledLayerDescriptor ...
2
votes
2answers
1k views

Removing white background from GeoTIFF in Geoserver

I'm having trouble with removing white background/bounding box from raster in Geoserver. When I add WMS service in ArcMap or Autocad I'm seeing this white bounding box and to be fair I don't know how ...
1
vote
1answer
155 views

Geoserver style external label

I have uploaded PostGIS/PostgreSQL tables to GeoServer and now need to create SLD style to draw points with a name of locations. The problem is that point coordinates are in one table, and the name ...
2
votes
1answer
268 views

Tips editing/managing SLD files in geoserver

I have spent the complete day creating a single SLD file and tuning it, and I am on the one hand really pleased with the actual result, but really frustrated how cumbersome it is to edit and test SLD'...
0
votes
1answer
106 views

How to get list of sld with a specific symbol? [closed]

I am using geoserver and python to manipulate the things in geoserver. Geoserver have the ability for the REST API. Now i am trying to get the list of sld with a specific symbollizer. for example i ...
1
vote
1answer
213 views

Dynamic property inside the wkt:// on Geoserver

I try to create dynamic symbolizers with WKT. This link says a CQL expression can be used inside a WellKnownName or a link:href. I want my symbolizers to have a dynamic size depending on my data on ...
1
vote
1answer
321 views

GeoServer CSS Map Styling

I'm using GeoServer for the publication of my maps. To generate a style for a map I mostly use the SLD's generated by QGIS. But since these generated SLD's don't always cover the whole style made in ...
1
vote
0answers
281 views

How to send an SLD style to GeoServer using AJAX?

The question title sums it up pretty much, this is the code that I actually have: // Build a XML string from the XML object var xml_string = '<?xml version="1.0" encoding="UTF-8"?>' + (new ...
1
vote
0answers
71 views

Geoserver rendering hindi labels incorrectly [closed]

I have published a layer in geoserver with database.unfortunately geoserver is not rendering the label correctly as its in database. I have included Hindi font both in sld and geoserver but i was ...
1
vote
1answer
600 views

How to rotate mark in Geoserver style?

I want to make style like: This is my style for start point: <PointSymbolizer> <Geometry> <ogc:Function name="startPoint"> <ogc:PropertyName>geom</...
1
vote
1answer
770 views

SLD style: put all labels at polygon bottom

I have the timezone polygons in my database and create a layer to it. Now I try to apply some style but I can't find a way to put all zone labels at bottom. Already read this http://docs.geoserver....
2
votes
1answer
263 views

Geoserver SLD with CQL

I am trying various ways to have a programatic way of combining various bands of a tiff file into the red, green, blue channels. I tried the CQL way, eg see below This is my SLD <?xml version="1....
1
vote
1answer
300 views

GeoServer SLD How to Rotate Group of PointSymbolizers

Is it possible to group several PointSymbolizers and rotate them all as a group? Imagine that I have a rule such that for each point I have three small circles, the first offset along the y-axis so ...
1
vote
1answer
569 views

sld density heatmap with geoserver without weight atribute

I try to generate a density heatmap to display my points density but I don't know what to write in the weightAttr area of the tamplate furnished in the doc because I just have plenty of points but ...
5
votes
0answers
480 views

SLD file GeoServer: Avoiding duplicate labels

I have an SLD file for a road layer in GeoServer. I wish only to show the labels for that layer (no symbol for the line objects) and I wish to only see them once for each road when I view my layer in ...
0
votes
1answer
424 views

Rotating sld with expression?

I'm trying to rotate an arrow based on an attribute but the arrow is off by 90 degrees. Is there a method for doing a mathematical expression on the attribute within the sld? I've gone over the ...
2
votes
1answer
2k views

SLD based on several Value Fields

How do I write a SLD file based on more than one Value field for each Name. I would like to symbolize by two fields "Type" and "Aabningsgrad". Some features I would like to see with the combination ...
2
votes
0answers
198 views

GetLegendGraphic from layergroup in Geoserver 2.8.2

I am working with Geoserver 2.8.2 I am requesting a GetLegendGraphic to a layer group that holds three layers, each layer with one single SLD styling. I am getting a legend from Geoserver, but ...
4
votes
2answers
2k views

Qgis exported SLD file is not valid on Geoserver

i'm trying to export my symbols from Qgis as an SLD file to use it as a style for the layer in geoserver here is an example of my SLD: <?xml version="1.0" encoding="UTF-8"?> <...
2
votes
1answer
209 views

Can I get geoserver to recognize 'rectangle' in SLD?

Since geoexplorer is giving us problems, we have started using QGIS to style our layers and then put the sld in geoserver. The wellknownname for a square comes out as 'rectangle' from QGIS and ...
1
vote
0answers
103 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 ...
1
vote
0answers
967 views

Geoserver SLD creation using a local image

Using this documentation I have made the below SLD file, attempting to use an svg that I obtained from here I have moved the svg into /var/lib/tomcat7/webapps/geoserver/data/styles but the image will ...
1
vote
0answers
511 views

Is it possible to change a symbol's default anchor point in Geoserver SLD?

I'm using Geoserver 2.6. I was wondering if it was possible de specify the anchor point for a symbol other than the exact center of the symbol. Here a piece of SLD file: <Rule> <...
0
votes
1answer
251 views

sld styles library

I am looking for a library with several sld styles that I can add to my geoserver styles directory. I find the default styles provided very limited and do not want to spend to much time with creating ...
1
vote
0answers
148 views

Dynamic Symbolizers w/ CQL not URL encoded

I am trying user Dynamic Symbolizers in my SLD: <?xml version="1.0" encoding="UTF-8"?> <StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:...
3
votes
1answer
547 views

Label every polygon in Geoserver multipolygon

I want to label all areas in a multipolygon in Geoserver using SLD. I have a map with two or three areas, but the label is only visible on the largest one. See attached images; the first image shows ...
1
vote
1answer
120 views

Styling multiple features in shapefile using GeoServer?

I have a shapefile loaded in a GeoServer instance, and I need some guidance on how to best style the output. The file is depicting public/private land ownership in the State of Colorado. The shapefile ...
2
votes
1answer
483 views

Using dynamic property value in OnlineResource href against MongoDB store?

I am passing this SLD to geoserver: <?xml version="1.0" encoding="UTF-8"?> <StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http:/...
3
votes
1answer
1k views

Geoserver tiles missing point labels that show up fine when serving as a single tile

Using Geoserver 2.8.2, I just loaded a new "address points" layer (shp files). I have a style I've used before, and perhaps this has happened in the past and I've not noticed, but with the custom ...
1
vote
1answer
266 views

SLD ogc filter for MS Sql server table

In geoserver only geometry type of SQL server table is detected. Which means SLD style can't be applied ogc filter tag. But none of my SQL server field beside geometry are detected by geoserver. How ...
0
votes
1answer
200 views

Using external images on geoserver with dynamic url

I'm trying to get dynamic icon loading based on an attribute in GeoServer 2.9 My SLD: <sld:ExternalGraphic> <sld:OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="...
1
vote
1answer
419 views

Geoserver CSS plugin - combining styles

I'm currently trying to write some SLD styles using the CSS plugin in geoserver. The problem is that the plugin merges single rules into complexed ones, ie. the following code generates 5 rules ...
0
votes
0answers
301 views

Unable to get the SLD file of existing style in Geoserver

I am trying to access some specific geoserver styles but I get an error page: HTTP Status 404 - The requested resource () is not available. This is the URL I use: http://localhost:8080/geoserver/...
1
vote
2answers
426 views

How to label lines with their length in GeoServer?

I would like to display land parcel dimensions on a map layer. The source layer in GeoServer has the parcel boundaries as line features. I made an attempt using the geomLength function in an SLD, ...
2
votes
0answers
55 views

Duplicate an existing geoserver style using gsconfig

I am playing around with gsconfig and trying to assign a new style on a layer I have created. What I want to do is to actually create a new style, which is the same with an existing one. I searched ...