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
27
votes
5answers
54k views

Converting ArcGIS layer style to Styled Layer Descriptor (SLD) file?

I am putting together a GIS server using GeoServer and need some help with importing my layer styles from ArcGIS 10 to SLD format. I have one layer in ArcMap properly symbolized and labeled, how ...
23
votes
2answers
16k 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 ...
21
votes
1answer
8k views

SLD to Esri lyr file?

Does anybody know if there's a sw/extension to convert an SLD to Esri. lyr format, or to import the SLD directly?
20
votes
5answers
6k views

Standard SLDs for OpenStreetMaps?

We have downloaded OSM data for our region and loaded them into PostGIS using osm2pgsql. So far so good. On top we have GeoServer and we would like to expose the OSM data using WMS. We would as well ...
17
votes
0answers
1k views

Converting from SLD to Carto CSS? [closed]

I have a bunch of layers and corresponding SLD's running a WMS service. I was exploring the possibility of shifting to a TileMill's tile based TMS service. For this, I would like if it were possible ...
14
votes
5answers
1k views

Is there any software (with a graphical user interface) for creating Style Layer Descriptors?

Is there any software that can easily create a Styled Layer Descriptor (SLD) without using a script?
14
votes
4answers
13k views

OpenLayers: how to style WFS layer with SLD file?

I'm experimenting with a simple web mapping service build on PostGIS/GeoServer/OpenLayers stack on Win 2008 Server. I overlay vector layer from PostGIS using: var Index1v = new OpenLayers.Layer....
11
votes
8answers
16k views

SLD Editor with GUI? [closed]

I am setting up a GeoServer instance to serve up a few different PostGIS databases. I have GeoServer up and running however, it takes me forever to enter the SLD into GeoServer by hand. Is there a ...
11
votes
2answers
3k views

Using simple Math in SLD file on Geoserver?

Is it possible to use simple Math in an SLD file on Geoserver? Suppose I want to read a text size property from a database and multiply its value, how can I do this? <sld:TextSymbolizer> ......
11
votes
1answer
4k views

In SLD, how do I add a string to a label describing a property?

Using Geoserver, is there any way that I can add a predefined string: "No. " to a property: postalnumber? <sld:Label> <ogc:PropertyName>postalnumber</ogc:PropertyName> </sld:...
11
votes
4answers
13k 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 ...
11
votes
1answer
4k views

How to transfer styles from QGIS to ArcGIS?

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 ...
8
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 ...
8
votes
2answers
7k views

Geoserver SLD external graphic path

<Rule> <PointSymbolizer> <Graphic> <ExternalGraphic> <OnlineResource xlink:type="simple" xlink:href="glass.png" /> ...
8
votes
1answer
7k views

Is there a free and open-source MXD to SLD converter? [duplicate]

