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
0answers
82 views

Geoserver rendering hindi labels incorrectly [closed]

I have published a layer in geoserver with database. Unfortunately geoserver is not rendering the label correctly as its in database. I have included Hindi font both in sld and geoserver but I was ...
1
vote
0answers
61 views

How to pass jiffle script expression as env parameter through url in GeoServer in SLD style

I'd like to create a style for GeoServer for raster algebra using jiffle. The main thing is that I want jiffle script to be dynamic (I want to pass the formula through the request URL) and also if ...
2
votes
2answers
3k views

Showing Two Labels of One feature In GeoServer?

I have prepared a Web GIS Map using Geoserver-Openlayers_Postgis....For One Feature I need to show two labels such as "premise_no' & "bld_name'... The following is the xml I used for styling(in ...
1
vote
0answers
450 views

Using SLD filter with GeoServer [closed]

I had a problem with my SLD today, I actually solved my issue but i'm very curious if there's another way around it, Mainly because my method is a hassle and may not work in other situations. I've ...
0
votes
0answers
27 views

Fixing QGIS generated SLD to avoid repeating polygon labelling [duplicate]

I have generated SLD's in QGIS that I use in GeoServer. Although the labeling shows fine when previewing the layer in GeoServer, when bringing the WMS in Leaflet then labeling repetition occurs. How ...
1
vote
1answer
51 views

GetFeature EqualTo filter incluiding substring function?

I have the following table as a layer in geoserver: I'm trying to get the features with the first 3 characters of the codigo field matching the Literal. When doing a GetFeature request with EqualTo ...
1
vote
1answer
23 views

LabelPlacement in high zoom and AnchorPoint

In the documentation of geoserver I found, that <AnchorPoint> <AnchorPointX> 0 </AnchorPointX> <AnchorPointY> 0.5 </AnchorPointY> </AnchorPoint> ...
1
vote
1answer
90 views

What is the difference between <ogc:Literal>wms_scale_denominator</ogc:Literal> and MaxScaleDenominator/MinScaleDenominator

I take my first steps in creating SLDs using the documentation. For TextSymbolizer I found this code snippet to achieve different views in different zoom levels - Zoom-based views. <...
12
votes
2answers
5k views

Transfering styles from QGIS to ArcGIS Desktop?

We have a QGIS project that has symbols for a lot of different lines. Data comes from a geodatabase that is accessible to both QGIS and ArcGIS. We now want to use the symbology of the QGIS project to ...
3
votes
1answer
95 views

Geoserver SLD style text

I'm novice in Geoserver. I use Version 2.15.1. I would like to display labels. This is my SLD – made and export with QGIS: <?xml version="1.0" encoding="UTF-8"?> <StyledLayerDescriptor ...
4
votes
1answer
4k 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
49 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
314 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 ...
1
vote
1answer
75 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
52 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: ... &...
2
votes
0answers
241 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
29 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>...
1
vote
0answers
43 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
895 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 ...
1
vote
2answers
87 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 ...
9
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
54 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. ...
2
votes
1answer
182 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
106 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
0answers
23 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
226 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
89 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
63 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
298 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
32 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
56 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
48 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
814 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
24 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
348 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
130 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
202 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
506 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
15k 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 ...
6
votes
3answers
5k 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
174 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
793 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
116 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
176 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
269 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
2k 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-...
25
votes
2answers
17k 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 ...
7
votes
2answers
11k views

SLD for OpenStreetMap for GeoServer?

I display OpenStreetMap with some SLD styles. This map is not the same OSM. I want that this map is equal OSM map. I use GeoServer 2.3.5 Does anyone display OpenStreetMap through MapServer, ...

1
2
3 4 5
13