A Styled Layer Descriptor (SLD) is an XML schema specified by the Open Geospatial Consortium (OGC) for describing the appearance of map layers.

learn more… | top users | synonyms

4
votes
2answers
88 views

How do I parse getStyle request?

I am having problem parsing http://localhost:8080/geoserver/wms?request=GetStyles&layers=topp%3Astates&service=wms&version=1.1.1 getStyle response from geoserver of layer topp:states. ...
0
votes
0answers
172 views

Dynamically scaling PointSymbolizer with external svg without using scaledenominator filter in sld

In this example taken from Graphic Symbology - External Graphics, <PointSymbolizer> <Graphic> <ExternalGraphic> <OnlineResource xlink:type="simple" ...
3
votes
2answers
505 views

Display points labels starting at certain zoom level

I use WMS to display my points on the map. I would like to display points labels(name_ID) starting at certain zoom level. From What I have read I understand I can do it with GeoServer rules, but I ...
0
votes
0answers
175 views

Rotation on label in PointSymbolizer

I have a point symbolizer that should display a symbol image and a label text. Rotation on the symbol works, but I have not found out how to rotate the label text. This is what I have: ...
2
votes
0answers
53 views

SLD - disable follow line

I have a simple SLD style using in GeoServer v2.3.0 and testing in uDig. I have a interstate symbol that I do not want the label symbol to follow the line. I thought if I set: <sld:VendorOption ...
0
votes
1answer
36 views

A PROBLEM WITH XML Standard Layer Descriptor for GeoServer

I wrote an xml in Standard Layer Descriptor for GeoServer, with the objective to map a satellite image with discrete values. I wrote: < ColorMap type="intervals"> < ColorMapEntry ...
1
vote
2answers
171 views

how to produce xml file in SLD to add discrete colors and color legend

