Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

4
votes
1answer
26 views

QGIS: Batch convert of viewer styles from QML to SLD

Until now I was saving styles in QML files. Now I need them in SLD to be used in GeoServer. Is there a way how to perform a batch convert?
0
votes
1answer
13 views

Ordering symbols in GeoServer using SLD with rendering transformations

I have been following this post-Is there a symbols level option/solution for SLD? about stacking symbols but I have been stuck in using <FeatureTypeStyle> with GeoServer rendering ...
0
votes
2answers
17 views

GeoServer SLD subquery in WHERE clause

I have this SQL request select name from osm_places where name in (select capital_city from osm_places where capital_city != '') Is it possible to write such a request in < ogc:Filter> section? ...
0
votes
0answers
22 views

Leaflet WMS layer label disappears on zoom [duplicate]

I am populating a tileWMS layer on my map (also created through Leaflet) through Leaflet from GeoServer which is working fine but the issue I am facing is with visibility of labels. On various zoom ...
1
vote
0answers
26 views

Batch converting .lyr to .qml?

I am looking for ways to make .lyr files usable in QGIS. It appears that they can be converted into an .sld file in ArcMap but according to one of the posts, they only store symbology and do not point ...
0
votes
0answers
20 views

Rounding values of a raster dataset in a GetFeatureInfo response

Is there a way to round decimals of floating values for a GetFeatureInfo request from a raster (geotiff) in Geoserver? I would like to round up values to 2 decimals instead of 15. Is this something I ...
0
votes
1answer
20 views

Cannot Entirely Remove Polygon Boundaries Using SLD in GeoServer

I am trying to create an SLD in GeoServer for a vector grid that will not show boundaries between contiguous polygons that are the same color. It seems that no matter how I style the strokes, I cannot ...
2
votes
1answer
116 views

Problem with GeoServer modifying a style when uploading an SLD via the REST API

I have an SLD called my_data.sld (created in QGIS 3.2.x) with looks like this: <?xml version="1.0" encoding="UTF-8"?> <StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:xlink="...
0
votes
1answer
21 views

Is there a way to ras:Dynamic Color Map ras:Contour together via SLD?

I've bee trying to create a SLD style for a geoserver service. I would like to create a dynamic colormap to describe the scene with the contour of some areas (with a value over a certain value) ...
0
votes
0answers
43 views

sld : How to create a group style file

Suppose i want to group 2 or more style of different layers into one SLD file how can i do it ? A pointer towards the working example or document will do. Or any alternative styling example such as ...
1
vote
0answers
23 views

Generating SLD files from Autodesk's layer

I have Autodesk layer files (with .layer suffix). I'd like to create SLD files based on these layer's information (e.g. the colors). I tried to generate the SLD XML file by using xslt and parsing the ...
1
vote
2answers
23 views

Label Lower Left Corner Of Square Polygon SLD and Geoserver

I would like to label the lower left corner of rectangular shaped polygons in geoserver I have looked the the functions and I am wondering how I would set up variable to perform the calculation for ...
1
vote
1answer
24 views

Geoserver 2.14.0 CSS styling - how to force label rendering similar to VendorOption “partials”

I know that the <VendorOption name="partials">true</VendorOption> SLD directive would fix my issue with labels not rendering in my tiles when I want them to and I would add to my SLD ...
1
vote
1answer
62 views

Creating Contours via SLD using the Barnes Surface interpolation in GeoServer

I am trying to make a map with PostGIS and GeoServer, showing weather data. The data that I have is pointdata from observation stations. The data is vectordata. With an SLD using the Barnes Surface ...
0
votes
0answers
32 views

GeoServer - Use JSON properties in SLD

Is there currently any way to reference a JSON Property of a Postgre DataStore in SLD? After researching and playing with GeoServer, SLD and even the MongoDB plugin all day, the only thing I ...
0
votes
1answer
19 views

Error When Creating SLD

It generates the following error: línea 17: cvc-complex-type.2.4.a: Se ha encontrado contenido no válido a partir del elemento 'PropertyIsEqualTo'. Se esperaba uno de '{"http://www.opengis.net/...
0
votes
1answer
15 views

Querying a Styled Layer Descriptors file for OS MasterMap area fill data

