[OSM-talk] Regarding OSM to GML

Christopher Schmidt crschmidt at metacarta.com
Fri Feb 2 16:25:44 GMT 2007


On Fri, Feb 02, 2007 at 04:15:47PM +0000, yuri bay wrote:
> Hi,
> 
> I am looking for some information on how to use the osm2gml python script 
> (http://london.freemap.in/osm2gml_simple.py.txt) to convert OSM into GML.  I 
> am familiar with python but is very new to OSM.  I have downloaded the OSM 
> data set Planet-070131.osm, but not sure what to do with it regarding 
> converting it to GML.  I would be grateful if someone could explain a bit 
> the steps involved on how to prepare the OSM data to be converted by the 
> script.  Any advice is much appreciated.

I wouldn't recommend using this script. It was writtne long ago, and is
not designed to work with the current, much larger, dataset. I'd
recommend using the osm2postgis code, combined with ogr2ogr to convert
the dataset afterwards. 

Regards,
-- 
Christopher Schmidt
MetaCarta




More information about the talk mailing list