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

1
vote
1answer
14 views

Geoserver SLD line ends labeling

I am having a hard time putting labels on both ends of a line Here is SLD that I have so far. It puts a label on one side only but I need it on both ends of a line. <?xml version="1.0" ...
0
votes
0answers
10 views

SLD one layer with several feature types

I wrote an SLD for a layer that contains two feature types: us-net-sw:SewerPipeand us-net-common:Appurtenance. My WMS - implemented with deegree - only renders us-net-sw:SewerPipe. I don't know if my ...
1
vote
0answers
17 views

How do I fix my SLD tile heat map when it comes up as dots?

I am currently working on an SLD heat map on GeoServer that uses tiles.There is a point in each tile with the data. From far away, the heat map looks normal. But up close it just becomes little ...
2
votes
1answer
41 views

Draw line with lon, lat, distance and azimuth

I have table in PostGIS with lon, lat, distance and azimuth columns. I want to make Geoserver draw a line through first point with given length and direction. I can turn lon and lat to geometry in ...
0
votes
1answer
23 views

Geoserver - SLD style with aliases

I'm new at Geoserver. I've data in postgis tables and using QGIS OpenGeo plugin to publish data to Geoserver. Postgis tables --> QGIS (Opengeo) --> Geoserver I would like to give a different name ...
0
votes
0answers
19 views

Where can I find all SLD vendoroptions 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 vendoroptions ...
1
vote
1answer
26 views

Problem with NotEqualTo filters in SLD and CSS