I am attempting to write a software to import OS MasterMaps into our product and am having difficulty getting the area styles to import correctly. How do I get the fill color for a combination of ...
0
votes
1answer
82 views

QGIS does not export heatmap SLD-files

At the moment I am creating a webmap with PostGIS and GeoServer. I want to style the data using SLD-files, because my data keeps updating. I have made SLD-files for Points and Polygons and that ...
2
votes
0answers
334 views

Using .lyr files in QGIS

I'm trying to use a publicly available data set (the Australian National Vegetation Information System) in QGIS, but it has been set up for use in ArcGIS (.lyr file). I tried to convert the file ...
0
votes
2answers
43 views

Geoserver polygon labeling Arabic numbers using SLD

I've used SLD to label polygon features with their parcel Ids. The problem is for Ids include '.' and '-' marks, the ordering of character is messed up. For example 39.1 changes to 139. I've checked ...
3
votes
1answer
98 views

Wrapping WMS across date line using GeoServer?

I am using GeoServer to serve a WMS version of the Natural Earth 1:10m Country shapefile. I have everything working pretty well except that when it wraps around the dateline, there's an extra ...
1
vote
1answer
44 views

Geoserver styling line feature with border in conjunction

I've used SLD to style two type of roads with the border in Geoserver. The question is how can I remove the border of a road when another road or street connects to it. As shown in the image, when ...
0
votes
1answer
60 views

QGIS Server: SLD and SLD_BODY parameters in GetMap request

Does Qgis server support SLD and SLD_BODY parameters in GetMap request? I'm trying to give a valid .sld to qgis server but it returns empty image in response.
0
votes
1answer
59 views

Point averaging alternative to GeoServer WPS heat map transformation

I have a point dataset in which each point has a value for a "rating" field. Points distributions don't follow any pattern and can overlap at identical locations. My requirement is to generate ...
3
votes
2answers
80 views

GeoServer slow rendering of line features with border

I've published some shapefiles including line features using GeoServer and styled them with simple stroke and label. To apply a thin border around the roads, I've used another 'FeatureTypeStyle' ...
1
vote
1answer
30 views

GeoServer 2.10.4 - Vector layer always on top

I have successfully created a new vector layer in my GeoServer 2.10.4. It shall be displayed on top of a basemap and an additional raster layer, but it displays below the raster. I want this order: ...
0
votes
1answer
122 views

Geoserver SLD styling to align labels at the center vertical of roads

I've used SLD to style road features in Geoserver. As roads include multiple segments the 'group' attribute has been used to control label repeat of roads. The problem is some labels can't be placed ...
0
votes
3answers
123 views

Geoserver SLD to hide points when label is not shown

Is it possible to create a PointSymbolizer together with a TextSymbolizer that will hide both the point and label when the label is not shown as a result of conflict-resolution? What I'm trying to ...
0
votes
0answers
56 views

SLD drawing order

I know this is an issue that has been addressed before, but we are having some issues and am hoping for guidance. We have a point layer that has, in at least one instance, two points at the exact ...
0
votes
1answer
18 views

Old Geoserver install (“2.1.?”) will not validate Transformation element in Heatmap SLD XML

I'm stuck with an old, weird version of Geoserver in our production environment (circa 2011, installed in an opengeo-suite directory). It seems the WPS extension is installed. On my http://www.our-...
0
votes
1answer
48 views

How to rotate symbol in each point of LineString?

I have a linestring, and want to draw arrow forward and arrow back in each point except firat and last. Like this I have no problems with first and last point couse i can rotate arrows with ...
1
vote
0answers
44 views

Problems with dynamic symbolizer in Chart Symbolizer extension on GeoServer

I have a layer on GeoServer with a time dimension which shows the number of overnight stays for a certain area in a given year. With the Chart Symbolizer extension, I would like to visualise the ...
1
vote
1answer
92 views

Geoserver Exception with custom SLD file for raster

I have a WMTS provided by Geoserver, based on a GeoTIFF. It works fine with the default style ('raster'). With this default style everything's fine (OpenLayers, QGIS). With the purpose to be able to ...
0
votes
2answers
61 views

Get map legend while using Transformation Functions in SLD style

In my project I have a SLD style which contain Transformation function. The SLD style is looks like this: <PointSymbolizer> <Fill> <CssParameter name="fill"> ...
1
vote
0answers
60 views

