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
196 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
255 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
152 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
385 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
993 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
147 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
246 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
99 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
204 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
313 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
268 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
67 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
555 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
741 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
247 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
279 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
528 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
448 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
413 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
1k 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
184 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
193 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
96 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
929 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
487 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
245 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
142 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
529 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
115 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
469 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
255 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
189 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
406 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
283 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
400 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
50 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 ...
1
vote
2answers
187 views

How to convert JOSM MapCSS to SLD?

I've found an important style file, but it is only in MapCSS format: https://raw.githubusercontent.com/OpenSeaMap/josm/master/INT1_Seamark.mapcss I need to convert it to SLD to use in Geoserver. Can ...
4
votes
1answer
832 views

Geoserver SLD: setting fill color from property does not work

I'm trying to style a vector (Point) Layer in Geoserver 2.8 by using a property (attribute field) of the underlying data source. Here's the snippet: <PointSymbolizer> <Graphic> ...
0
votes
1answer
165 views

Styling selected objects with SLD

Does anyone knows - is it possible to style selected objects in Geoserver (using SLD) in different way than "normal" objects? For example: "normal" points from layer would be shown in blue, but ...
1
vote
2answers
513 views

How to only draw an inside or outside stroke around a polygon in GeoServer

If I add a stroke to a polygon SLD style, I get something that extends over both sides of the polygon boundary like this: I want to highlight certain polygons, some without drawing anything over ...
1
vote
0answers
85 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
998 views

HTTP WMS GetMap using default SLD instead of provided one

Im trying to give a sld with my wms getMap request. My issue is that instead of using the provided sld it uses the default one. Am I missing something obvious? Here is the request: http://url.dev/...
2
votes
1answer
897 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:...
2
votes
1answer
420 views

How to specify default value for Rotation in SLD?

Am using geotools to render a set of point features. I have SLD for styling point features. The SLD uses an expression to calculate Rotation value based on Angle attribute value of feature. The ...
0
votes
1answer
1k views

how to call a function within an SLD

I have the below SLD and I I need to filter based on multiple (several dozen) that do not meet the criteria: <PropertyIsNotEqualTo> <PropertyIsLessThan> <PropertyIsLessThanOrEqualTo>...
2
votes
2answers
2k views

SLD : setting Multiple Values in one Literal Tag

Is it possible to use multiple values in one Literal tag? This is what I have: <ogc:PropertyIsEqualTo> <ogc:PropertyName>name</ogc:PropertyName> <ogc:Literal>...
1
vote
1answer
102 views

GeoServer - Multiple symbology on single layer

I'm trying to show multiple symbologies on a single GeoServer layer. I'm also using the CSS extension, but an SLD example would be fine. My GeoServer version is 2.8.2 For example: A yellow rectangle ...