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.

9 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!

SAIMONCONTI 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 ... :-)

SAIMONCONTI said...

great!

Apoorv said...

Unable to download the file.

Peng Yu 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.

Related Posts Plugin for WordPress, Blogger...