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.

114 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
464 views

SLD file GeoServer: Avoiding duplicate labels

I have an SLD file for a road layer in GeoServer. I wish only to show the labels for that layer (no symbol for the line objects) and I wish to only see them once for each road when I view my layer in ...
4
votes
0answers
2k views

Rotation by attribute in Geoserver SLD style

I have a table with field calculated by function: NEW."rotationAngle" := degrees( ST_Azimuth( ST_StartPoint(NEW.the_geom) ...
3
votes
0answers
210 views

How to use 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: <...
3
votes
0answers
1k views

Doing crop coverage with WPS chain in SLD?

I had 2 layers: custom:Temperature: Point layer. custom:Region: Polygon layer. I would like to perform a gs:CropCoverage of the Raster Layer which is the result of gs:BarnesSurface of vector layer '...
3
votes
0answers
273 views

SLD - disable follow line

I have a simple SLD style using in GeoServer v2.3.0 and testing in uDig. I have a interstate symbol that I do not want the label symbol to follow the line. I thought if I set: <sld:VendorOption ...
3
votes
0answers
892 views

Add SLDs to GeoServer using REST API Fails

I have been writing some python code to automatically add data layers from PostGIS to GeoServer and attach a suitable SLD as default. I got this working using the following code: store=("<...
3
votes
0answers
196 views

Display house numbers on the street corners

I have a street map (MuliLineString geom and house numbers min and max, left and right). I would like to show this numbers on the street corners. I use GeoServer. If I use the TextSymbolizer with ...
3
votes
0answers
487 views

How can you parameterize ColorMapEntry in a style?

Is is possible to parametrize ColorMapEntry in a style. I want to be able to specify different values for "quantity" in ColorMapEntry when I request a raster layer?
2
votes
0answers
44 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 ...
2
votes
0answers
1k views

Using .lyr files in QGIS

I'm trying to use a publicly available data set (the Australian National Vegetation Information System) in QGIS, but it has been set up for use in ArcGIS (.lyr file). I tried to convert the file ...
2
votes
0answers
210 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
0answers
190 views

GetLegendGraphic from layergroup in Geoserver 2.8.2

I am working with Geoserver 2.8.2 I am requesting a GetLegendGraphic to a layer group that holds three layers, each layer with one single SLD styling. I am getting a legend from Geoserver, but ...
2
votes
0answers
54 views

Duplicate an existing geoserver style using gsconfig

I am playing around with gsconfig and trying to assign a new style on a layer I have created. What I want to do is to actually create a new style, which is the same with an existing one. I searched ...
2
votes
0answers
1k views

Converting from QML to SLD on the command line

We have the problem of automating the conversion of MapInfo TAB styles to SLD. I've managed to achieve the first part of the process (TAB -> QML) using this tool: https://github.com/NathanW2/MapInfo-...
2
votes
0answers
720 views

Assigning multiple styles for same layer from GeoServer in OpenLayers 3?

This is my code, the function set style is not working osm background layer. I have many sld files for one layer and I want apply them on the same layer: <script> var untiled = new ol.layer....
2
votes
0answers
246 views

What are the rendering options for timeline animations in QGIS?

I want to animate a shapefile that has a timeline (DATE) attribute using QGIS. The [TimeManager] plugin (http://anitagraser.com/projects/time-manager/) has been installed and provides sufficient ...
2
votes
0answers
1k views

GeoServer: Get styles from PostgreSQL/PostGIS table

We're running GeoServer with all layers coming from a PostGIS data source. Most people work directly on the PostGIS database, but we have one person sitting 10.000km away, and for him, connecting to ...
2
votes
0answers
514 views

LineSymbolizer SLD for GeoServer using SVG images

I want to create a LineSymbolizer which consists of an SVG (or png) image that is repeated along line. I have used this code but it does not show the image - can someone please gives me some hints? &...
2
votes
0answers
769 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 ...
2
votes
0answers
441 views

SLD question regarding filter

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 ...
2
votes
0answers
109 views

How not to repeat text in linesimbolizer?

I need make a sld style with line and label above. But it's not that simple because I have some additional requirements: Label without repeat Label fitted in line in ideal or put in line center. ...
2
votes
0answers
289 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 ...
2
votes
0answers
1k views

WMS Query does not return all records (Geoserver)

This is a tricky one - so bear with me... i'm a Geoserver newbie... Basically, i have two very similar queries that return species records for a given species in a given geograpic area. One query ...
2
votes
0answers
124 views

Is there any sld styles for OpenStreetMap in ArcGis 10.1?

I want to display OpenStreetMap any possible way. 1) This map must be similar to the official OpenStreetMap. 2) Also I must cache data. So I need the WMTS protocol. This is vital. I can not use ...
2
votes
0answers
56 views

Is it possible to style a part of a label?

My label consists of two different things: <ogc:PropertyName>user</ogc:PropertyName> <ogc:PropertyName>room</ogc:PropertyName> I would like to style the two parts differently,...
2
votes
0answers
166 views

Optimizing SLD map styling implementation

Styling a map on demand can be a great bottleneck if you don't have a good strategy to deal with it. I'm sure there is a lot of techniques to implement the styling of maps, but I would like to ask you ...
1
vote
0answers
19 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 ...
1
vote
0answers
33 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
0answers
207 views

Batch converting .lyr to .qml?

I am looking for ways to make .lyr files usable in QGIS. It appears that they can be converted into an .sld file in ArcMap but according to one of the posts, they only store symbology and do not point ...
1
vote
0answers
23 views

Generating SLD files from Autodesk's layer

I have Autodesk layer files (with .layer suffix). I'd like to create SLD files based on these layer's information (e.g. the colors). I tried to generate the SLD XML file by using xslt and parsing the ...
1
vote
0answers
90 views

Problems with dynamic symbolizer in Chart Symbolizer extension on GeoServer

I have a layer on GeoServer with a time dimension which shows the number of overnight stays for a certain area in a given year. With the Chart Symbolizer extension, I would like to visualise the ...
1
vote
0answers
86 views

GeoServer - labels not working correctly

Currently having a few issues with GeoServer not displaying our labels correctly. The code in question is here: <Fill> <CssParameter name="fill"> <ogc:Literal>#...
1
vote
0answers
39 views

Saving Style as SLD in QGIS but after reloading unit changes from map units to pixel?

I have a style I am saving in QGIS (2.18) as an SLD. After reloading the Style onto the layer the ouline width changes to pixels instead of map units. I even checked the .sld in notepad and the uom-...
1
vote
1answer
102 views

Display palette (coloramp) imagery in GeoServer

I have a data set of palette imagery. These are basically RGB imagery that have been converted to 1 band color map imagery using ArcGIS. I am loading the images to GeoServer as GeoTIFFs but nothing ...
1
vote
0answers
57 views

How to successfully call CQL in YSLD?

I am trying to create a web map using GeoServer, and doing styling via YSLD. According to YSLD documentation, I should be able to include CQL in order to do filtering. For a test, I am using ...
1
vote
0answers
195 views

Geoserver sld pass long env parameter

I have a geotiff file served with geoserver. The geotiff is styled with the following sld, which includes a spatial filter. I am sending a polygon geometry as an env parameter, which results in ...
1
vote
0answers
217 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 ...
1
vote
0answers
98 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 ...
1
vote
0answers
39 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
0answers
113 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 ...
1
vote
1answer
92 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 ...
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
176 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:
1
vote
0answers
180 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
0answers
82 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
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 ...
1
vote
0answers
162 views

Problem with MaxScaleDenominator in GeoServer

I'm using GeoServer version 2.7.6, and I had to publish a WMS service, I tried to establish a limit in the scale (with <se:MaxScaleDenominator>5001.0</se:MaxScaleDenominator>) but when I ...
1
vote
0answers
271 views

How to send an SLD style to GeoServer using AJAX?

The question title sums it up pretty much, this is the code that I actually have: // Build a XML string from the XML object var xml_string = '<?xml version="1.0" encoding="UTF-8"?>' + (new ...
1
vote
0answers
100 views

Google.maps.ImageMapType getTileUrl maximum length

I am using google.maps.ImageMapType to render a GeoServer WMS to Google Map. When a request is made, it uses GET. I am concern the WMS getMap length might exceed 4k in length due to a requirement to ...
1
vote
0answers
944 views

Geoserver SLD creation using a local image

Using this documentation I have made the below SLD file, attempting to use an svg that I obtained from here I have moved the svg into /var/lib/tomcat7/webapps/geoserver/data/styles but the image will ...