Tag Info

Hot answers tagged

16

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


13

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


9

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. ...


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

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 ...


6

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


6

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


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

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> ...


5

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" ...


5

I was looking for the same thing just the other day and found this http://wald.intevation.org/projects/arcmap2sld/ . There is a bit more information here http://geoserver.org/display/GEOSDOC/ArcGIS+to+SLD+tool. 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 ...


5

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 ...


5

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


5

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 ...


5

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 ...


5

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> ...


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> ...


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

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


4

GeoServer has some examples of how to style using SLD called SLD cookbook. In your case you want to combine the Attribute-based point example and the Point as graphic example.


4

Zach, correct, there is no way to hide a rule from the GetLegendGraphics call. The SLD standard does not provide a way either, so someone would have to come up with an extension to the standard and then code to implement it at the Geotools and GeoServer level.


4

No - it's pretty hard to do. See http://lin-ear-th-inking.blogspot.co.uk/2010/11/single-sided-buffers-in-jts.html for a discussion of why.


4

This is how an SVG symbol is defined in QML: <symbol outputUnit="MapUnit" alpha="0.329412" type="marker" name="0"> <layer pass="0" class="SvgMarker" locked="0"> <prop k="angle" v="0"/> <prop k="fill" v="#000000"/> <prop k="name" v="/leaf2.svg"/> <prop k="offset" v="0,0"/> <prop ...


4

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" ...


4

The label placement algorithm will almost certainly decide not to show both labels as they will overlap. There are various vendor options that you can use to make it less picky about overlaps and clutter but it will end up looking ugly. The better solution is to combine the two properties into one label (this will give you much more control over the way ...


4

Something you should try, which IMO is one of the cooler QGIS features, is the rule based rendering If you export this as a SLD it will contain the style for each zoom level in a single SLD. Note: You can't turn each rule on and off in the TOC but there is a feature request for that which hopefully might happen for 2.1. Also Note: Labels can be done ...


4

There are lots of different methods, depending what you want to do with the data (routing, general GIS, rendering with Mapnik...). You can find quite a lot on the OSM wiki. osm2postgresql (http://wiki.openstreetmap.org/wiki/Osm2postgresql) is my personal fav but you can have a look at the other ones. They will allow you to import an *.osm file into the ...


4

Put the MinScaleDenominator and MaxScaleDenominator element after the ogc:Filter element: <?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" ...


4

This is an interesting question, and I wanted to investigate the issue. Firstly, with some brief experimentation, I saw that Geoserver does not return any data from the non-rendered region when you use the GetFeatureInfo request on the WMS service. To see if this is expected behavior, I checked the documentation for the GetFeatureInfo request. You can ...


4

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.



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