Stack Exchange Network

Stack Exchange network consists of 175 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.

0
votes
0answers
16 views

Apply style to layer group?

I've created some layers and styles and am yet unable to apply a style to a layer group. The style I want to apply works fine when applying it to a single layer. The style also works fine if I set ...
0
votes
1answer
32 views

GeoServer polygon transparency (SLD style file)

I am trying to add transparency to a set of polygons (city bounds) within a .sld style file for OSM. Please see below: As you can see the city bounds are overlapping Montana State University. My ...
2
votes
1answer
24 views

Label Rotation in GeoServer SLD based on CRS

I'm styling a series of vector data in Polar Stereographic Projection (specifically EPSG 3031) using GeoServer and SLDs. These maps can be rotated E/W, so if the labels are fixed they appear upside-...
1
vote
2answers
21 views

Problem SLD LineSymbolizer

How can I solve this problem with my SLD code for styles. When I do two scale ranges for a one lineSymbolizer to use another color or another thickness they appear twice in the legend of my viewer ...
0
votes
0answers
11 views

Create an SLD style for contour curves [duplicate]

I have a database with controur curves generated by gdal_contour -f PostgreSQL -a elevation -nln contour_gdal -i 10 srtm/S23W043.hgt "PG:host=volcano-db user=johndoo password=guesswhat dbname=volcano"...
1
vote
0answers
19 views

Styling GeoServer vector tiles using *.sld files (PostGIS, QGIS, Leaflet)

I've been styling vector layers published to GeoServer using *.sld files saved from QGIS as explained in this link. Now, I'd like to work with vector tiles. While I am able to code the JSON within ...
0
votes
0answers
49 views

Not wanted red colour background when applying .sld file style to a raster in GeoServer

I have a raster displaying slopes whose pixel values go from 0 to 85. Like most values are between the range (0 - 30) when publishing in GeoServer I want to apply to it the following sld file to make ...
1
vote
2answers
49 views

GeoServer Style for Float32 GeoTiff returns black image

I have a Float32 GeoTiff image(DEM image) that I published on my GeoServer instance. Image is being displayed correctly in QGIS but GeoServer is always returning black image. I generated style inside ...
2
votes
1answer
49 views

Geoserver SLD stylesheets - what does “se” namespace mean?

I frequently use QGIS to generate SLD stylesheets for geoserver layers. When I do it that way, namespace with value "se" is added to SLD tags. Example: <se:Rule> When I make a stylesheet ...
0
votes
1answer
12 views

Optional parameters in PointSymbolizer href

I am trying to build a dynamic url for a PointSymbolizer: /api/icons?foo=${strUrlEncode("foo")}&bar=${strUrlEncode("bar")} The problem I am running into is that the strUrlEncode will return null ...
2
votes
1answer
46 views

GeoServer SLD applying two styles for one layer

How can I apply two styles (NamedStyle and UserStyle). When executing a query, only the top one is applied. How can I apply both styles? This sld_body: <?xml version="1.0" encoding="UTF-8"?>...
0
votes
0answers
24 views

SLD point style - different styles on two different attributes

I need to style a WMS Geoserver layer using SLD. The layer is a point layer that represents trees. The "basic" style is a green point: <FeatureTypeStyle> <Rule> <Name>rule1&...
0
votes
0answers
41 views

Geoserver 2.15 error when rendering a geotiff with normalize and StretchToMinimumMaximum sld

I have been supplied an SLD file and a raster dataset. The raster data is a processed sentinel-1 scene. Here is the SLD: <?xml version="1.0" encoding="UTF-8"?> <StyledLayerDescriptor ...
0
votes
1answer
54 views

Geoserver SLD - priority option displays multiple labels

I'm using priority option for labels in my geoserver SLD stylesheet because I have multiple overlapping points. <Priority> <ogc:PropertyName>language</ogc:PropertyName> </...
0
votes
1answer
25 views

GeoServer Point Labels not rendering until Scale = 1 : 545K

I have a series of points that I have reading an attribute to display a label. I don't see the labels on my map until Scale = 1 : 1M when SOME of them start to show up. But it's not until I hit Scale =...
0
votes
1answer
30 views

How to create “wave styled” lines in geoserver SLD style?

I nees to stylize lines with a style like the image below: as seen in nautical charts. Already read the "geoserver cookbook" but can't found anything useful.
1
vote
1answer
31 views

GeoServer - prioritize labels with certain attribute value

I have a point layer that I serve as WMS with GeoServer. The points have language and name properties and some points have the same geometry so they overlap. What I want to do is to prioritize ...
0
votes
1answer
44 views

GeoServer labels & vendor options

I have the following label style defined in geoserver SLD stylesheet: <TextSymbolizer> <Label> <ogc:PropertyName>pisanjeimena</ogc:PropertyName> </...
1
vote
1answer
64 views

Mapfish-Print with SLD Style and TTF marks

Is it possible to print ttf's in an SLD using mapfish-print? <GraphicFill> <Graphic> <Opacity>1</Opacity> <Size>25</Size> <Mark> ...
1
vote
1answer
23 views

GeoServer 2.10.1 Center Justify Polygon Label Style File .xml

The Title kind of says it all. Trying to Center Justify a label of a polygon using a sld style file on Geoserver 2.10.1. Here is the code snippet followed by a screenshot of the label now. ...
0
votes
0answers
41 views

Geoserver SLD Style - Wind Barbs

I m trying to dynamically draw wind barbs based on a two bands tiff (geoserver 2.15). My sld is the following: <StyledLayerDescriptor version="1.0.0" xmlns="http://www.opengis.net/sld" xmlns:gml="...
4
votes
1answer
125 views

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
30 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
34 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
38 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
136 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
35 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
2answers
39 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
171 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
55 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
79 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
34 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
44 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
172 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
1answer
23 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
24 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
110 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
846 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
57 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
114 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
69 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
105 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
120 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
113 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
49 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: ...
1
vote
1answer
191 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
155 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 ...
1
vote
1answer
28 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
83 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 ...