Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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
1
vote
1answer
186 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). ...
1
vote
1answer
136 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 ...
0
votes
0answers
335 views

Error: The requested Style can not be used with this layer

I'm trying to calculate the area of a polygon using the code from this page and I'm getting the following error The requested Style can not be used with this layer. The style specifies an ...
2
votes
1answer
311 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 ...
1
vote
1answer
32 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
59 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
224 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 ...
1
vote
1answer
36 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 ...
2
votes
1answer
359 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
399 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 ...
1
vote
1answer
168 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
130 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
743 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
242 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
501 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:...
0
votes
1answer
152 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
80 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 ...
1
vote
1answer
408 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 ...
1
vote
0answers
216 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 ...
2
votes
1answer
109 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
234 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 ...
0
votes
1answer
66 views

Transparency in stacked imagemosaics coverages

I'm using geoserver to stack several raster images that have different ELEVATION parameter (each ELEVATION "number" is a different layer so to speak). This raster images are 16-bit one channel ...
1
vote
0answers
100 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
350 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,...
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
40 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
214 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 ...
1
vote
1answer
398 views

Classified contour-line visualization in SLD Geoserver

I have a problem with the Styling for the contour-lines. here is how I want to style them: 4 different classes with different display zoom MaxScaleDenominator. The interval is a variable (not fixed) ...
1
vote
0answers
123 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 ...
0
votes
1answer
233 views

Point Stacker in combination with other filter

I'm using PointStacker to aggregate several point features that are too close in certain views and produce a more readable map. I also have a filter to show a different color symbol according to the ...
5
votes
2answers
447 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
1answer
401 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> <...
0
votes
0answers
23 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
1k 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
481 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 ...
1
vote
1answer
1k views

How to add a label based on multiple fields and brackets in GeoServer SLD [duplicate]

Is it possible to create a label which is comprised of multiple fields, in GeoServer using SLD? For example, on the Points page of the SLD Cookbook, the point with default label section shows how to ...
0
votes
1answer
109 views

VendorOption parameters (graphic-margin,…) based on attribute

I want to add margins around polygon graphic fills based on an attribute but it doesn't seem to work. Maybe I'm doing something wrong or maybe it's not possible at all. The same goes for other ...
3
votes
0answers
111 views

Why filtering in SLD file doesn't work when applied to shapefiles? [closed]

I have downloaded shapefiles from OpenStreetMap and I want to give styling using SLD files so that the map looks like OpenStreetMap. The GIS tool I use is MapServer. I got some SLDs from the ...
3
votes
1answer
467 views

Styling polygon dash-dot borders in GeoServer using SLD

I want to draw polygon borders using a pattern of dashes and other symbols like triangles or circles but most polygons share borders so I get an undesired result. Using this SLD code: <se:...
2
votes
1answer
342 views

Geoserver &transparent=true equivalent with SLD?

I have some polygons (country borders) and using the query parameter "transparent=true" in my request, I can see what is behind the layer, where no border is. That is great! On the other hand, I have ...
0
votes
0answers
30 views

Obtaining SLD styles that works with a given OpenStreetMap shape files? [duplicate]

I have downloaded shapefiles from open street map. I want to apply different stylings to a single vector file(i.e different colours to highways, street roads, pathways etc). Is there any way to obtain ...
0
votes
2answers
325 views

Geoserver GeoTiff Styling

I am trying to style a DEM I created with QGIS. I have created the DEM as a GeoTiff and can successfully display the layer with Openlayers with the standard raster style in GeoServer. However, when ...
0
votes
0answers
152 views

Rotate OnlineResource in SLD for GeoServer

How can I rotate an OnlineResource (Raster image fill that can't be auto-generated by QGIS)? I tried: this answer and also just to write a "Rotate" tag everywhere, it didn't do the job. Edit: I'm ...
2
votes
1answer
294 views

Use Geoserver's Barnes Surface SLD Transformation with an Geomesa

I use Geoserver to post regular temperature points layer from an Accumulo/Geomesa dataset. I have to publish interpolated "temperature map" that's why I use SLD Transformation with an vec:...
0
votes
0answers
168 views

Geoserver MultiGeometry in KML

Is there a way to get line and polygon data without the MultiGeometry Wrapper from a geoserver layer when accessing via the KML Reflector method? It always generates additional Point data for Lines ...
1
vote
2answers
1k views

french accents changed to junk characters when saving the SLD in geoserver 2.11.2 [closed]

I have a shapefile with french accent and needs to be published in geoserver 2.11.2. I have my geoserver in tomcat 8.5 and am using Ubuntu 14.04. The french accents are showing fine in get feature ...
2
votes
1answer
580 views

Split label style in GeoServer CSS or SLD

I would like to split the style of my labels, which consist of 2 attributes. I already managed to separate the lines, but I need to style them differently as well, as the second line should be bold. ...
3
votes
2answers
455 views

Geoserver couldn't read SLD - Raster Symbolizer as expected

I am trying to style a land cover map scheme II, on Geoserver. The sld has no errors. However, the raster value/color on the image couldn't match with the raster color/image/label on the sld. Below is ...
1
vote
1answer
139 views

Apply SLD to raster in postgis query

Is there a way to color a postgis raster using an SLD file? For example, I want a node server to pull an SLD file from a geoserver instance. Then I want the node server to run a postgis query to ...
1
vote
1answer
331 views

qml style differs from the same sld style saved in QGIS

I am trying to save style that I made in QGIS via layer properties in *.SLD format, but when opening my layer and import this saved *.SLD style - it differs from the initial one! As you can see: my ...