Hot answers tagged

16

Arc2Earth The Community Edition can only export single layers, you'll need to upgrade to Pro if you want create a single SLD file for your entire Map. After your selection, click on the Export button and you will be asked for a location to export to. http://help.arc2earth.com/help/faqs/arc2earth-desktop/export-map-symbols-to-styled-layer-descriptor-sld


16

You can try these: Altas Styler Udig Kosmo or OpenJump And Qgis either natively or with the help of the SLD plugin


10

It isn't necessary to learn OpenLayers or Leaflet when you just want to use GeoServer. However, I have a single advice for you: because you already have a working GeoServer, do yourself a favor and go to https://github.com/boundlessgeo/suite/tree/master/geoexplorer. Follow those instructions, build a geoexplorer.war and deploy it to your servlet container. ...


9

Looks like you found something to work with in the end and I hope by now you have a solution. I recently had a similar issue to yourself so I set about creating my own QML styles for OSM Shapefiles. You can find them on my github here: https://github.com/charleyglynn/OSM-Shapefile-QGIS-stylesheets I hope they can be of use.


8

You can do this by using Layer Groups. In the Admin interface, Under the 'Data' section on the left click on 'Layer Groups'. Then, in the usual GeoServer way, create a new layer group (by default you may already have a couple of examples) and then follow the intuitive interface to add layers to the group. Once you have your Layer Group created, go back ...


7

Take a look at OL's SLD.html example. They use SLD to style GML, but should work for WFS (a vector layer) as well. Credit: OL's Nabble.com forum


7

No, that won't work. Geoserver is expecting an SLD, so it will fail parsing any PHP code you insert there. What you can do is generate the SLD outside of Geoserver and pass it over when requesting the map from Geoserver. In OpenLayers it works like this: var sld = '<StyledLayerDescriptor version ="1.0.0" ...> more xml here ...


7

In Mapserver you can either set the OPACITY at the LAYER level or for each individual STYLE. A layer can have multiple styles for each of the different line types. This method relies on you being able to split your linestrings into different classes based on an attribute (such as year in the example below). LAYER CLASSITEM "year" ... CLASS NAME "Lines" ...


7

The SLD spec includes a string concatenation function. Here's an example of how to use it with labels: <Label> <ogc:Function name="Concatenate"> <ogc:Literal>No. </ogc:Literal> <ogc:PropertyName>postalNumber</ogc:PropertyName> </ogc:Function> ...


6

I have used this one, created (but no longer maintained) by Florent Bervas, and it is quite good. Unfortunately, it only has lines and polygons style, but maybe it will help you.


6

See this GIS Stack Exchange link: How to edit or convert ArcGIS 10 layer style to a SLD's file.


6

You really need to learn about SLD (yes I know it looks complex but it's quiet simple really) I'd start with http://docs.geoserver.org/stable/en/user/styling/sld-cookbook/index.html. Even if it doesn't work out with this server if you intent to play with styling WMS layers it is the only game in town. Once you have a rough idea of what you want get and read ...


6

I don't know how GDAL handles JPEG compression on a four band raster, it does not make much sense to me, JPEG is meant to be used against RGB (three band) or gray (one band) images. When you gdal_translate it you can also shave off the fourth band with, I believe, -b 1 -b 2 -b 3


6

I assume from your question that you are generating an SLD file and then copying it to the style directory in GeoServer. As you have seen, that approach won't work because I believe the style also needs to be registered as a catalogue item in GeoServer - if you look in the style folder you will see companion XML files with the SLD files. The best way to ...


6

You have to define 2 different sld:Rules using MaxScaleDenominator. In the first one, add the style to render the label (the TextSymbolizer in my example), and specify the desired zoom level with the right MaxScaleDenominator. In the second rule, define a different style without the label. Basically, a rule contains a style, an only the style whith the ...


6

The SLDs were originally created for our own use in GeoServer which supports several vendor specific options that we use for our OS OnDemand Web Services, so there are some edits that you need to manually make to the SLDs for them to work in QGIS. The first is that in the SLDs we top and tail each rule with the <FeatureTypeStyle> ...


6

Perhaps you are referring to this one? Since you know exactly what you want the map to look like, I would suggest starting with either the linked SLD from this post or the one from @tmcw. Then you can edit it until the map visualization fits your needs. You could even post the results to github and share them with the community.


6

I did a lot of trial-error tests with SLD lately, and my sum up is use Atlas Styler. They have problems with certificates (version 2.0), newest Java runtime refuses to launch the app, you have to adjust the security settings of Java, but its the only tool doing ALMOST all I expect it to do. Only filters (setting filter like Field='text' will become [Field ...


6

The GeoServer documentations states how to extract start and end points with geometry transformations (just use the end- point rule). The code example provided uses square as marks, but you could always replace this with e.g. the shape symbol shape://oarrow. EDIT: I forgot to mention how to rotate the triangle correctly (couldn't find it in the ...


5

I was looking for the same thing just the other day and found this http://wald.intevation.org/projects/arcmap2sld/. I haven't tried it yet though so will be interested to hear if you do. As noted by @AlexTereshenkov in a comment there is also a version for ArcGIS Desktop 10 - see bottom of the A tool for reading out styling information from ArcMap® and ...


5

Try an SLD like this, using ogc:PropertyName to include the accuracy value: <?xml version="1.0" encoding="ISO-8859-1"?> <StyledLayerDescriptor version="1.0.0" xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd" xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" ...


5

The other way is to list all the layers you want in the LAYERS parameter of your WMS request. If you have GeoServer installed locally you can try ...


5

XML is ordered (at least in the SLD schema) so you must use the elements in the right order, what you should have written is: <ogc:Filter>**line.24** <ogc:PropertyIsEqualTo> <ogc:PropertyName>mpec_magis</ogc:PropertyName> <ogc:Literal>1</ogc:Literal> </ogc:PropertyIsEqualTo> </ogc:Filter> ...


5

I've had this issue before, it looks like you have done exactly what I did. The GeoServer WPS example heat map doesn't support tiles, so what Gery said is correct you need to set tiled=false. I had the same problem in OpenLayers, so it isn't a Leaflet issue.


5

OpenLayers And GeoServer are two distinct softwares, used for different purposes. Geoserver is a Server Software, which serves out Geospatial Data, via OGC services. OpenLayers is JavaScript Library which can be used to make web applications that (Amongst other things) can consume OGC services. It just so happens, that when Geoserver wants to use ...


5

QGIS has a OpenGeo Explorer (for GeoServer) plug-in that you can create new SLD styles based on your feature symbology, then push to your server. You may also use uDig web GIS app. to pull in PostGIS layers, then copy out the .xml sld text which you may paste within GeoServer SLD styling editor.


5

If you add LEGEND_OPTIONS parameter to your request and the value forceLabels:on then you can force GeoServer to draw the text for a single rule. Here is an example of a request: ...


4

Short answer is no - WFS sends you the data and then you are responsible for styling it in the client. OpenLayers uses a stylemap to style a vector layer. See http://docs.openlayers.org/library/feature_styling.html for details of how to style a vector layer.


4

The best solution I've seen for arcgis to sld conversion is GeoCat Bridge. It's not free, but then again neither is ArcGIS 10. It'll publish directly to your GeoServer, using its REST config API (and also stick your metadata on GeoNetwork).


4

There is a converter being developed by Dave Winslow at https://github.com/dwins/mapnik2geotools that may be able to do what you want. If you just want SLD to style OSM then you could look at https://github.com/darrell/openstreetmap-sld



Only top voted, non community-wiki answers of a minimum length are eligible