Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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