[GIS] OSM data on MapServer

mapserveropenstreetmaposm2pgsql

I'm making an evaluation to replace the TomTom commercial Database (ex TeleAtlas) with Open Street Map data.

What I need to do is use the street map as a base layer for my WebGIS applications. I use MapServer as application server and I made styles for features of the TomTom DB based on attributes values. I want to do the same with OSM data.

Looking on the web I found many references to MapBox, TileMill, preconfigured style schemas and so on… but I have some questions/doubts about all that.

1) If I need to render this data through MapServer, can I avail of all these instruments?

2) Is there a way to convert those styles to MapServer .MAP files?

3) I imported OSM data from SHP files downloaded from a web site that regularly creates them from updated OSM data. I read something about OSM2PGSQL, OSM2PO, OSMOSIS and so on… but I don't really understand what they are and how they work and if I can use them with my actual database. Do I really need to import OSM data with such tools?

Best Answer

I am not aware that you have a converter from Mapnik to Mapserver mapfile styles.

You will really need a lot of tools for what you expect. OSM world has his own set of tools because of their DB complexity and storage (XML)

I don't recommend to use Shapefile for rendering OSM data. If you need lot of custom styles, the shp don't give you all the attributes required to do like this. You can always look at this minimum mapfile from OSM website

IMHO it's better to follow all the instructions available on the official Mapserver wiki. You will need OSM2PGSQL but with it, you can update your DB regularly (worth when you see the full OSM DB size)

Instructions depend on your OS:

At the end, your choice ;)

Related Question