Possible Duplicate: How to edit or convert ArcGIS 10 layer style to a SLD’s file I'm trying to set up a web map server for one of the government agencies in my country. Server setup's done (...
8
votes
2answers
4k views

Can I do custom styling on GeoServer

I want to use GeoServer WMS server for custom styling. Let's say I have an area as polygon in a shapefile, but I don't have this area's temperature as an attribute. From a web service I gather ...
7
votes
2answers
5k views

Drawing arrow on line using SLD of GeoServer?

I have a line layer in geoserver as in the 1st image. How can I draw an arrow on the line like in the 2nd image? The line.rar includes a shapefile and a sld file. Can edit a sample for me? line....
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, ...
7
votes
3answers
2k views

geoserver heatmap tiles doesn't display well (with leaflet)

I am trying to display a heatmap generated with geoserver on my map using the L.tileLayer.WMS class from Leaflet, but the tiles do not fit well together. Do you have any idea how to fix it?
7
votes
1answer
937 views

Migrating SVG-based styles for QGIS to other computers?

I'm working on a project that has involved creating many recolourable SVG icons and bringing them into QGIS. These are then used in layer symbologies, with these subsequent layer styles exported as ....
7
votes
1answer
1k views

Does QGIS support .sld style files for raster layers?

I'm currently looking at the documentation for geoserver, and I'm trying to load a raster and .sld file in QGIS to see if I can edit .sld files for raster layers. The .sld and raster are located here: ...
7
votes
3answers
3k views

SLD encoding in GeoSever on Ubuntu

I am facing a challenge with the encoding in my SLD file in GeoServer on a Ubuntu server. When I create a SLD file containing the danish letters æ, ø, å in the GeoServer web interface like this filter:...
7
votes
1answer
8k views

Setting transparency in an SLD file for a 4 channel GEOTIFF

I'm struggling to set the a background colour to transparent in an SLD file for a 4-channel GEOTIFF using GeoServer 2.1.4. I think I've set my background colour to transparent alpha layer in a ...
7
votes
1answer
1k views

GeoServer with SQL server consuming all my CPU

This question is long please bear me and my problem. SQL Server Query profiler The Sample Query from profiler that GeoServer is running that corresponds to SLD I am using and not the SQL SERVER view I ...
6
votes
3answers
1k views

Is it necessary to master openlayers to use geoserver?

Is it necessary to learn openlayers to use geoserver? Can i completely ignore OpenLayers so long as i master using geoserver to publish data on my website because i understand openlayers is contained ...
6
votes
2answers
8k views

Display points labels starting at certain zoom level

I use WMS to display my points on the map. I would like to display points labels(name_ID) starting at certain zoom level. From What I have read I understand I can do it with GeoServer rules, but I ...
6
votes
3answers
4k 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&...
6
votes
3answers
854 views

Is there a symbols level option/solution for SLD?

Is it possible to have an sld blend the symbology in the lines together just as QGIS and ArcGIS allow using symbol levels? In QGIS I can use symbol levels on the line layer and have this appearance: ...
6
votes
2answers
2k views

How do you make map styles NOT appear in a legend?

I am using GeoServer to serve up OSM data. I am making use of the GetLegendGraphic command, but I do not want some of my styles to appear in the legend (for example, the styles that are ONLY for text ...
6
votes
1answer
396 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 ...
6
votes
3answers
2k views

Problem with Styles having a Workspace

I've encountered a little problem with my styles having an assigned workspace. For one, I've got to admit that I'm not really sure what good does it make to put a certain style inside a workspace. I ...
6
votes
1answer
2k views

Mixed geometry types styling with GeoServer 2.2

I have a PostGIS table with geometry column. In this column I have geometries of several types (polygons, points, lines). I publish this this table on GeoServer. Now I want to create OpenLayers layer ...
6
votes
3answers
1k views

Is it possilbe to change SLD from client side?

How to change predefile SLD in client side? The reason I want this is I want to turn label on and off on client side.
6
votes
2answers
3k views

How do I parse getStyle request?

I am having problem parsing http://localhost:8080/geoserver/wms?request=GetStyles&layers=topp%3Astates&service=wms&version=1.1.1 getStyle response from geoserver of layer topp:states. ...
6
votes
1answer
2k views

Dynamic SLD styling - unique colours for linestrings

I have a postGIS table that looks like this: (plus a 'track' geometry column, a linestring for the vessel's track) sampling_interval | voyage_name | start_time_utc | id | ship_name | ...
6
votes
1answer
2k views

Styling a polygon layer using external graphics

I have a layer which is comprised of a number of different polygons symbolised according to their type. I have set up a style which successfully filters by type then applies a corresponding fill (in ...
6
votes
1answer
774 views

How can I add multiple rules in a GetLegendGraphic request in Geoserver?

I am using following GetLegendGraphcs request https://develop.blaa.nl/data/test/wms?LAYER=nccw:variabele_woz&request=GetLegendGraphic&format=image/png&styles=nccw_variabele_woz&rule=...
6
votes
1answer
1k views

How to create SLD with inline features and style and add to WMS using GeoTools?

I am trying to create labels with arbitrary values on a WMS map using GeoTools (9.4). I have created a feature type, a feature (in a data store), and a user layer. With that I generated an SLD ...
5
votes
4answers
2k views

How to update a SLD file in GeoServer?

I'm working on my own geoportal. I have prepared a php page which users can describe their own SLD configuration. The SLD file will be stored in GeoServer style folder. But when I tried to view maps I ...
5
votes
2answers
3k views

Use SLD to conditionally display points or polygons based on zoom level?

This is not a duplicate of: how to display polygons as points until certain zoom level? I want to do this with Geoserver v2.5.5 if possible (not openlayers). Basically - I have a layer of polygons, ...
5
votes
3answers
1k views

Geoserver : add extra style (SLD) with Curl

In my geoserver I have a layer with a default style (SLD) and i want to add another style to this layer with Curl. I tried command below with <style></style> instead of <defaultStyle&...
5
votes
1answer
469 views

Dynamic label in SLD Style

I have a dynamic style in Geoserver, like below: <sld:ColorMap> <sld:ColorMapEntry color="#2c7bb6" quantity="${env('low',0)}" label="${env('low',0)}"/> <sld:...
5
votes
2answers
340 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
2k 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 ...
5
votes
1answer
707 views

SLD - Is it possible to create a Rule that stylise only the first and last point of a Line?

I've read the SLD doc, but I can't find any clue on how to create an SLD file to add a graphic symboliser on the first and last point of a line. Does someone know how to do that ? Thanks.
5
votes
2answers
439 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 ...
5
votes
1answer
493 views

Does WMS GetFeatureInfo takes into account the applied Style (SLD)?

As the title says, does WMS GetFeatureInfo takes into account the applied style to a layer? For example I have layer of all US States and I applied the following SLD: <PropertyIsEqualTo> <...
5
votes
2answers
6k views

Can QGIS automatically load an SLD with a Shapefile?

I have SLD's/lyr files with my shp/gdb files. They all have the same name except for the extension. Is it possible for me to force qgis to load the sld with the shp so that I don't need to manually go ...
5
votes
1answer
481 views

Is there a parellel line function for slds?

I am attempting to make an sld style which symbolizes a line with an offset. I have tried with filters, functions online graphics but can achieve only ugly results. The line consists out of 2 line ...
5
votes
2answers
12k views

Geoserver SLD using PropertyIsEqualTo And PropertyIsLike

I have two SLD rules one using PropertyIsEqualTo and another using PropertyIsLike Using PropertyIsEqualTo <Rule> <Name>Vendor FirstVendor</Name> <...