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
0answers
114 views

QGIS version migration of Styled Layer Files

I have a stand alone application which reads SLD files, to draw something on a map canvas (development started under QGIS version 2.0.1). Unfortunally I have to deal with these old SLD files version ...
4
votes
1answer
762 views

Dynamically style geoserver layer with timestamp column --> age of entry

I have a a postgis table with point geometries and a timestamp column, which has the information when the point was created. This table is already loaded as a layer into geoserver. So now in ...
2
votes
1answer
2k views

Is is possible to have a sld with a rotated point symbolizer along a line in geoserver?

Geoserver 2.1.3 I would like to symbolize a line with a Square but use the <Rotation>45</Rotation> tags to make the symbol look like a diamond. My sld is below and unfortunately the ...
2
votes
0answers
129 views

Avoid multiple labels geoserver styling [duplicate]

Possible Duplicate: Labeling Geoserver SLD I have a geoserver 2.1.x installation with SLD stylization. I have used a property to label the polygons which forms a map. But the issues is the ...
0
votes
1answer
487 views

GeoServer SLD Filter rule before PointStacker transformation

I'm trying to apply a filter rule in an SLD, before applying the GeoServer PointStacker transformation (which groups points that are too close to distinguish their icons). This transformation is ...
1
vote
1answer
1k views

SLD encoding with GeoServer REST Configuration

I am using the GeoServer REST Configuration to add the following SLD file to GeoServer: <?xml version="1.0" encoding="ISO-8859-1"?> <StyledLayerDescriptor version="1.0.0" xmlns:ogc="http://...
1
vote
0answers
502 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> <...
1
vote
0answers
957 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 ...
0
votes
1answer
249 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
146 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:...
2
votes
1answer
479 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
543 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
117 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 ...
1
vote
1answer
264 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
197 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="...
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 ...
1
vote
1answer
415 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
294 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
410 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, ...
1
vote
2answers
195 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 ...
0
votes
1answer
172 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
524 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 ...
3
votes
4answers
3k views

Line stroke offset in Geoserver

Does anyone know how to offset a stroke in Geoserver? For example I will color the left side of the street (line feature) red and the other side (same line feature) blue. I believe I will be using 2 ...
1
vote
1answer
664 views

SLD combine interpolate+categorize function and pass threshold

In my requirement I have a float atribute (value) containing values between 0 and 10. I want to use the interpolate function to color values between 0 and the threshold=5 in green colors and to ...
2
votes
1answer
432 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
2k 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>...
1
vote
1answer
103 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 ...
2
votes
1answer
1k views

Changing background color to transparent in GeoServer?

How to set the background color to transparent. I want use style which describe in *.sld file for all my photo with tif format. How to do that?
2
votes
1answer
346 views

problem displaying inline features with geoserver sld

I am trying to display a simple inline feature on top of other features with geoserver. I need the top feature to be defined through sld. The sld does'nt give me any error but also does not display ...
1
vote
1answer
2k views

Unexpected font family displayed using custom SLD from a published WMS using geoserver

When publishing a WMS in geoserver using a custom SLD file, I'm seeing the WMS preview correctly on my local geoserver. However, doing everything the same on a remote hosted geoserver, my seeing an ...
2
votes
1answer
9k views

Geoserver SLD for min-max scale range display

I am new to GeoServer. I am trying to add a scale range to a layer that I am serving as a WMS. I want the layer to only be displayed between 1:30,000 and 1:1,000,000. I am using the max/min scale ...
2
votes
0answers
1k views

Converting from QML to SLD on the command line

We have the problem of automating the conversion of MapInfo TAB styles to SLD. I've managed to achieve the first part of the process (TAB -> QML) using this tool: https://github.com/NathanW2/MapInfo-...
1
vote
0answers
885 views

java.lang.IllegalStateException: Form too large 326482>200000

I have a problem with Geoserver style creator! When I want upload a SLD file that I create it by QGIS I will see this error! Geoserver 2.6-SNAPSHOT, QGIS 2.8 HTTP ERROR 500 Problem accessing /...
0
votes
1answer
70 views

Styling in OpenLayers2: unknown symbol name

