You are not logged in.

#1 2008-02-06 08:18:21

lakeyboy
Member
From: Melbourne, Australia
Registered: 2008-02-06
Posts: 9

Viewing OpenStreetMap data in Google Earth.

Hey mappers.

I have had a look over at the Google Earth page on the OSM wiki: http://wiki.openstreetmap.org/index.php … ogle_Earth and have looked at the files in the subversion link on the page but I'm still confused as how to get your data in Google Earth. If someone can provide a simple step by step process to do this without any unexplained jargon, I would really appreciate it. The Google roads layer in Google Earth is not the most accurate, so I would like to be able to view OSM data instead.

Thanks in advance.

Last edited by lakeyboy (2008-02-06 08:21:03)

Offline

#2 2008-02-06 19:22:21

singastreet
Member
Registered: 2008-01-05
Posts: 9

Re: Viewing OpenStreetMap data in Google Earth.

Hello

You may want to consider an alternative approach as follows:

1) Use JOSM to export your data to GPX format (under the "File" command, select "Export to GPX...")

2) Use Google Earth to open the saved GPX file.

Not all OSM data will appear (such as name of railway station), but at least the roads, coastline, water will be shown.

Offline

#3 2008-02-07 05:33:06

lakeyboy
Member
From: Melbourne, Australia
Registered: 2008-02-06
Posts: 9

Re: Viewing OpenStreetMap data in Google Earth.

Thanks for that. I got it to work that way. It's a start but is there a simpler way to say how to do it the OSM Wiki way so the different colours show up and the parking etc. Thanks.

Offline

#4 2008-02-07 13:55:54

emj
Member
From: .se (59.3N17.99E) 0735969076
Registered: 2006-06-18
Posts: 949

Re: Viewing OpenStreetMap data in Google Earth.

Are you confused how to convert the .osm data into Google Earth .kmz format, or how to import that .kmz into Google Earth? Because that script isn't supposed to work anymore.

From  the README in the subversion:

IMPORTANT!
 
  OSMGoogleEarth has not been updated to use the 0.5 API. It is recommended
  that you use the Export package of the newer Ruby OSM Library which also
  does KML export and is faster and more flexible. See
http://osmlib.rubyforge.org/osmlib-export/

There is supposed to be a template called "This is for an old version of the API". If anyone know where you can find that please tell me.

Last edited by emj (2008-02-07 13:57:38)

Offline

#5 2008-02-07 21:01:41

thewinch
Member
Registered: 2007-05-06
Posts: 6

Re: Viewing OpenStreetMap data in Google Earth.

emj wrote:

There is supposed to be a template called "This is for an old version of the API". If anyone know where you can find that please tell me.

I added the template to the wiki page.

Offline

#6 2008-02-08 06:25:08

lakeyboy
Member
From: Melbourne, Australia
Registered: 2008-02-06
Posts: 9

Re: Viewing OpenStreetMap data in Google Earth.

Hang on, let me get this straight. First off, yes I am confused about how to convert .osm to .kml so I can view it in Google Earth but it is sounding like the file(s) are now out of date due to updates to the OSM protocol. I don't know anything about how the protocol works or what adjustments need to be made for the process to work.

I realise it says go to this website and find this and that file and then do this but I'm not sure what any of that is. I have no idea what steps to take to do the conversion. This is the first time I have wanted to go into the back end of OSM and do stuff with it.

Offline

#7 2008-02-08 15:30:20

emj
Member
From: .se (59.3N17.99E) 0735969076
Registered: 2006-06-18
Posts: 949

Re: Viewing OpenStreetMap data in Google Earth.

Argh.. Sorry, I could have written that in a better way, my manners have never been good.. ;-) But I wans't sure if you wanted help with the exporting or importing.

To be able to use this you will need Ruby and Ruby gems, I don't know how hard that is too install for you. When you have those things and all the dependencies, it should be very easy to export to KML. If you think this is too much for you then you will have to ask someone to export it for you, or to setup a server that can do on the fly exporting of contents.

If there is no one here who wants to set it up for you then try the mailing lists, and http://trac.openstreetmap.org/.


Sorry  I can't help you.

Last edited by emj (2008-02-08 15:34:04)

Offline

Board footer

Powered by FluxBB