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

0
votes
1answer
53 views

Apply an sld to a vector layer in OpenLayers

I'm trying to apply an sld style to a vector layer in Openlayers. I already took a look on google and here and I got a lot of informations, but still I don't manage to achieve the result I'm looking ...
2
votes
0answers
11 views

Geoserver SLD scale based view for multiple geometry styles

I have a FeatureStyle that draws line and adda an arraow to end point of the line. And I want to see this line and arrow by scale. So I specified a MaxScaleDenominator property. Now line is not ...
1
vote
0answers
20 views

Geoserver SLD external graphic path

<Rule> <PointSymbolizer> <Graphic> <ExternalGraphic> <OnlineResource xlink:type="simple" xlink:href="glass.png" /> ...
0
votes
1answer
147 views

select (click) labels in openlayers

I have the following style for an OpenLayers vector layer. Color and Name come from Geoserver/PostGIS. I red that setting labelSelect to true, user can also click the label, not only the point and ...
1
vote
2answers
132 views

Geoserver SLD text symbology

I have problem with the Geoserver. I have a layer (called "cities") which contains points with attributes. (ID, Name, Layer, etc....) I'd like to write out all the names (at now it doesn't matter if ...
0
votes
0answers
18 views

GeoServer SLD: fill a polygon with color sampled from gradient

I have a "geometry" and a "rating" column. I want to symbolize the geometries in an SLD (PolygonSymbolizer) but fill it with a color value that is interpolated between BLUE-PURPLE-RED based on the ...
7
votes
1answer
502 views

Geoserver with SQL server consuming all my CPU

This question is long please bear me and my problem. SQL Server Query profiler The Sample Query from profiler that geoserver is running that corresponds to SLD I am using and not the SQL SERVER view I ...
0
votes
1answer
39 views

Apply an SLD saved on Geoserver to OpenLayers 3

