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
27
votes
5answers
54k 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 ...
11
votes
8answers
16k views

SLD Editor with GUI? [closed]

I am setting up a GeoServer instance to serve up a few different PostGIS databases. I have GeoServer up and running however, it takes me forever to enter the SLD into GeoServer by hand. Is there a ...
1
vote
1answer
76 views

geoserver CSS-Styling call WPS function

I've a custom WPS function gs:GetStyleSize, that I used to call from SLD like the following: <FeatureTypeStyle> <Rule> <PointSymbolizer> <Graphic> ...
1
vote
1answer
450 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 ...
1
vote
1answer
175 views

Styling each feature of a layer individually

I’ve a PostGIS table which is published as a Geoserver layer. Every feature in the table has some attributes that should style that feature (e.g color, size, opacity, external graphic url, ... etc). ...
4
votes
1answer
3k views

SLD: OGC Filter set, but symbolizer expected

I have a problem with one of my SLD files and do not know what is causing the problem. The error message is pretty clear: line 18: cvc-complex-type.2.4.a: Invalid content was found starting with ...
1
vote
1answer
127 views

Geoserver: Call custom OWS function from inside SLD

I've a PostGIS table published as a layer, I need to style this layer using SLD. I need to call a custom OWS function (which I wrote) from inside the SLD. It should look something like: <?xml ...
4
votes
1answer
3k views

Generating SLD dynamically using PHP in GeoSever

I am fairly new to GeoSever 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 GeoSever with some PHP which generates the SLD ...
2
votes
1answer
269 views

Working with Geoserver ttf marks?

I am trying to add multiple symbols to my SLD using the bulk ttf marks. However it does not work, it always returns a blank mapview. This is part of my code and lets say I would like to add a little ...
7
votes
1answer
936 views

Migrating 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 ....
1
vote
1answer
449 views

Geoserver Dynamic Colormap using CQL won't validate

