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
2answers
26 views

SLD endPoint arrow not working

I've found several examples for how to draw a simple arrow (on one line end). Also, I've found few that explain how it should work to put one on the other end of a line. Unfortunately I don't have any ...
8
votes
2answers
9k views

Save the label style as SLD in QGIS?

In QGIS there are 2 options to style labels. Using the style properties. Using the label in the toolbox When I dbl click layer -> styles -> save as SLD , the style of the label isn't saved in case ...
0
votes
1answer
30 views

Missing / wrong Legend of WMS service

i am working with geoserver to publish some wms services. One of them is a temperature overview. With the help of my styling file (SLD) i am coloring up each tile of the map depending on its value. ...
1
vote
1answer
92 views

How to represent an object at 25 differents dates

So basically, I have a map at day D. On this day X objects are represented with a color and full opacity. What I'd like to do is to be able to represent on this map the Y objects present on the map ...
2
votes
1answer
53 views

Adding existing style while publishing a new layer in GeoServer using REST API

I have a function which publishes a layer in GeoServer with the REST API. Now I want to add an existing style in the layer while publishing it. Anyone has any idea where I write the style name or ...
1
vote
3answers
35 views

SLD - styling geometry collections in geoserver

I’m trying to style a geometry collection column (PostGIS) that stores both polygons and points in each record. I already read the geoserver manual on how to style mixed geometry types and I don’t ...
0
votes
2answers
52 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 ...
1
vote
1answer
102 views

Display palette (coloramp) imagery in GeoServer

I have a data set of palette imagery. These are basically RGB imagery that have been converted to 1 band color map imagery using ArcGIS. I am loading the images to GeoServer as GeoTIFFs but nothing ...
0
votes
0answers
20 views

OSM Overlapping Polygon symbolism editing .xml

Looking to show both administrative boundaries of counties as states. There seems to be something that is showing counties and not states when both are showing for a certain zoom level. attached is ...
1
vote
0answers
32 views

Geoserver SLD: How to get CENTROID of result of INTERSECTION?

In my GeoServer SLD I need to place a symbol (particularly a piechart) exactly on Centroid of the result of Intersection of 2 geometry: geom field from my PostGIS table AND environment variable ...
1
vote
1answer
29 views

SLD not valid inside of GeoServer

I created a SLD file and it does not run at all inside of GeoServer. Schematically it looks all there: <?xml version="1.0" encoding="ISO-8859-1"?> <StyledLayerDescriptor version= "1.0.0" ...
0
votes
0answers
41 views

Using BarnesSurface Style in GeoServer?

I want to apply the BarnesSurface style to a layer in the GeoServer. I applied the SLD samples I found in my research, but did not get results. I get the sample “Image-1” from the GeoServer demo page. ...
0
votes
1answer
52 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 ...
0
votes
0answers
21 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 ...
1
vote
2answers
25 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 ...
2
votes
1answer
29 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-...
0
votes
1answer
13 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
0answers
767 views

Geoserver SLD scale based view for multiple geometry styles

I have a FeatureStyle that draws line and adda an arraow to end point of the line. And I want to see this line and arrow by scale. So I specified a MaxScaleDenominator property. Now line is not ...
0
votes
0answers
12 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
264 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 ...
1
vote
1answer
52 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 ...
2
votes
0answers
44 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
303 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 ...
11
votes
4answers
13k views

Converting/using ArcGIS *.style file for/in QGIS (QML or SLD)?

I have downloaded a dataset from a government organisation. it comes with a .style file. I use QGIS 1.8 on windows 7. Is there a way to use the .style file as a qml or sld? I have tried simply ...
0
votes
0answers
55 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 ...
6
votes
3answers
4k views

Force all labels visible in GeoServer

How can I force all labels to be visible in GeoServer I have tried with both <VendorOption name="conflictResolution">false</VendorOption> and <VendorOption name="spaceAround">-1&...
1
vote
2answers
66 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 ...
1
vote
0answers
729 views

how apply an SLD to vector layer in geoTools java

I have been using geoTools 11.2 in Java 1.8 to display a vector layer with a desired style of it in worldwind 2.0. I have read features and styles and created objects. I have my own defined vector ...
0
votes
1answer
211 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 ...
2
votes
1answer
57 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 ...
2
votes
1answer
60 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
1answer
129 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 ...
3
votes
1answer
842 views

SLD filter with embedded strTrim function in Geoserver

Using Geoserver 2.2.2 (GeoTools Version 8.4) on Windows 7, I'm trying to create a SLD that trims the leading and trailing spaces of a string property (using the strTrim function) and compares it to a ...
1
vote
2answers
215 views

Why the indexes for the attributes are not being used when GeoServer asks PostGIS?

I am working on a WMS to publish data with GeoServer (2.11.0). Tables come from PostGIS (PostgreSQL 9.6). I have indexed geometries on the tables and i have also indexed attributes which are being ...
0
votes
1answer
35 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
1k views

Change Title Of Geoserver Legend Decoration

My colorramp legend's title gets set to be the layer's name. I'm wondering if I can override this and set the title explicitly. For example let's say I want to change the colorramp's title from "...
2
votes
1answer
1k views

Label styling applied in Geoserver are not being applied to WMS layer in Openlayers

I am trying to label a layer of line vectors using SLD in Geoserver. It is simple enough, and it's pretty much copied from the SLD cookbook: http://docs.geoserver.org/latest/en/user/styling/sld-...
23
votes
2answers
15k views

Seeking qml or sld file for QGIS + OpenStreetMap data? [closed]

I'm looking for a qml file (or equivalent e.g. sld) to allow me to use QGIS to take OpenStreetMap data and produce paper maps. I'm re-asking this question (it was asked once or twice over a couple of ...
0
votes
0answers
39 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
56 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 ...
7
votes
2answers
11k views

SLD for OpenStreetMap for GeoServer?

I display OpenStreetMap with some SLD styles. This map is not the same OSM. I want that this map is equal OSM map. I use GeoServer 2.3.5 Does anyone display OpenStreetMap through MapServer, ...
2
votes
1answer
941 views

Drawing line with lon, lat, distance and azimuth?

I have table in PostGIS with lon, lat, distance and azimuth columns. I want to make Geoserver draw a line through first point with given length and direction. I can turn lon and lat to geometry in ...
0
votes
1answer
77 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
35 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
74 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
36 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
66 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
30 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
58 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="...