I am a complete beginner in javascript, xml and code in general (so if there's anyway for me make my question more clear please tell me). I have loaded a wms onto my openlayers 3 map. The relevant ...
1
vote
1answer
157 views

Geoserver OSM data Imported via osm2pgsql - most efficient tables to use to style roads

The Osm2pgsql importer for OSM data to Postgres results in two tables for ways, one called planet_osm_roads and a second one called planet_osm_lines The Osm2pgsql documentation states that the ...
1
vote
1answer
26 views

Using WMS external SLD with OpenLayers application

I want to use external SLD file in my OpenLayers application. So I created WMS layer like this: var ly= new OpenLayers.Layer.WMS("mylyer", serverurl, { layers: ...
2
votes
0answers
20 views

SLD question regarding filter

I had a problem with my SLD today, I actually solved my issue but i'm very curious if there's another way around it, Mainly because my method is a hassle and may not work in other situations. I've ...
0
votes
1answer
20 views

Is there a way to remove shadows of piechart of GeoServer

Is there a way to remove shadows of piechart of GeoServer (Eastwood library)? GeoServer always makes shadow in piechart, while the original Google piechart API does not have shadow. Note: The ...
1
vote
0answers
15 views

GeoServer SLD PropertyIsEqualTo problem

I'm having a, frankly, super annoying problem with SLD and the ogc:PropertyIsEqualTo/ogc:PropertyIsEqualTo filters. I have 3 different GeoServer instances on 3 different machines. All instances are ...
2
votes
0answers
42 views

How to put a piechart <Graphic> in <TextSymbolizer> of a Geoserver style?

I reckon that GeoServer layer label style has excellent feature of TextSymbolizer where text label can be positioned relatively on centroid of VISIBLE PART of polygon, as oppose to a geographically ...
1
vote
1answer
44 views

Can I use relative path for image in SLD 1.1.0

Can I use relative path in the SLD 1.1.0? When validating it in geoserver, it said Parsing failed for ExternalGraphic: java.lang.IllegalArgumentException: URI is not absolute SLD: ...
1
vote
1answer
44 views

Vendor parameter <VendorOption name=“labelObstacle”>true</VendorOption> not working?

I am trying to avoid drawing overlapping labels with vendor parameters. I tried below option in different versions of Geoservers (2.2.1 to 2.5.2), its not working. ...
1
vote
1answer
27 views

GeoServer Label Placement - Place Always Inside Polygon

Is there a way within the SLD to ensure that the label always appears within the polygon? For example, in odd shaped polygons (with a hole, or a horseshoe shape) my labels are sitting outside. I'd ...
1
vote
1answer
704 views

Converting avl to sld or qml

Is there a simple way to convert a avl file into a sld or qml? Deegree does not work an my laptop (java problems) Or is there a way to open the original avl file in qgis? Thanks
0
votes
1answer
113 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 ...
0
votes
2answers
315 views

SLD parsing fail on GeoServer

I created a custom style on QGis and saved as SLD file. When i added to GeoServer, after validation it, i got an errors about parsing. Parsing failed for Filter: java.lang.RuntimeException: Unable ...
3
votes
1answer
143 views

How do I draw the arrow on the line using SLD of Geoserver?

I have a line layer in geoserver as in the 1st image. How can I draw an arrow on the line like in the 2nd image? The line.rar includes a shapefile and a sld file. Please help to edit an sample for me, ...
1
vote
0answers
24 views

Openayer Style SLD for ship

I am trying to find an sld for a Ship. I am parsing an AIS feed and would like to make the ship different colors based on class of ship and length as well as rotate it based on the COG (course). ...
1
vote
2answers
344 views

Arrow labels not rendered correctly

Geoserver SLD: <sld:LineSymbolizer> <sld:Stroke> <sld:CssParameter name="stroke"> <ogc:PropertyName>geo_color</ogc:PropertyName> ...
0
votes
1answer
48 views

SLD specification for a vertical line on every line turning point

You can define a vertical line in SLD like this: <LineSymbolizer> <Stroke> <GraphicStroke> <Graphic> <Mark> ...
0
votes
0answers
27 views

Clustering on Geoserver layer appearing out of the map

We are using Geoserver and openlayers to display maps. Geosever layer provides list of sites, since there were many we did a clsutering using Styles. But the problem is when we zoom out completely ...
11
votes
3answers
17k views

Converting ArcGIS layer style to Styled Layer Descriptor (SLD) file?

I am putting together a GIS server using GeoServer and need some help with importing my layer styles from ArcGIS 10 to SLD format. I have one layer in ArcMap properly symbolized and labeled, how ...
3
votes
2answers
79 views

Is there a symbols level option/solution for SLD?

Is it possible to have an sld blend the symbology in the lines together just as QGIS and ArcGIS allow using symbol levels? In QGIS I can use symbol levels on the line layer and have this appearance: ...
0
votes
0answers
30 views

Overview of SLD expressions

Does anyone have an overview of how expressions are supposed to work along with an overview of all available expressions. I have looked at the official references at the website of the OGC and I can ...
0
votes
0answers
20 views

Mapserver and SLD Files

I have a set of data layers that define a map from small to large scales. These layers are available through mapserver and are grouped in the mapfile so:- LAYER GROUP large_scale NAME roads .. ...
1
vote
0answers
46 views

How to load style from postgresql?

Is there any way to load a postgresql style for a vector layer using python? There is a function: loadNamedStyleFromDb (const QString &db, const QString &theURI, QString &qml).Does it ...
2
votes
1answer
63 views

Problem when trying to style negative values in Geoserver via SLD

I have a PostGIS table that holds (numeric) values from -1 to +1. I would like to style these values in Geoserver so I created an SLD file in QGIS which looks like this: ---snip--- <?xml ...
0
votes
1answer
32 views

Using SLD with WMS

How does WMS interpret the SLD it receives? Does it parse the document and immediately draws the layers defined from top to bottom? Or does it rely on the 'layers' and 'style' parameters you can send ...
0
votes
0answers
30 views

What does property FeatureTypeName do in Styled Layer Descriptor (SLD) specification?

I am studying the Styled Layer Descriptor (SLD) specification. I got a general grasp of how I can use it to style a map. I still have one question about the FeatureTypeStyle though. When looking at ...
1
vote
1answer
38 views

Creating dual lines with one line in geoserver

Im trying to figure if it is possible to create a two lines from one line say for instance a road. One to create the out lines as an underlaying color while another line creates a top color but a ...
1
vote
1answer
35 views

SLDs imported from ArcMap do not apply on Geoserver

I've exported shapefiles and SLDs from ArcGIS to deploy them on GeoServer. The client was using field names longer than 10 symbols so they got truncated. The field upon which the symbology is mainly ...
1
vote
0answers
23 views

Openlayers text symbology is not being shown

I have a Vector Layer in a .json file: { "type" : "FeatureCollection", "features": [ { "type": "Feature", "properties": { "Station_Id":107, "NAME":"ARDEBIL(F)","ELEVATION":"1314.3"}, ...
1
vote
0answers
30 views

How to create and export complex symbology? [duplicate]

I've got punctual geometries that I'd like to represent in a desktop and a web application, using complex symbology, like this : My idea is to use a symbology editor to create a SLD file that ...
7
votes
1answer
1k views

Is there a good qml or sld file available for QGIS + Openstreetmap data?

I'm looking for a qml file (or equivalent e.g. sld) to allow me to use QGIS to take Openstreetmap data and produce paper maps. I'm re-asking this question (it was asked once or twice over a couple of ...
2
votes
0answers
101 views

Rotation by attribute in Geoserver SLD style

I have a table with field calculated by function: NEW."rotationAngle" := degrees( ST_Azimuth( ST_StartPoint(NEW.the_geom) ...
2
votes
0answers
21 views

How not to repeat text in linesimbolizer?

I need make a sld style with line and label above. But it's not that simple because I have some additional requirements: Label without repeat Label fitted in line in ideal or put in line center. ...
1
vote
1answer
83 views

Force all labels visible in GeoServer

How can I force all labels to be visible in GeoServer I have tried with both <VendorOption name="conflictResolution">false</VendorOption> and <VendorOption ...
1
vote
2answers
69 views

How do I black out all polygons except one using Geoserver SLD_BODY= parameter in GetMap URL?

I am trying to use the SLD_BODY= parameter to set a style that will black out all polygons except one; the remaining polygon should be transparent. However, the image comes back with all the polygons ...
0
votes
2answers
175 views

sld parser for version 1.1.0 with Openlayers

I am using Openlayers 2.11 and need to style a layer with a sld file version 1.1.0. the error it says is Uncaught Can't find a SLD parser for version 1.1.0. i have also tried it with Openlayers 2.12.
0
votes
2answers
821 views

Issues with datasets when custom SLD loaded into geoserver

I have created my SLD's in QGIS and want to use them in Geoserver. I have imported and validated them without any problems but when I try to view the data using Layer Preview --> OpenLayers-->Go it ...
2
votes
2answers
195 views

OpenLayers.Format.SLD - Ignores 'matchCase'?

I've trying to use OpenLayers to construct an SLD element to include in a WMS layer's parameters. This SLD document can contain a number of filters. This works fine and resultant SLD does work to ...
1
vote
0answers
337 views

WMS Query does not return all records (Geoserver)

This is a tricky one - so bear with me... i'm a Geoserver newbie... Basically, i have two very similar queries that return species records for a given species in a given geograpic area. One query ...
1
vote
1answer
157 views

Label styling applied in Geoserver are not being applied to WMS layer in Openlayers

I am trying to label a layer of line vectors using SLD in Geoserver. It is simple enough, and it's pretty much copied from the SLD cookbook: ...
0
votes
1answer
42 views

Why doesn't SLD validate?

Why doesn't my SLD validate? <?xml version="1.0" encoding="UTF-8"?> <StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" ...
0
votes
0answers
6 views

SLD style descriptor doesn't validate [duplicate]

I am trying to style a geotiff in OpenGeo Boundless...it doesn't validate... http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd" version="1.0.0"> raster_layer PM 2.5 PM 2.5 ...
0
votes
0answers
12 views

How to stop multiple labes showing for a single item [duplicate]

On top of some other styling, I have used GeoExplorer to edit the scale based rendering of labels for the names of fields in an area. It all works fine but when I zoom in of fields that have a large ...