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
0
votes
1answer
253 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 ...
2
votes
1answer
871 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? ...
1
vote
2answers
245 views

What is causing this distortion?

What is causing this strange behaviour in my map? As closer to the poles, the labels are distorted. Local OpenStreetMap data in PostgreSQL Geoserver OpenLayers Projection of data: 4326 Projection of ...
1
vote
0answers
285 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
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. <?...
4
votes
3answers
411 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 ...
0
votes
0answers
172 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> <...
1
vote
1answer
227 views

GeoServer GWC Direct Integration SLD_BODY Null Pointer

I'm running up against an issue getting a NullPointerException when I enable GeoServer GWC WMS Direct Integration then request a layer using the SLD_BODY request parameter (e.g. without a LAYERS param)...
3
votes
1answer
408 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 ...
0
votes
1answer
94 views

WMS Custom styles (remotely)

I access this WMS (link) which is returned in only .png/.jpg/.gif in a pre-defined colour-scale. I want to change those colours and am asking myself if I can set up a custom style for the rasters. I'm ...
2
votes
0answers
600 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
312 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
2k 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
236 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
371 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
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 ...
3
votes
2answers
539 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
227 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
1k 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
208 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
834 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
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 ...
1
vote
1answer
174 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
447 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
657 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
110 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
484 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
116 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
185 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
251 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
409 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
214 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
200 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
323 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
221 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
132 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
196 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
301 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
446 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
399 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
189 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
85 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
78 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
553 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
557 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
505 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
613 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 ...