I'm trying to create a dynamic heatmap using GeoServer 2.8.3, but when it comes to validating the colormap-part of my SLD i keep getting the same error: line 66: cvc-datatype-valid.1.2.1: '${env('...
1
vote
1answer
31 views

Setting color based in quotient and remainder of data with Geoserver WMS SLD?

I need to style a raster WMS layer based on a math operation over the raster data. In this case I need to set for example one output channel as a linear ramp from the quotient of the raster data by a ...
1
vote
0answers
57 views

How to successfully call CQL in YSLD?

I am trying to create a web map using GeoServer, and doing styling via YSLD. According to YSLD documentation, I should be able to include CQL in order to do filtering. For a test, I am using ...
1
vote
1answer
215 views

GeoServer GetLegendGraphic without x-mark

I'm using the GeoServer WMS to display some raster data with a custom color ramp. When I request a legend using GetLegendGraphic, I get a legend entry with a big red X in it: Is there any way I can ...
0
votes
1answer
2k 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 ...
3
votes
2answers
4k views

OpenLayers 3 WMS Styling Using SLD_BODY and POST request

I'm using OpenLayers 3 and GeoServer to create a spatial web application in which I want to enable users to choose a colour ramp (using Colorbrewer) and a number of breaks for styling an attribute in ...
1
vote
1answer
35 views

How can I see which layers my style is assigned to in Geoserver?

How can I easily tell which layers in Geoserver (2.3.5 at the moment) are assigned a particular style? For instance, I have a style called "buildings"... How can I tell which layers have a "Default ...
1
vote
1answer
374 views

Apply different styles using GS pointstacker's “count” variable

In an effort to give the Geoserver’s pointstacker method more life, I only applied it to scales greater than 1: 34085, so that on the lower scales it is possible to use “getfeature” function in the ...
2
votes
1answer
333 views

Draw arrow in direction of line on midpoint in Geoserver SLD

Similar to this question: How do I draw the arrow on the line using SLD of Geoserver? The answer there works, but I need to place the arrow on the midpoint of the line. Alternatively, it could be ...
1
vote
1answer
153 views

How to hide label when“count” is equal to 1 in pointstacker?

Is there a way to hide labels when the "count" value is 1 (one), using pointstacker? "count" = <ogc:PropertyName>count</ogc:PropertyName> SLD Code: <?xml version="1.0" encoding="utf-...
1
vote
1answer
122 views

Geoserver SLD string functions for GetFeatureInfo requests

I have several Geoserver WMS layers styled with SLD. I also run GetFeatureInfo requests against those layers. My understanding is that Geoserver checks the layer's SLD rules even for GetFeatureInfo ...
1
vote
1answer
637 views

How to request an sld style from geoserver by name

I know that I can get the styles for a layer with a getstyles request, for example: http://geoserver.myserver.com/geoserver/wms?request=GetStyles&layers=agdd_50f&service=wms&version=1.1.1 ...
1
vote
0answers
222 views

Imagemosaic no-data pixels problem transparency [closed]

I'm trying to display imagemosaic where image are irregular and near each other. Imagemosaic are displayed with a SLD Images overlap and no transparency is applied When publish imagemosaic, I set ...
5
votes
1answer
444 views

Dynamic label in SLD Style

I have a dynamic style in Geoserver, like below: <sld:ColorMap> <sld:ColorMapEntry color="#2c7bb6" quantity="${env('low',0)}" label="${env('low',0)}"/> <sld:...
1
vote
0answers
95 views

Styled Layer Descriptor importing problem

I published a shapefile with GeoServer and changed that shapefile style using uDIG via WFS and then SLD file exported to some other place. My problem is while I'm trying to upload that SLD file in ...
0
votes
1answer
145 views

GeoServer make layer style to show grid lines?

Is possible to create a GeoServer layer style so that gridlines (black lines in the image) of the gridset would be visible? Update1: trying to achieve following view (red lines represent black ...
1
vote
1answer
79 views

GeoServer polygon-grayscale-filter

Have a colorful wms-layer and a polygon. Want to create layer-group for a wms-service. Under the polygon wms-layer should be gray-scaled. Did some tests with blending (VendorOption) But all I got was ...
0
votes
0answers
22 views

Removing multiple occurence of names of attributes while zooming in

I was writing an SLD so that it works with MapServer. The problem I encountered is that there are multiple occurrences of names of attributes while zooming in. Is there a way to correct this? Below ...
1
vote
1answer
375 views

SLD: Categorize function doesn't work with <TextSymbolizer> tag

I'm working in Java with the GeoTools library in sld style format. I encountered a problem that I can not solve for 3 days already. My task is to render font-size of the labels according to the ...
2
votes
1answer
1k 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: <se:...
1
vote
0answers
193 views

Geoserver sld pass long env parameter

I have a geotiff file served with geoserver. The geotiff is styled with the following sld, which includes a spatial filter. I am sending a polygon geometry as an env parameter, which results in ...
3
votes
1answer
168 views

Using OS Layer styles in SLD format in QGIS 1.8

I've added OS Landform Parorama information in to QGIS 1.8, i've like to use the OS Layer Styles that are freely downloadable (http://www.ordnancesurvey.co.uk/business-and-government/help-and-support/...
2
votes
1answer
99 views

SLD file with .png's to style points on a Geoserver OpenLayers map

The .png's are stored here: C:\Program Files (x86)\GeoServer 2.12.1\data_dir\styles. I have seen many different ways to incorporate a .png into Geoserver and none have worked for me. I have no idea ...
1
vote
0answers
215 views

How to displaying u and v components of wind data from a grib file as geoserver coverage?

I have generated a coverage view from a grib file (u,v components), but I can't style the result of both components. Is there any way to style both wind components (u and v)? My style is the next ...
1
vote
1answer
207 views

Rendering sld style(buffer) SEVERE null java.lang.NegativeArraySizeException

Can somebody help me with this error, it throws it when rendering an object and styling it with use of a buffer (sld style, wkt string). So I suppose that some problem is with buffering but was unable ...
11
votes
1answer
4k views

How to transfer styles from QGIS to ArcGIS?

We have a QGIS project that has symbols for a lot of different lines. Data comes from a geodatabase that is accessible to both QGIS and ArcGIS. We now want to use the symbology of the QGIS project to ...
1
vote
0answers
97 views

Geonode or Geoserver generates a random sld file for geojson layer during upload, how do I change this

When I upload a new geojson layer through geonode web interface a random sld file is generated and it becomes the default style for the new layer. I would like to remove this random behavior and ...
5
votes
2answers
333 views

SLD - break in hatch

When I use rotated horline or vertline like @Ian Turton suggested in his answer to question Rendering sld style(buffer) SEVERE null java.lang.NegativeArraySizeException, then I get breaks in the hatch,...
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"?> <...
5
votes
1answer
2k views

Using Conditional Statement in SLD GeoServer

Is there any way to use the conditional statement in SLD? somehow using if_then_else like this Pseudocode: if (10 =< variable =< 100) { then Multiply variable by 2 } else { then ...
1
vote
0answers
39 views

feature with multiple id used for style

I have features with multiple themeID, for example, themeID=49 and themeID=53, and when I load them into qgis it shows attribute themeID=(2:49,53). The problem is that I use themeID in sld to choose ...
1
vote
1answer
220 views

GeoServer GWC Direct Integration SLD_BODY Null Pointer

I'm running up against an issue getting a NullPointerException when I enable GeoServer GWC WMS Direct Integration then request a layer using the SLD_BODY request parameter (e.g. without a LAYERS param)...
5
votes
2answers
428 views

Geoserver Dynamic Data Interpolation

I'm hoping to get some feedback on styling strategies in Geoserver WMS when dealing with dynamic (e.g. not stored with the layer) data and layers that have a large number of features. We've tried a ...
1
vote
0answers
112 views

One specific label doesnt show

I use geoserver and OL3 to display one layer. I have configured my sld in order to show labels after a specific zoom level. It works quite well but there is one specific polygon that doesn't show the ...
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
376 views

Filtering Label in SLD based on Elevation

How can I filter the label in SLD, I want to have a label for all the contour-lines where the elevation is between 200-400. I tried with this SLD, but it doesn't apply anything. <Rule> <...
1
vote
2answers
663 views

How do I update the sld of layer dynamically

I am using Geoserver 2.1.3 and Openlayers2.3. I have set the default sld for each layer in geoserver which it take by default on map startup, but when I update the sld using code map.layers[3]....
1
vote
1answer
970 views

Show custom string as label in SLD Geoserver

How is possible to add a custom string to the label of shape in SLD? without any predefined ogc:PropertyName means I want to add a constant string (in my case " BS") to the field "Area", example: "...
4
votes
1answer
427 views

How to set style for a Wind - point layer on GeoServer

I am serving a Wind as a point layer on GeoServer. In each point I have data: wind speed [m/s] and wind direction [degrees] Currently I am using default style, but I would like to be able to change ...
6
votes
1answer
1k views

How to create SLD with inline features and style and add to WMS using GeoTools?

I am trying to create labels with arbitrary values on a WMS map using GeoTools (9.4). I have created a feature type, a feature (in a data store), and a user layer. With that I generated an SLD ...