Sign up ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Does anyone know where I can find the converter from .map to .sld?

I have a big mapfile of styles for OSM and I have the styles mapnik.xml for OSM but I use Geoserver for my work. Or does anyone have some sld styles of OSM for PostGIS layers planet_osm_point and planet_osm_polygon? (I already have the style for planet_osm_line.)

share|improve this question

2 Answers 2

up vote 4 down vote accepted

There is a converter being developed by Dave Winslow at that may be able to do what you want. If you just want SLD to style OSM then you could look at

share|improve this answer

You can use the map file to create a MapServer WMS, then you can perform a GetStyles request which will generate an SLD file. For example looking at the BGS 625k Geology WMS:

The response shows that GetStyles is supported:


and gives us us the list of layer names including GBR_BGS_625k_BLT, to which we can apply the request, like:

share|improve this answer
Interesting idea. will need check this way. Thanx) –  Andrey Maraev Apr 29 '14 at 10:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.