I am having a bit of a problem with using a '<>' attribute filter in CSS for GeoServer. I have parred my CSS down to the absolute minimum for a buildings layer as follows: [aeroway <> ...
1
vote
0answers
24 views

Displaying multiple features from a geoserver layer with time and style in a KML

I have 4 datasets organized in a PostGIS database each of the same geometry and location except they are at different times. They each have a corresponding datetime field. I can load these into a ...
1
vote
1answer
40 views

Encoding SLD files

I am creating a SLD file and uploading it though the REST API using C#. This SLD file contains some danish characters, but the end result turns out bad. For a test I save the xml file to disk before ...
0
votes
0answers
36 views

Translate sld:name and ogc:property name into geoserver css

Given is following SLD rule: <sld:Rule> <sld:Name>mytrack#</sld:Name> <ogc:Filter> <ogc:PropertyIsEqualTo> ...
1
vote
0answers
60 views

Exporting QGIS styles to SLD for GeoServer?

I´m starting to dive into sld creation for Geoserver 2.7.1 Therefore I´ve also looked at Qgis 2.8.2 as it can export styles to SLD. Where I´m clueless is the big amount of used ...
1
vote
1answer
21 views

SLD styling rule for first and last geometry feature in PostGIS table

Writing a SLD file to style a Points layer which I publish as WMS with GeoServer, is it possible to specify a rule that is only applied to the first and last features in the underlying PostGIS table? ...
0
votes
0answers
31 views

Labels not displaying correctly in the centroid of the polygon in GeoServer SLD

When creating labels using centroids of a polygon layer, I'm facing the problem that some of them are missing. Eg: Ok, I can make it reappear by using "maxDisplacement" vendor option, but, using ...
0
votes
0answers
30 views

How does getLegendGraphic, from GeoServer, handle attribute-based styles?

Suppose I have a layer with a color attribute. Now, I write an SLD with a fill color like this: <sld:PolygonSymbolizer> <sld:Fill> <sld:CssParameter name="fill"> ...
0
votes
0answers
18 views

is it possible to make a continuous line using SVG in SLD? [duplicate]

I am trying to make a line with thinner one side outline using SLD in GeoServer (like this: ). Since GeoServer is not support perpendicularOffset element yet, i cannot move the thin line to the edge ...
1
vote
0answers
40 views

How to make symbolizers use attribute values in OpenLayers.Layer.WMS?

I know it works like a charm for vector layers. But considering that we can make the symbolizers use attribute values in the SLD, I think OpenLayers should support it. But apparently it doesn't. In ...
1
vote
0answers
30 views

assign sld to Openlayers 3 TileWMS [closed]

Based on this: Apply an SLD saved on Geoserver to OpenLayers 3 I try to set a SLD in the params of a TileWMS. The SLD is saved on Geoserver, but everything i tried failed. The strange thing about it ...
0
votes
0answers
15 views

How to Crop Raster Layer and Polygon Layer in sld?

I have 2 layer. temperature(Point Layer), coastLine(polygon). I can display the raster layer using gs:BarnesSurface with temperature layer. I would like to express to fit the polygon Layer. (I would ...
0
votes
0answers
31 views

Specify drawing / rendering order in CSS style for GeoServer

I am using GeoServer's CSS extension to style a Points layer which I publish as WMS. My style kind of looks like this: #Points.1 { mark: url(marker_start.png); mark-mime: "image/png"; } /* ...
0
votes
0answers
27 views

Font family property does not work in the SLD_BODY of OpenLayers Layer WMS

The font family property does not seems to work in WMS layer, from OpenLayers. I have checked the SLD Body and everything seems fine. I have a CodePen here for some trials STYLE /** * Filter, ...
0
votes
0answers
45 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 ...
1
vote
0answers
34 views

SLD filter questions using the other two conditions

I would like to specify the color and size in accordance with the speed and scale. This is a step of respectively 10. <Rule> <Name>rotate_ps1-1</Name> ...
0
votes
1answer
17 views

SLD filter (PropertyIsEqualTo)

Is an SLD filter like this valid? <ogc:Filter> <ogc:PropertyIsEqualTo> <ogc:PropertyName>aaaaaa</ogc:PropertyName> ...
0
votes
0answers
23 views

Reference existing style in external SLD for GeoServer?

I am currently styling a GeoServer WMS layer with an external SLD which defines a UserStyle. This user style uses a rendering transformation to perform filtering upon the layer prior to rasterization. ...
1
vote
1answer
64 views

Geoserver WMS Filtering: Clipping geometry against a polygon

My data set is a series of multilinestrings representing roads. During a WMS GetMap request, I want to specify a polygon and display only the portions of those roads that fall within the polygon. I am ...
1
vote
1answer
22 views

Cannot display images which are locally stored with SLD style

I'm trying to load some pictures into my map. They are supposed to be images which are in a local folder of my pc. This is my SLD file: <StyledLayerDescriptor xmlns="http://www.opengis.net/sld" ...
1
vote
1answer
26 views

Is age based SLD styling possible in GeoServer?

I have a set of features in a PostGIS table, where each feature has an attribute describing when the feature was created. I would like to serve the features as a WMS layer and I would like to style ...
0
votes
1answer
29 views

GeoServer 2.7.0 WMS Scale Issue

So while using GeoServer 2.2 I did not have an issue with disappearing polygons in my display, now after upgrading to 2.7 my WMS now has scale dependent display of polygons, the data is there but not ...
0
votes
0answers
21 views

Cannot display labels properly with SLD style

I'm using sld to visualize partner name on my chart. The point is that I can't ever visualize all the names at once! This is my code: <?xml version="1.0" ...
0
votes
2answers
41 views

Geoserver efficiency in serving images

I am a little bit stack here. I want to serve a background tif using geoserver and I don't know which is the best way in terms of efficiency. My raster is 1-band GTiff UInt16 with height/terrain ...
2
votes
2answers
144 views

Use SLD to conditionally display points or polygons based on zoom level?

This is not a duplicate of: how to display polygons as points until certain zoom level? I want to do this with Geoserver v2.5.5 if possible (not openlayers). Basically - I have a layer of polygons, ...
2
votes
1answer
52 views

How to create graphic margin around labels in geoserver using sld?

I have a little problem using VendorOption - graphic-margin around labels of roads. In some cases they're drawn and somewhere they're not. You can see it on this picture. In the square its drawn ...
0
votes
0answers
29 views

Can <PropertyIsBetween> be replaced by a “AND” and two conditions in an SLD Body?

I am working on a GIS API that uses OpenLayers. I have a method that autimatically generates an SLD Body given the right properties. For this filter "azimuth > 50 AND azimuth < 100", I obtain ...
1
vote
0answers
32 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
57 views

GeoServer - Single Image Request - Graphic Label Issues

I posted this on the OSGEO GeoServer Mailing List but received no love, so I'll try here. I have GS 2.6.0. connected to a PostgreSQL 9.2 DB (PostGIS 2.1). I have an SLD where I am trying use graphic ...
1
vote
0answers
68 views

GeoServer: Get styles from PostgreSQL/PostGIS table

We're running GeoServer with all layers coming from a PostGIS data source. Most people work directly on the PostGIS database, but we have one person sitting 10.000km away, and for him, connecting to ...
1
vote
0answers
19 views

Query about How to display arrow on road in two ways if road is twoway

I am a beginner with GeoServer, i built a code for road mapping and it work but now i want to display arrow on road according to road direction in both way if road is bidirectional,then arrow should ...
3
votes
3answers
108 views

Geoserver : add extra style (SLD) with Curl

In my geoserver I have a layer with a default style (SLD) and i want to add another style to this layer with Curl. I tried command below with <style></style> instead of ...
0
votes
0answers
9 views

Place labels in the center of the geometry, not visible part of the geometry, using SLD [duplicate]

I'm trying to create labels for a index map, like this: The labels need to be in the center of each polygon, and should appear clipped when are in the border of the window. But they are placed in ...
2
votes
1answer
68 views

SLD based on two attribute values

The map below is produced in ArcGIS software using the multiple attribute visualization tool (a map based on two attributes the color represents different zones based on the zone attribute value and ...
0
votes
0answers
97 views

passing sld as a variable in parameter in ol3

I have a wms layer and I want to pass the sld variable in a parameter. I refer to Styling WMS layers in OL3 as well but cannot solve. The fiddle is http://jsfiddle.net/shumanbaral/x6qwyuvk/1/. ...
0
votes
0answers
97 views

GeoServer Style referencing SQL Server data store

I have a SQL server (2012) based data store in GeoServer (version 2.6) . For better readability I created a spatial layer with a whitespace in a column (attribute) name. Trying to use a style with ...
0
votes
1answer
100 views

the requested Style can not be used

I have added a new SLD style for my nyc_roads layer but no map is displayed with the new style. I get the error "The requested Style can not be used with this layer. The style specifies an attribute ...
1
vote
2answers
113 views

Is it possible to use simple Math in an SLD file on Geoserver?

Is it possible to use simple Math in an SLD file on Geoserver? Suppose I want to read a text size property from a database and multiply its value, how can I do this? <sld:TextSymbolizer> ...
0
votes
0answers
53 views

PNG external graphic symbol does not look smooth in Geoserver/Openlayers?

I have a problem when i'm styling point using external graphic from .png image. I use 32 bit depth .png created in Photoshop, but when it display in openlayers or geoexplorer the edge of the image ...
0
votes
0answers
57 views

Geotools/Geoserver Modifiy interpolate function with dynamic color fill

Here I am again with a different approach to my problem. I use the interpolate function in geoserver to get a choropleth from my data. The problem is that I have to hardcode the color for each value ...
0
votes
0answers
34 views

Error while editing SLD in geoexplorer

I am trying to create map with my own style with the help of geoserver and geoexplorer,but there is an error message while i am editing the style with geoexplorer, message is "There was an error ...
0
votes
0answers
108 views

how apply an SLD to vector layer in geoTools java

I have been using geoTools 11.2 in Java 1.8 to display a vector layer with a desired style of it in worldwind 2.0. I have read features and styles and created objects. I have my own defined vector ...
0
votes
0answers
85 views

How to select main cities in a country from planet OSM data

I am trying to create a map with my own style with the help of geoserver and planet OSM data,but trying to give style to the polygon at different zoom level ,need to highlight main in cities in ...
1
vote
1answer
403 views

Styling WMS layers in OL3

I have managed to get my WMS layers working in OL3. Now I want to style them, as they are all set as blue on the server side and I can't change that. I know the common answer seems to be WMS is an ...