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
2
votes
0answers
547 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 ...
2
votes
1answer
286 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, ...
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
226 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
337 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 ...
0
votes
1answer
85 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 ...
3
votes
2answers
497 views

GeoServer Heatmap WMS style problem

I just try to visualize some points using GeoServer to publish them as WMS and bind this WMS to my Openlayers website using the GeoServer internal Heatmap process to visualize it. I don't want to use ...
1
vote
2answers
208 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'...
3
votes
2answers
861 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
190 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
756 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
2answers
210 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 ...
1
vote
1answer
157 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 ...
0
votes
1answer
395 views

Descending order of VendorOption:sortBy?

Is there a descending order of VendorOption:SortBy? What is z-ordering? It is a common need to perform road casing against a complex road network, which can have its own z-ordering needs (e.g., ...
0
votes
0answers
559 views

Using ogc:filter and ogc:and gives me an empty result

I want to render my points using the point stacker transformation. I am creating a style so that when zoomed in far enough the individual points are in 4 different categories using 4 different colors....
2
votes
1answer
106 views

Adding inward facing triangles on a polyline/polygon SLD Geoserver

How do I create inward facing triangles on a polygon/polyline such as below in Geoserver SLD?
1
vote
1answer
440 views

Geoserver doesn't render labels

I've tried to create several types of GeoServer layer stylings with basic labels, both in SLD and via the GeoServer CSS extension. Yet, not once have I managed to get the labels actually rendered. ...
2
votes
1answer
113 views

Styling with sld in geoserver

I am using geoserver to serve my shapefile data, and I use SLD as the style solution. There are two fields in the data related to styling: type and status. The type field contains values like highway ...
1
vote
0answers
53 views

Problem with style with svg file for linear layer

I have a problem with styling line with svg file. Line should be style with image like below: but on layer it looks like this: My style is: <?xml version="1.0" encoding="UTF-8"?> <...
1
vote
0answers
170 views

Geoserver :Is it possible to cluster polygons in sld?

Is that even possible? This is my work area: And I want this to be clustered when I zoomed out. Like this:
0
votes
1answer
234 views

GeoServer CSS Styling should be able to filter by type?

According to the docs: Filtering on Type¶ When dealing with data from multiple sources, it may be useful to provide rules that only affect one of those sources. This is done very simply; ...
-2
votes
1answer
324 views

Overlapping Roads And Better Intersections in GeoServer?

I've been using geoserver for a month now. Obviously, I'm a beginner. I have a problem that I can't find a solution. There are many overlapping roads and intersections here. Is that possible to ...
2
votes
0answers
202 views

GeoServer - External graphics

I want to create SLD with an external graphic in GeoServer, I used this: <?xml version="1.0" encoding="UTF-8"?> <StyledLayerDescriptor version="1.0.0" xsi:schemaLocation="http://www....
2
votes
1answer
193 views

SLD array-valued parameter example

I am writing a Rendering Transformation and would like to pass a parameter that is an array. The geoserver documenation states that "Lists of values can be accepted by defining an array-valued ...
1
vote
1answer
300 views

SLD to label linestring

I am trying to get labels to follow the linestring. I have inserted the following sld text into a geoserver style, but the label is displayed at the horizontally at linestring centroid <...
1
vote
1answer
208 views

Geoserver raster legend in reverse order

If you get a legend from a geoserver raster the minimum value will be on top, the maximum at the bottom. <sld:ColorMapEntry color="#FFFFFF" quantity="0" opacity="0" label="0 mm"/> <sld:...
0
votes
2answers
121 views

SLD not changing style when publishing layer

I've tried several times creating an SLD in QGIS and then bringing into GeoServer. However, after selecting the style in the Edit Layer-> Publish tab, it remains in the original default color.
1
vote
1answer
172 views

SLD From QGIS in Geoserver - Displacement error

I generated SLD style from QGIS software, and here is my final SLD: <?xml version="1.0" encoding="ISO-8859-1"?> <StyledLayerDescriptor version="1.0.0" xsi:...
2
votes
1answer
280 views

Case Insensitive PropertyName Evaluation in SLD

I have a table layer_styles created by QGIS and, inside this table, the column stylesld. The problem is that the PropertyNames (column names) stored inside this column and the generated SLD that ...
3
votes
2answers
401 views

Styling by SLD according to multiple field

I have a shapefile which have two fields say it is "level" and "type". Now we want to style the map according to the value of the level and type fields. Generally we use something rule based symbol ...
6
votes
1answer
384 views

Using Math in SLD file - wkt

Is it possible to use math in SLD file in Geotools? I want to get Orientation for lines and calculate its sine/cosine and then multiply it with some value. But when I do this nothing shows up. Here is ...
1
vote
0answers
176 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 ...
3
votes
1answer
2k views

SLD polygon graphic fill - hatch

I am trying to create an SLD to style a polygon; the goal is to create hash fill for polygon but to leave empty space between hatch and bounds of the polygon, something like this: I am using this to ...
1
vote
0answers
80 views

GeorectifyCoverage and SLD

I'm building a small webapp to adjust georeference on Geotiff files using geoserver wps and SLD. The idea comes from this post. Geoserver: Georectification via SLD fails I have test the process ...
1
vote
1answer
73 views

Using sld in geoserver some states are not published

While publishing map in geoserver connection with postgres in style using sld from qgis validate error occurs but on removing units="mm" in the second line of code, some states are not being displayed ...
1
vote
1answer
517 views

Geoserver cannot find named layer in external SLD file

This is a follow-up to Geoserver cannot find style in external SLD file. I have an external SLD file (dynamically created by and ASP) which starts as follows <StyledLayerDescriptor xmlns="http://...
2
votes
1answer
493 views

Geoserver cannot find style in external SLD file

I have Geoserver running and I have an ASP.NET project which creates a SLD file dynamically, but when I try to get the style from the SLD file for a WMS layer, I get the following error in my log (set ...
1
vote
1answer
472 views

Geoserver SLD error - Premature end of file

Could you give me an advice with this SLD file http://pastebin.com/vyHLCFxq If I add more feature content and I want to display the layer with this style it won´t display it , but It downloads wms....
0
votes
0answers
586 views

Style for OSM in QGIS that can be exported to SLD

I need some production ready styles for OSM maps, which I can export into SLD. I am looking for styles for a long time and unsuccessful, so I decide create custom style by some manual. Can you give me ...
1
vote
1answer
99 views

Wrong SLD style generated by QGIS for Geoserver

can you tell me what is wrong with following SLD style? I've generated it by QGIS (2.18.3). In QGIS styles works fine, but when I upload it into Geoserver (2.10.1) and click valide I've had a lot of ...
1
vote
1answer
437 views

Geoserver SLD TextSymbolizer showing up

I am very new to geoserver and SLD. I am trying to put labels on my heatmap layer using SLD but the labels are not showing up in the preview. I found this example to implement it which looked ...
2
votes
1answer
215 views

WKT MultiPoint string not working in GeoServer?

I have a problem with a MULTIPOINT WKT string (SLD file for GeoServer) that is not displaying at all: <WellKnownName>wkt://MULTIPOINT((-1.5 1), (0 1), (1.5 1), (-1 -1), (1 -1))</...
1
vote
1answer
432 views

GeoServer: points' symbols with a WKT polygon geometry?

I need to define custom points symbols in a SLD file for GeoServer. It seems that some WKT strings are accepted and others are not. I need to draw a closed line with a fill color. The following ...
3
votes
1answer
439 views

How to convert svg to sld

I use geotools library for creating my application. Geometries I use need to be represented with style which is defined by sld. I have these styles as a library in svg format and need to convert it to ...
2
votes
1answer
134 views

GeoServer: SLD polygon texture image

I have a layer with polygons - rectangles to be specific. For every rectangle there is an image specified. That's basically ImageMosaic format but ImageMosaic does not have feature info on those ...
1
vote
0answers
116 views

QGIS (2.14 and olders). Problems with OGC SLD Text Labels Support

Could you tell me if QGIS 2.14 (and older versions) support SLD labels correctly? I had some problems trying to incorporate some SLD files that labels specific objects in a layers. This is my SLD ...
2
votes
2answers
278 views

Geoserver SLD: link to symbol in database instead of file

I have a PostgreSQL table with fields: 'id' with identificators of objects types (e.g. shops, cinemas etc), 'graphic' with SVG codes of correcponding map symbols. I want to create sld style with ...
1
vote
1answer
1k views

Rotation in GeoServer SLD

I am using the style editor in GeoServer to make some symbols for an OpenLayers based Web GIS solution. But I face a challenge when trying to rotate some symbols. I have a Point Layer that needs to be ...
2
votes
1answer
242 views

Absolute scale for Geoserver's heatmap rendering transformation

By default the SLD to generate a heatmap in Geoserver takes numbers between 0 - 1 to define the color ramp. So this would be a relative scale, where 1 is assigned to the area with the highest value in ...
2
votes
2answers
322 views

SLD Polygon Styling: Add Point feature to Northern Edge?

I am trying to create an SLD to style a polygon; the goal is a simple block fill along with a single point image added to the most northern edge of the polygon. Something like this: This example SLD ...