GeoServer - labels not working correctly

Currently having a few issues with GeoServer not displaying our labels correctly. The code in question is here: <Fill> <CssParameter name="fill"> <ogc:Literal>#...
0
votes
1answer
36 views

What vector output can I use in GeoServer to convey geometries, style and metadata?

We've been successfully using GeoServer for a few years to serve raster tiles of objects contained in a database. In order to improve the user experience and performance, I'm looking into switching to ...
1
vote
0answers
28 views

Saving Style as SLD in QGIS but after reloading unit changes from map units to pixel?

I have a style I am saving in QGIS (2.18) as an SLD. After reloading the Style onto the layer the ouline width changes to pixels instead of map units. I even checked the .sld in notepad and the uom-...
1
vote
1answer
47 views

Setting SLD rule title using field?

Can I set the title of an SLD rule using a feature's field? I have a very dynamic dataset where the value of a polygon changes after each update, therefore I need to be able to compare using one ...
0
votes
0answers
36 views

Disabling ContrastEnhancement in GeoServer?

I am using Geoserver to upload and display GTiff images in OpenLayers. The images are unsigned 16 bit grayscale at about 300MB size and are processed to to give better performance using the methods ...
1
vote
1answer
233 views

Dynamically change GeoServer SLD style on WMS call using ENV

I need to chage layer style depending on attribute value on wms call. Like this <Fill> <CssParameter name="fill"> <ogc:Function name="Recode"> <!-- Value to ...
2
votes
1answer
69 views

How to make dynamic sld filter?

I have a sld style: <se:FeatureTypeStyle> <se:Rule> <se:Name> 0 - 100 </se:Name> <se:Description> <se:Title> >101 </se:Title> ...
0
votes
1answer
100 views

SLD version=“1.1.0”, GeoServer 2.12.3 and graphic stroke spacing

I am trying to get the spacing or gap between arrows in GeoServer to work. The rendering in QGIS is perfect but in the GeoServer the parameters are not read/taken into account. I tried to get around ...
1
vote
2answers
123 views

How to draw right arrow symbol in SLD for Geoserver?

I have the below part of SLD: <sld:WellKnownName>ttf://Wingdings#0xE0</sld:WellKnownName> <sld:Fill> <sld:CssParameter name="fill">#0000FF</sld:CssParameter> <sld:...
0
votes
1answer
34 views

Why does GeoServer SLD sometimes fail when copy/pasting sample code?

Sometimes I find that GeoServer SLD files fail to validate, even when copying code directly from the SLD Cookbook. For example, I start with the polygon with styled label sample code, paste it into a ...
0
votes
1answer
146 views

Show a gif icon in point GeoServer SLD

How to show a gif image for a point in GeoServer SLD like blinking point? I found here animated wms layer. Please help me. I tried SVG Icon. Its working without animation. My svg code is <svg ...
0
votes
1answer
220 views

How to specify a label “weight” in GeoServer SLD to control label priority?

I'm labelling a cities layer using GeoServer SLD. I need the larger city labels to draw first, then the smaller city labels to draw if there is enough room. There is a pop_band field which I'm using ...
0
votes
0answers
43 views

Extra square brackets in variable substitution - GeoServer SLD

I am trying to create a SLD in GeoServer to change the layer style based on the attribute passed. I am using GoeServer Variable substitution. The following is block of my SLD. <Rule> <Name&...
0
votes
0answers
85 views

Raster Symbolizer of Geoserver does not show SLD symbology as expected

I'm trying to style a raster of land cover map on Geoserver (vers 2.8.3). I'm using function of Raster Symboliser. The sld has no errors and I used type "values" as indicated in the documentation (...
0
votes
1answer
74 views

GeoServer option “followline” results in no labels on a river layer

I'm using GeoServer 2.10.1 with a river layer and I'm trying to add labels which follow the lines. (The river layer is sourced from a PostGreSQL table if that makes a difference.) Using the line with ...
0
votes
1answer
44 views

Hatching on filtered region of raster layer

I've created RasterSymbolizer-based styles (colour ramps )for a bunch of trend maps layers (from NetCDFs) in GeoServer, and I serve them over WMS. I also have matching p-value raster layers, and I'd ...