I'm using Geoserver 2.8.1 and OpenLayers 2 to visualize cartographies, the geoserver documentation indicates I can use extra symbols in my SLD, the "shape://oarrow" for example : <Mark> <...
1
vote
0answers
196 views

Geoserver create generic dynamic style

I'm quite new to GeoServer, and I wonder if it is possible to create a dynamic style. I got a big shapefile with more than 600 variables, and I want to create a generic style where you can input the ...
1
vote
1answer
2k views

Label background in SLD

Is there any possibility to construct SLD style which displays label with rectangular background? Background has to have sizes which automatically fit to sizes of text content. I would prefer not to ...
3
votes
1answer
2k views

Geoserver GetLegendGraphic not working for single rule

<?xml version="1.0" encoding="ISO-8859-1"?> <StyledLayerDescriptor version="1.0.0" xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd" xmlns="http://www....
2
votes
1answer
320 views

Is it possible to edit layer transparency in .sld or .qml file for use in QGIS?

Say I have a shapefile with 20 graduated classes that I'm using in QGIS. I want to save the layer style so that I can use it on other shapefiles, but I can't edit the layer transparency without ...
1
vote
0answers
123 views

Leader lines in SLD

I have point type shapefile and I want to create leader lines connecting labels with features in Styled Layer Descriptor. I spent significant amount of time searching for examples, tips etc., but I ...
1
vote
1answer
463 views

Where can I find all Styled Layer Descriptor vendor options for geoserver?

I am working with GeoServer and use SLDs to style my data. I noticed some tags you can use in your SLD which seem to be GeoServer specific. Is there a site which lists the different vendor options ...
2
votes
0answers
148 views

SLD for dot density [closed]

I am trying to find, or get help creating, an SLD to render dot density symbolization for a polygon shapefile for an online GIS display - in this case WorldMap. The dataset is county level US Census ...
1
vote
0answers
210 views

External SLD file for OpenLayers [closed]

I'm creating a application with Geoserver, OpenLayers and Postgis. At some point, the user can select his own style for a layer. I've succeded to make a php script to write to a file the SLD code. ...
1
vote
0answers
57 views

geoserver sld color gone in zoom out [closed]

I badly need help... I have a layer served from geoserver, this layer is in polygon.. and in every polygon the color varies according to a number. so it is like a choropleth map. now my problem is ...
4
votes
2answers
2k views

SLD styling in QGIS, elsefilter not working

I need to figure out how to make elsefilter work when imported into QGIS (2.8.3) via sld. <?xml version="1.0" encoding="UTF-8"?> <StyledLayerDescriptor xmlns="http://www.opengis.net/sld" ...
0
votes
1answer
200 views

Can I change the width of a line in a GeoServer WMS layer through OpenLayers?

I have a layer in geoserver with an SLD style, which I display in a map web app using OpenLayers2. I want to know if there is a way to change part of the style (the width of the line geometry) through ...
2
votes
1answer
264 views

Geoserver and SLD - continuous zooming of points?

I'm working with sld files and geoserver and I faced a problem about zooming in points at certain scale. Is it possible to zoom in a point layer so that points get bigger continuously like polygons ...
2
votes
1answer
383 views

Styling WMS layers in GeoServer with fields using “%” character

I have an Oracle Spatial 11g geodatabase connected to GeoServer 2.8 through Oracle plugin. Some feature classes have field names with % (percent) characters, e.g. NAME%EN or AREA%KM2. The layer shows ...
3
votes
1answer
472 views

Line offset issue with Geoserver

I'm using Geoserver 2.6.2 and QGIS 2.10 to check my WMTS display. According to the documentation, I have tried 2 different ways to draw a line offset for a line-type layer, but none is working ...
1
vote
0answers
66 views

How to position regularly-spaced arrows along line with Geoserver?

I'm using Geoserver 2.6.2. I would like the arrows I've positionned on linear features to be regularly spaced. The fact is that what appears as a line is in fact composed of several lines of different ...
2
votes
1answer
488 views

How to position direction arrows on lines' sides with Geoserver?

I'm using Geoserver 2.6.2. I need to represent direction arrows for line features. I have managed to position such marks on lines centroid but I need to position these arrows on the side of the lines. ...