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
1answer
135 views

SLD file with .png's to style points on a Geoserver OpenLayers map

The .png's are stored here: C:\Program Files (x86)\GeoServer 2.12.1\data_dir\styles. I have seen many different ways to incorporate a .png into Geoserver and none have worked for me. I have no idea ...
1
vote
0answers
297 views

How to displaying u and v components of wind data from a grib file as geoserver coverage?

I have generated a coverage view from a grib file (u,v components), but I can't style the result of both components. Is there any way to style both wind components (u and v)? My style is the next ...
0
votes
1answer
83 views

Transparency in stacked imagemosaics coverages

I'm using geoserver to stack several raster images that have different ELEVATION parameter (each ELEVATION "number" is a different layer so to speak). This raster images are 16-bit one channel ...
1
vote
0answers
116 views

Geonode or Geoserver generates a random sld file for geojson layer during upload, how do I change this

When I upload a new geojson layer through geonode web interface a random sld file is generated and it becomes the default style for the new layer. I would like to remove this random behavior and ...
5
votes
2answers
417 views

SLD - break in hatch

When I use rotated horline or vertline like @Ian Turton suggested in his answer to question Rendering sld style(buffer) SEVERE null java.lang.NegativeArraySizeException, then I get breaks in the hatch,...
5
votes
1answer
3k views

Using Conditional Statement in SLD GeoServer

Is there any way to use the conditional statement in SLD? somehow using if_then_else like this Pseudocode: if (10 =< variable =< 100) { then Multiply variable by 2 } else { then ...
1
vote
0answers
42 views

feature with multiple id used for style

I have features with multiple themeID, for example, themeID=49 and themeID=53, and when I load them into qgis it shows attribute themeID=(2:49,53). The problem is that I use themeID in sld to choose ...
1
vote
1answer
243 views

Rendering sld style(buffer) SEVERE null java.lang.NegativeArraySizeException

Can somebody help me with this error, it throws it when rendering an object and styling it with use of a buffer (sld style, wkt string). So I suppose that some problem is with buffering but was unable ...
1
vote
1answer
468 views

Classified contour-line visualization in SLD Geoserver

I have a problem with the Styling for the contour-lines. here is how I want to style them: 4 different classes with different display zoom MaxScaleDenominator. The interval is a variable (not fixed) ...
1
vote
0answers
147 views

One specific label doesnt show

I use geoserver and OL3 to display one layer. I have configured my sld in order to show labels after a specific zoom level. It works quite well but there is one specific polygon that doesn't show the ...
0
votes
1answer
317 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 ...
5
votes
2answers
577 views

Geoserver Dynamic Data Interpolation

I'm hoping to get some feedback on styling strategies in Geoserver WMS when dealing with dynamic (e.g. not stored with the layer) data and layers that have a large number of features. We've tried a ...
1
vote
1answer
463 views

Filtering Label in SLD based on Elevation

How can I filter the label in SLD, I want to have a label for all the contour-lines where the elevation is between 200-400. I tried with this SLD, but it doesn't apply anything. <Rule> <...
0
votes
0answers
24 views

Removing multiple occurence of names of attributes while zooming in

I was writing an SLD so that it works with MapServer. The problem I encountered is that there are multiple occurrences of names of attributes while zooming in. Is there a way to correct this? Below ...
1
vote
1answer
1k views

Show custom string as label in SLD Geoserver

How is possible to add a custom string to the label of shape in SLD? without any predefined ogc:PropertyName means I want to add a constant string (in my case " BS") to the field "Area", example: "...
4
votes
1answer
606 views

How to set style for a Wind - point layer on GeoServer

I am serving a Wind as a point layer on GeoServer. In each point I have data: wind speed [m/s] and wind direction [degrees] Currently I am using default style, but I would like to be able to change ...
3
votes
1answer
1k 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
135 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 ...
3
votes
0answers
112 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 ...
3
votes
1answer
540 views

Styling polygon dash-dot borders in GeoServer using SLD

I want to draw polygon borders using a pattern of dashes and other symbols like triangles or circles but most polygons share borders so I get an undesired result. Using this SLD code: <se:...
2
votes
1answer
410 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
30 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
413 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 ...
0
votes
0answers
173 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
349 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
192 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 ...
1
vote
2answers
2k views

french accents changed to junk characters when saving the SLD in geoserver 2.11.2 [closed]

I have a shapefile with french accent and needs to be published in geoserver 2.11.2. I have my geoserver in tomcat 8.5 and am using Ubuntu 14.04. The french accents are showing fine in get feature ...
2
votes
1answer
726 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. ...
3
votes
2answers
551 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
159 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 ...
1
vote
1answer
417 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 ...
1
vote
1answer
716 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
293 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 ...
3
votes
1answer
1k 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
274 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
343 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
70 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
3k 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
535 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
195 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
255 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
519 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
106 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
710 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
384 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
262 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 ...
3
votes
1answer
429 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
97 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
730 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 2 3
4
5
13