I have to produce a xml file, according to Styled Layer Descriptor (SLD) (for more informations you can see: http://www.opengeospatial.org/standards/sld). The file is required by GeoServer and it has ...
1
vote
0answers
95 views

SLD style definition from GeoServer to Drupal

I've been experimenting with the SLD style definitions in both GeoServer and Drupal. What I want to achieve is to create a new style in GeoServer (by a curl operation, but I know how that works) and ...
1
vote
0answers
237 views

How can I parse the SLD file that sits in Geoserver so that I can apply the styling to WFS layer?

I have a layer that can be configured to render as WFS or WMS. I want to apply the same sld styling that I have defined in Geoserver to make it consistent. But when I try to get the SLD text from ...
13
votes
4answers
552 views

Is there any software (with a graphical user interface) for creating Style Layer Descriptors?

Is there any software that can easily create a Styled Layer Descriptor (SLD) without using a script?
2
votes
1answer
318 views

How to style a point based on Actual Attribute Values?

I have published a point layer in Geoserver, which is the data from a GPS Survey. In addition to the geometry, my layer, also contains an Attribute for Accuracy, which indicates the Accuracy in meters ...
1
vote
1answer
606 views

Why won't GeoServer render my SVG symbols?

I'm trying to use GeoServer to render a point layer with custom symbols. This worked perfectly well when my symbols were PNGs, but we haven't decided exactly what size our symbols should be, so I ...
5
votes
3answers
580 views

Is it possilbe to change SLD from client side?

How to change predefile SLD in client side? The reason I want this is I want to turn label on and off on client side.
-1
votes
2answers
176 views

styles when merging shapefiles in qgis

Trying to create something for mapstory.org It wants it in all one shapefile. So I create a polygons and lines (with time attributes) in qgis 1.8 Then merge them all into one shapefile, how can you ...
1
vote
0answers
141 views

SLD Pointsymbolizer with color ramp based on first random attributes

The company I work at does drillings all over the country. These drillings are then presented as a service. So obviously this layer needs an SLD. For the moment every drilling is a green point, but we ...
3
votes
1answer
792 views

How to use a sld file with Openlayers using OSM data?

My app, made with openlayers, displays building data called from overpass api. var data_url = "http://overpass-api.de/api/interpreter?data=(way[building](bbox);node(w););out body;"; //main working ...
1
vote
1answer
272 views

Desktop client symbolozing a WMS layer by sending SLD to the WMS server?

Objective is simple: finding 'desktop software' (such as ArcGIS, QGIS, etc) that can load a WMS layer, and then send its own SLD to apply to the WMS server in order to get the WMS layer back with the ...
4
votes
3answers
472 views

Geoserver SLD for OS Mastermap

We are just looking into moving from Mapserver to Geoserver for some of out WMS needs, one of which is to serve OS Mastermap to our users. Before i have a go at creating the SLD styles for Mastermap ...
2
votes
0answers
333 views

Add SLDs to GeoServer using REST API Fails

I have been writing some python code to automatically add data layers from PostGIS to GeoServer and attach a suitable SLD as default. I got this working using the following code: ...
3
votes
0answers
103 views

Display house numbers on the street corners

I have a street map (MuliLineString geom and house numbers min and max, left and right). I would like to show this numbers on the street corners. I use GeoServer. If I use the TextSymbolizer with ...
3
votes
0answers
273 views

SLD filter with embedded strTrim function in Geoserver

Using Geoserver 2.2.2 (GeoTools Version 8.4) on Windows 7, I'm trying to create a SLD that trims the leading and trailing spaces of a string property (using the strTrim function) and compares it to a ...
6
votes
1answer
458 views

In SLD, how do I add a string to a label describing a property?

Using Geoserver, is there any way that I can add a predefined string: "No. " to a property: postalnumber? <sld:Label> <ogc:PropertyName>postalnumber</ogc:PropertyName> ...
1
vote
1answer
101 views

Editing multiple SLDs

I have to edit and maintain multiple SLD's. Is there a tool to do bulk edits/ updates? I have used tools like Atlas SLD to one SLD at a time, and could use XML editing tools to potentially edit ...
7
votes
1answer
3k views

Is there a free and open-source MXD to SLD converter? [duplicate]

Possible Duplicate: How to edit or convert ArcGIS 10 layer style to a SLD’s file I'm trying to set up a web map server for one of the government agencies in my country. Server setup's done ...
3
votes
1answer
302 views

Dynamic SLD styling - unique colours for linestrings

I have a postGIS table that looks like this: (plus a 'track' geometry column, a linestring for the vessel's track) sampling_interval | voyage_name | start_time_utc | id | ship_name | ...
1
vote
0answers
56 views

Is there a way to retrieve the shape of a styled object from a database?

I am working with geoserver on an oracle database. I am trying to generalize my SLDs and make them more dynamic. The idea is to store all styling information in the database and let the SLD retrieve ...
3
votes
1answer
3k 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
0answers
391 views

What is the least painful way to style ENC data for the Web?

Currently working on a project that among other things requires displaying NOAA ENC for a web based intranet portal. We downloaded S-57 ENC data from NOAA site and successfully imported them into ...
2
votes
1answer
146 views

How to draw labels with line in SLD?

I want to be able to draw labels with line. How can i do this? Just like labels with line of some USA states in Google Maps, labels with red line in right : Example from Google Maps
1
vote
1answer
360 views

CssParameter stroke-width min max value Geoserver

I wonder if there is a minimum value for the stroke width parameter since I've a LineSymbolizer with stroke 0.1 but i want it to be thinner so i change the value to 0.05 but i dont see any difference ...
1
vote
1answer
756 views

How to add a title in a GetLegendGraphic Request

The GetLegendGraphic request works well. I display the legend at a fixed position in my viewer using OpenLayers. But I would like to know if there is any way to add some custom text to the legend. ...
2
votes
1answer
570 views

Serving 4 band GeoTIFF in GeoServer 2.1.4

I have an uncompressed GeoTIFF file (figure 1) with the following band information: Image Structure Metadata: INTERLEAVE=PIXEL Band 1 Block=5000x1 Type=Byte, ColorInterp=Red Band 2 Block=5000x1 ...
7
votes
1answer
241 views

How to migrate SVG-based styles for QGIS to other computers?

I'm working on a project that has involved creating many recolourable SVG icons and bringing them into QGIS. These are then used in layer symbologies, with these subsequent layer styles exported as ...
4
votes
1answer
728 views

Mixed geometry types styling with Geoserver 2.2

I have a PostGIS table with geometry colunm. In this column i have geometries of several types (polugons, points, lines). I publish this this table on Geoserver. Now i want to create OpenLayers layer ...
2
votes
0answers
35 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
2k views

GeoServer VendorOption for SLD to place labels overlapping and out of bounds

I use GeoServer 2.1.1. and have an SLD to serve a layer with labels in OpenLayers. I noticed that some labels are not displayed because other labels are to near. GeoServer wants to make your labels ...
6
votes
2answers
1k views

Can i do Custom Styling on Geoserver

i want to use Geoserver WMS server for custom styling. lets say i have an area as polygon in a shape file. But i dont have this area's temperature as an attribute. From a web service i gather ...
3
votes
1answer
191 views

What are the differences between formats for storing styles?

I'm looking for a format for store information about data styles for my web application. There are different formats for describing vector data styles. For example, SLD, Mapnik XML, and there may be ...
3
votes
2answers
2k views

How to style a WMS layer?

I also posted this question on stackoverflow. I successfully overlayed a WMS layer in google maps v3, however, as the information on tiles is black on transparent, it is not well seen on dark ...
4
votes
4answers
786 views

How to update a SLD file in GeoServer?

I'm working on my own geoportal. I have prepared a php page which users can describe their own SLD configuration. The SLD file will be stored in GeoServer style folder. But when I tried to view maps I ...
1
vote
1answer
373 views

Is it possible to convert a Geoserver SLD to Quantum QML format?

I have a web application which runs on Geoserver. I am migrating my application to desktop and am struck at applying the same color schemes and symbology. I am not able to find a way to convert SLDs ...
0
votes
1answer
376 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 ...
12
votes
4answers
6k views

OpenLayers: how to style WFS layer with SLD file?

I'm experimenting with a simple web mapping service build on PostGIS/GeoServer/OpenLayers stack on Win 2008 Server. I overlay vector layer from PostGIS using: var Index1v = new ...
5
votes
1answer
187 views

Is there a parellel line function for slds?

I am attempting to make an sld style which symbolizes a line with an offset. I have tried with filters, functions online graphics but can achieve only ugly results. The line consists out of 2 line ...
1
vote
1answer
477 views

How to use rotated text labels in GeoServer based on attribute value?

I have several text layers in GeoServer, which are now shown as point layers with tiny graphic size and with labels (As mentioned in my previous question). All thses labels are, as expected, drawn ...
1
vote
2answers
2k views

Geoserver SLD for OSM valdation errors

I'm trying to build a Geoserver (V2.0.2) style file for OSM data using https://github.com/FlorentDotMe/OSM-Styles-for-GeoServer as a starting point but they produce a number of validation errors Can ...
1
vote
2answers
556 views

Labels not visible at same zoom range

I am using geoserver and sld : I want to make all labels visible at all zoom levels. How can I do that with SLD? <?xml version="1.0" encoding="ISO-8859-1"?> <StyledLayerDescriptor ...
4
votes
2answers
501 views

How do you make map styles NOT appear in a legend?

I am using GeoServer to serve up OSM data. I am making use of the GetLegendGraphic command, but I do not want some of my styles to appear in the legend (for example, the styles that are ONLY for text ...
4
votes
1answer
2k views

Generating SLD dynamically using php in Geosever

I am fairly new to Geoserver and I have a question before I launch into something bigger than me: if i replace the XML code in the SLD style sheet inside geoserver with some PHP which generates the ...
2
votes
2answers
1k views

Text layer styling in GeoServer?

I am wondering what is the best approach to use for text layers in GeoServer. AFAIK, there is no text layer in GeoServer. But in many occassions we need to use text layers and not simply label for ...