[OSM-talk] How to convert OSM into GML - examples needed
yuri bay
ksh_wong at msn.com
Tue Feb 6 09:40:11 GMT 2007
Hi Nick,
Many thanks for your reply. I would like to learn more on the process of
converting OSM into Shapefile. I have also posted another enquiry about
Artem's reply on using osm2pgsql.c. basically I am win2k user with winGRASS
installed and I wanted to put UK streetmap into GRASS. I am newbie to GRASS
and not a Linux user. So I have not got a clue how to do the conversion at
all. For instance where do I put the script osm2shp? in a C compiler? Do I
need MinGW? What is the command involved? Please help, your advice is much
appreciated.
Best Regards
Casey
>From: Nick Whitelegg <Nick.Whitelegg at solent.ac.uk>
>To: talk at openstreetmap.org
>Subject: Re: [OSM-talk] How to convert OSM into GML - examples needed
>Date: Mon, 5 Feb 2007 18:37:18 +0000
>
> >You can load planet.osm into postgresql/postgis with osm2pgsql.c
> >Then read direclty into Grass or export to GML/KML/Shapefiles whatever
>using
> >PostGIS native functionality or ogr2ogr
>
>You can also go straight from OSM to shapefile using osm2shp (in
>subversion) - this generates one shapefile for nodes, one for ways and
>with the latest version (not in SVN yet) one for areas. Then I'd imagine
>you could easily convert the shapefile to GML using the ogr tools. You may
>encounter problems if your ways are not ordered correctly, however -
>though you can use the "wayclean" utility in SVN to correct some of the
>problems.
>
>Nick
>
>
>
>
>_______________________________________________
>talk mailing list
>talk at openstreetmap.org
>http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
_________________________________________________________________
MSN Hotmail is evolving check out the new Windows Live Mail
http://ideas.live.com
More information about the talk
mailing list