[OSM-dev] Obtain SLD style for osm
Jukka Rahkonen
jukka.rahkonen at mmmtike.fi
Thu Jan 28 12:34:09 GMT 2010
moataz Elmasry <zaza1851983ml <at> googlemail.com> writes:
>
> Hallo list
>
> 1- We are developing a GIS application using osm maps and a geoserver.
> My problem is that there's no reliable sld style for the osm maps. Is
> there a way to convert the mapnik style to SLD or does any of you know
> such a resource?
Hi,
This does not help you with converting Mapnik styles to SLD, but if you find
some WMS server that looks good and that supports the GetStyles request you can
capture the styles. For example this site doew answer for GetStyles:
http://mapbender.wheregroup.com/cgi-bin/mapserv?map=/data/umn/osm/osm_basic.map
This returs SLD for the layer "Bahn":
http://mapbender.wheregroup.com/cgi-bin/mapserv?map=/data/umn/osm/osm_basic.map&VERSION=1.1.1&REQUEST=GetStyles&SERVICE=WMS&layers=Bahn
You can use this SLD on your own server as it is or edit it if you like, or you
can even ask the wheregroup server to use your modified SLD for styling the Bahn
layer by adding a reference to your own style into your GetMap request with &SLD
parameter. I have not tried if wheregroup server supports using own SLD files
but if it does then something like this might work:
&SLD=http://your_server.org/my_styles/my_bahn_style.xml
-Jukka-
More information about the dev
mailing list