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
5
votes
1answer
577 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
98 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
173 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
95 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
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
470 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
251 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
169 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
129 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
271 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
230 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
0answers
109 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
393 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
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
242 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
521 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
133 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
438 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
705 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
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
545 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 ...
3
votes
1answer
507 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:...
3
votes
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
780 views

Pass sld env parameter with openlayers 3

Is there a way to pass sld env parameter with openlayers 3? It works to pass the env parameter with a normal getmap-request. Doesn´t openlayers support the env parameter? I used this example http://...
3
votes
0answers
112 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 ...
0
votes
1answer
124 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 ...
2
votes
1answer
383 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
367 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 ...
7
votes
3answers
3k views

SLD encoding in GeoSever on Ubuntu

I am facing a challenge with the encoding in my SLD file in GeoServer on a Ubuntu server. When I create a SLD file containing the danish letters æ, ø, å in the GeoServer web interface like this filter:...
0
votes
0answers
165 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
330 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
184 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 ...
2
votes
1answer
664 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. ...
1
vote
1answer
149 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 ...
3
votes
2answers
516 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
366 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 ...
4
votes
0answers
727 views

GeoSever PointStacker Renders incorrect position [closed]

I've been trying the GeoServer Rendering Transformations - Point Stacker. According to this docs there's an optional cellSize parameter for setting the "Size of the cells in which to aggregate points, ...
7
votes
1answer
1k 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 ...
1
vote
1answer
634 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
272 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 ...
4
votes
3answers
489 views

Removing Trailing Zeros in Geoserver SLD

I have maps from a PostGIS datastore in Geoserver. The map is styled using SLD created dynamically from my web apps. The problem is that sometimes, the map has float-type attribute data. The label ...
3
votes
1answer
992 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? ...
4
votes
3answers
1k views

Heatmaps: right terms (isopleth vs choropleth, etc) and how to implement a value-based one that looks good? [closed]

NOTE: My original question was about interpolation methods, but I've found that I was actually asking the wrong question. Interpolation methods with Heatmaps and IDW are the least of my problems right ...
1
vote
2answers
485 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 3 4 5 6 7 12