[mapserver-users] Map from .OSM

Ben Madin ben at remoteinformation.com.au
Thu Nov 26 00:43:12 EST 2009


> From: Stephen Woodbridge <woodbri at swoodbridge.com>
> Date: 26 November 2009 10:38:00 AM GMT+07:00
> To: abul khayer <khayer117 at yahoo.com>
> Cc: mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] Map from .OSM
> 
> 
> abul khayer wrote:
>> Can Mapserver render map from .OSM(Open street map) file directly?
>> I want to use mapserserver and Openlayer to render a map of .OSM. Though i get some help from below tutorial,
>> http://trac.osgeo.org/mapserver/wiki/RenderingOsmData
>> But it use postgis and there need conversion.
> 
> Hi Abul,
> 
> No mapserver can not read the .osm file directly and it probably does not make sense to even try to do that as the .osm is not designed for for fast spatial access. If you want to be able to render the maps quickly you need to read the .osm file and extract the information and attributes into postgis tables or shapefiles or something that is organized for fast access.
> 
> postgresql and postgis install very easily on windows or linux and if you follow the steps outlined below it should just work.
> 
> -Steve W

In fact, if you read up on the osm site, they don't use it themselves to display the maps, but import it into postgis. 

There is an application to convert planet.osm data to pgsql - you might have to compile it yourself. (osm2pgsql)

http://wiki.openstreetmap.org/wiki/Osm2pgsql

cheers

Ben




-- 

Ben Madin
REMOTE INFORMATION

t : +61 8 9192 5455
f : +61 8 9192 5535
m : 0448 887 220
Broome   WA   6725

ben at remoteinformation.com.au



							Out here, it pays to know...




More information about the mapserver-users mailing list