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
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 ...
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
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
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 ...
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
124 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
642 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
451 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
146 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 ...
1
vote
1answer
376 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
195 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
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
217 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
65 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
98 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,...
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
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 ...
1
vote
1answer
365 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
113 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
215 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
430 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
378 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
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
974 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
431 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
93 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
445 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
317 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
29 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
297 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
142 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
280 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
159 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
544 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
413 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
136 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
316 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 ...
1
vote
1answer
489 views

GeoServer SLD rounding values after division

I am doing normalisation of two fields on GeoServer. <ogc:Div> <ogc:PropertyName>PERSONS</ogc:PropertyName> <ogc:PropertyName>LAND_KM</ogc:PropertyName&...
0
votes
1answer
248 views

French accents in geoserver

I am using geoserver 2.11.2 and tomcat 8.5. I have some french accents in shapefile. The french accents looks fine when viewing the attributes in QGIS. But it appears as special characters when ...
2
votes
1answer
821 views

Geoserver SLD labels dynamic displacement to resolve overlap conflicts?

Is it possible to style labels in such a way that if two labels were to overlap each other, they could move out of each other's way and display next to each other instead of their original position? ...
1
vote
2answers
230 views

What is causing this distortion?

What is causing this strange behaviour in my map? As closer to the poles, the labels are distorted. Local OpenStreetMap data in PostgreSQL Geoserver OpenLayers Projection of data: 4326 Projection of ...
1
vote
0answers
267 views

Provided shape has duplicate consecutive coordinates at: (-87.2576, 90.0, NaN) [closed]

I get the following error when I send POST request to GeoServer. This error occurs only with particular layer. Other layers work fine. <?xml version="1.0"?> <ServiceExceptionReport version="...
0
votes
1answer
63 views

Defining refresh interval of map in GeoServer?

Is it possible to define the map refresh interval on the server-side (GeoServer 2.11)? The issue is the following. I send GetMap requests to GeoServer from Kibana (client-side). Once the response is ...