Friday, 24 June 2011

OpenStreetMap for Rhino


Using rhino.python, a script has been written, that imports a static map from OpenStreetMap as background bitmap to Rhino, based on an address and zoom level entered by the user. In a first step, the geographical location of the address is identified using the Nominatim API. The location coordinates are used as input parameter for the MapOf service. Finally, the map image obtained from the web service is placed as background bitmap, in the right scale according to the zoom level.


Additionally, an appropriate EarthAnchorPoint is set based on the geographical location and scale. This allows for the export of geometry in relation to the imported static map to Google Earth using the KML format. The units of the Rhino file are automatically changed to meters, in order to obtain the right scale of the map.


Download the script here.

10 comments:

austinmitchell said...

Hello, i am getting this error when i try to search for a locations within rhino

"http://osm-tah-cache.firefishy.com produced an error"
what might i be doing wrong?

Lorenz Lachauer said...

Sometimes the tiles-server is not responding. Just try it later. If it is still not working, let me know.

Anonymous said...

Looks interesting, I added you on
http://wiki.openstreetmap.org/wiki/3D_Development
Feel free to join the 3D team :)

Benjamin Golder said...

really nice work!

saimon_conti said...

I think would be cool, be able to import directly the vector map (eps/or pdf) into Rhino from openstreemap.

Lorenz Lachauer said...

I am already working on it ... :-)

saimon_conti said...

great!

Apoorv said...

Unable to download the file.

Unknown said...

Hello, Thank you for your tutorial.

Can you please upload the script to Dropbox, Google Drive or others? The attachment link was expired.

Thank you.

Amreen Scanlon said...

I would strongly love to recommend the services of the best team of dark web hackers. They are professional and very discreet in carrying out their jobs, they have the best customer service agents and satisfaction at heart. If you have any services you wish to contact them for, go on (contact@wizardcharlesgrouphackers.com) WhatsApp +1 (519) 398-1460, They help track and monitor your cheating partner's phone without his idea, clear or erase criminal records as well as repair a bad credit score, all social media hacks, Recovery Funds / Cryptocurrency / Binary / Forex / Recovery of Stolen Bitcoin and many others. website : https://wizardcharlesgrouphackers.com/.n/