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
995 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
672 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
111 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
88 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
315 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
29 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
297 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
141 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
275 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
159 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
540 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
135 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
409 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
315 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 ...
2
votes
0answers
645 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
481 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
246 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
369 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 ...
2
votes
1answer
818 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
946 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
424 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" ...
0
votes
1answer
1k views

GeometryCollection styling in Geoserver

I am trying to style an GeometryCollection geometry data type from PotGIS table in Geoserver. I have not found any examples on the Internet how to do it nor is it supported in Geoserver or not. When I ...
0
votes
2answers
4k views

Creating thematic map using OpenLayers and GeoServer?

I am still a beginner in learning GeoServer and OpenLayers. I tried to create thematic maps of the map that I publish in GeoServer. I used OpenLayers to show the map in web browser. When I want to ...
1
vote
0answers
177 views

GeoServer WMS layer doesn't see file content

I've created a new layer, and styled with an .sld file (categorized by value). It works, if I check with GeoServer OpenLayers Preview, but when I check for this in a .html it doesn't appear. Is the ...
1
vote
1answer
500 views

Dynamically add style to layer with user inputs

I am trying to create an SLD dynamically using parameters accepted from user. So how could I accomplish the task of adding the dynamically created SLD to my map layer? Please tell me how to add style ...
1
vote
1answer
2k views

line 15: cvc-complex-type.2.4.a: Invalid content was found starting with element 'Filter'

I have defined the following SLD rule for my layer. It says that if the property Weekday is greater than or equal to 0 and less than or equal to 3, then the color of a polygon must be #680000. <?...
2
votes
1answer
60 views

GeoServer: is grades to degrees transformation possible through SLD file?

I work on GeoServer 2.6.2 and PosgreSQL 9.2 / PostGIS 2.0. I have declared a layer in GeoServer which is linked to a PostgreSQL database table. In this table, I have a column (obj_orientation) storing ...
0
votes
0answers
166 views

Display arrows on each segment of a multines feature, using GeoServer and SLD

I'm using the SLD code below to display arrows along lines with GeoServer 2.10: <Rule> <Name>Lines</Name> <Title>Lines</Title> <LineSymbolizer> <...
3
votes
1answer
387 views

SLD file exported from QGIS not working in Geoserver?

I understand that others have encountered the problem of SLD exports running in Geoserver, and I have taken several steps recommended elsewhere on this site to fix the code but it still won't run, so ...
2
votes
1answer
1k views

Using SLD to style according table column value

How to style various points with different image according to value(text) in the column of table(layer)?
2
votes
1answer
297 views

SLD intervals with greater than 255 classes

I am trying to style a raster in GeoServer using a SLD file. I have 850 individual values, but only 179 color mappings (i.e., unique RGBA codes). I want to keep all 850 values, as they are meaningful, ...
2
votes
0answers
566 views

GeoServer SLD custom style displays PNG correctly but doesn't display SVG [closed]

Trying to use an SVG file as an image for a point layer. I'm specifying the SVG in a SLD file that I upload to GeoServer. Everything works smoothly as long as I use a PNG, but once I swap to SVG, I ...
1
vote
0answers
136 views

Sorting SLD file for BGS Digimap provided by Edina?

Does anyone know how to sort the sld files provided here: http://digimap.edina.ac.uk/webhelp/geology/using_data_with_gis/legend_files.htm The reason I ask is that I only want to display the ...
1
vote
0answers
179 views

Wrong number format when creating SLD from YAML via REST API

In our workflow we are creating style definitions in YAML locally and then upload these styles via GeoServer REST API to the server. A sample YAML file looks like this: name: Test Style title: test ...
1
vote
2answers
1k views

SLD_BODY in WMS Layer params is not working

I am trying to set style to my WMS layer in my script like this : http://opendem.info/ol3/wms_sld.html but I got nothing. This is my code : var sldBody = '<?xml version="1.0" encoding="ISO-...
0
votes
1answer
231 views

Style layer on server side or client side?

I have GeoServer installed where I am planning to place our company layers. Since we are using a web front end (Leaflet) to get data onclick (GetFeatureInfo) from some WMS layers should I style the ...
2
votes
1answer
350 views

Using SLD <Mark> to construct multi-character font symbols

I've been trying to figure out different approaches to constructing circles with text inside of them in SLD/GeoServer. Single character font-based "external" symbols work fine, with the "text" part ...
1
vote
2answers
216 views

Is it possible to make a label with underline and arrow from label to the point in GeoServer's SLD?

It is commonly a problem when you need all points to be labelled, but due to high density of points it is difficult to understand the ties between points and labels. Arrows would be a way, but I haven'...
2
votes
1answer
863 views

How to create graphic margin around labels in GeoServer using SLD?

I have a little problem using VendorOption - graphic-margin around labels of roads. In some cases they're drawn and some places they're not. You can see it on this picture. In the square its drawn ...
2
votes
0answers
171 views

Marking Point when multiple points exists at same location? [closed]

I am facing Issue while drawing mark on points. When I am giving a image to points, image is coming only to those points where points are not overlapping. for example, if three POI exists at exact ...
0
votes
1answer
1k views

Apply an SLD saved on Geoserver to OpenLayers 3

I am a complete beginner in JavaScript, XML and coding in general (so if there's anyway for me make my question more clear please tell me). I have loaded a WMS onto my OpenLayers 3 map. The relevant ...
0
votes
1answer
2k views

Providing alternative “label” when styling vector layer with OpenLayers 2?

I'm using OpenLayers2.12 and I am styling a vector layer using your typical new OpenLayers.Style({ Now, this layer does two things. First , renders polygons from GeoServer, so in the style I have '...
0
votes
1answer
533 views

Applying SLD to vector layer in OpenLayers 2?

I'm trying to apply an SLD style to a vector layer in OpenLayers. I already took a look on google and here and I got a lot of information, but still I don't manage to achieve the result I'm looking ...
1
vote
1answer
481 views

Issue showing multiple labels on a polygon of OpenLayers2

I am facing an issue, that I want to show multiple labels on each polygon of OpenLayers. I am defining styles in style editor of a layer.like <sld:Label> ogc:PropertyName&...
3
votes
2answers
905 views

GeoJSON style in Leaflet from GeoServer

I have a GeoJSON point layer from GeoServer. As I recognised there are several ways to style. My question is, is it possible to style it using an SLD from GeoServer? I use AJAX request for importing ...
0
votes
0answers
196 views

SLD vendor option “follow line” not working

I am creating an SLD in QGIS to be used in GeoServer. I set up the style with color, thickness, etc in QGIS and then saved it out to an SLD. QGIS doesn't preserve the label rules so I borrowed some ...
0
votes
1answer
775 views

Color and Graphic fill in SLD geoserver

Is it possible to add two overlays in <Fill> tag. For example, I want to add this color, #1e9e1e, and a graphic fill. xlink:href="vegetation.png". This is my code: <Fill> ...
1
vote
1answer
164 views

GeoServer SLD points styling

I have a layer of Points with some attributes in GeoServer. Is it possible to create a style that would combine all the points in this layer in a line according to "date" attribute order? I want to ...