algorithmic modeling for Rhino
I'm trying to convert Rhino geometry into KML for use in Google Earth (see image). Does anyone know about how to flatten the coordinate system used in Earth into 2D? I've wound up on this page, but stopped to come ask the forum:
http://en.wikipedia.org/wiki/Universal_Transverse_Mercator
Tags:
Hi Chris,
The question is how accurate do you need to be? Lat long to UTM conversion is reasonably accurate but going UTM to Lat long gets worse results.
I've done quite a bit of work getting results from this recently and if you get nothing more helpful by Monday morning, when I'm back at work, I'll send you something.
Danny
Send it over!!!
Any reasonable approach will work for the moment. If more accuracy is needed then it can be pursued later.
Thanks!!!
Hey Chris,
Cool stuff, we are working on some similar stuff. I found this from David on the newsgroup...not sure if it will be useful. Check it out.
http://news2.mcneel.com/scripts/dnewsweb.exe?cmd=article&group=...
Best,
Luis
Freaky, I have no recollection of writing that at all. And yet it was only two years ago.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
This is an extract from a definition i did some time ago to import Google Maps data into Grasshopper:
Dim x,y,la,fi As Double
la = xlApp.Worksheets(i).Cells(1, 3).Value * math.PI / 180
fi = xlApp.Worksheets(i).Cells(1, 2).Value * math.PI / 180
x = la
y = math.Log(math.abs((1 / math.cos(fi)) + math.Tan(fi)))
ptl.add(New Point3d(x * s, y * s, 0))
It read longitude/latitude values from a spreadsheet and projected them in 2d. The "s" variable is just a scale factor. It was used just for display purposes, so it looked good enough for that (it matched an underlying pictureframe with a screenshot of google maps) but i don't really know how accurate it is.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by