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
27 views

Adding Addtional Styles to GeoServer via Python

I am having difficulties in adding additional styles to GeoServer Layers using pythons Requests module. The below code works perfectly up to the try block. It will successfully publish layer from an ...
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 ...
1
vote
1answer
24 views

Function “PropertyExists” in GeoServer style returns NullPointerException

I am using GeoServer 2.15.2. With this as the "ogc:Filter" in my "FeatureTypeStyle" element ... <ogc:PropertyIsEqualTo> <ogc:Function name="PropertyExists"> <ogc:Literal>foo&...
4
votes
1answer
3k views

OGC Filter set but symbolizer expected in GeoServer SLD

I have a problem with one of my SLD files and do not know what is causing the problem. The error message is pretty clear: line 18: cvc-complex-type.2.4.a: Invalid content was found starting with ...
2
votes
0answers
36 views

Style not conserved from QGIS to GeoServer

I have a raster file with following properties : Driver: GTiff/GeoTIFF Files: raster.tif Size is 28185, 24579 Coordinate System is: PROJCS["Merchich / Nord Maroc", GEOGCS["Merchich", ...
1
vote
0answers
295 views

SLD styling based on Cql filter result

I am using Geoserver 2.4.4 with a PostGIS database. I have 2 layers configured, one of them represents some polygons. I am trying to put a label inside the polygon with the number of the features of ...
0
votes
1answer
20 views

Create RasterSymbolizer SLD style in Geoserver

I'm trying to create a sld style for my raster, but I'm getting this error : line 18: cvc-complex-type.2.1 : L'élément 'sld:Normalize' ne doit comporter aucun enfant ([children]) de type caractère ...
0
votes
1answer
12 views

SLD space in TTF url fails

Use geoserver rest interface to create a style,param like below url:http://localhost:8080/geoserver/rest/workspaces/qgisImport/styles Content-Type:application/vnd.ogc.se+xml;charset=UTF-8 body: ... &...
0
votes
1answer
232 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
0answers
219 views

Using Infinity in GeoServer SLD colormapentry?

I am trying to write an SLD with the last interval ending at infinity, (i.e. have the last interval include arbitrarily large numbers. Currently, I am using a large value like this: <...
0
votes
0answers
19 views

Adding prefix to Literal in SLD?

I have a Sql Server Store in Geoserver. I want to create Attribute-based sld. I used Persian characters in Literal tag. Like this: <se:FeatureTypeStyle> <se:Rule> <se:Name>...
0
votes
1answer
143 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 ...
1
vote
0answers
33 views

Using Arabic and Persian in SLD filter?

I want to create Attribute-based polygon with SLD but when I use Persian or Arabic filter It's not working. This is my sld: Attribute-based polygon SLD Cook Book: Attribute-based ...
3
votes
1answer
858 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 ...
0
votes
1answer
45 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 =...
1
vote
2answers
30 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
35 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
93 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
62 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
47 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
62 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
106 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
21 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
55 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
38 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
46 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
85 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
23 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
27 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
33 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-...
2
votes
0answers
777 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
13 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
286 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
64 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
68 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
70 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
333 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
14k 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
61 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
98 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
742 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 ...
2
votes
1answer
69 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
88 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"?>...
1
vote
2answers
231 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
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
16k 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
65 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&...