Grasshopper

algorithmic modeling for Rhino

Plot coordinates of boroughs of london doesnt seem to be right

Hi there,

I am plotting on a series of latitude/longditude points based on the boroughs of London. I have got a map of London and tried to scale it to the correct size. My points seem wrongly plotted in the y direction, almost as if they are squashed. In the x direction it all seems fine.  Is this to do with the curvature of the earth affecting how the points are plotted against a flat map?

Any help at all is appreciated and needed quite quickly! Argh!

Thanks!!!

George

Views: 660

Replies to This Discussion

We're going to need to see some data and algorithms. I don't know what's going wrong until I can see what's going on.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Sorry. It is a simple xyz plot of coordinates for each borough of london. The plotted data is in the right place but when compared to a 2d map of london it is way more squashed than it should be. It cant be the map im using as ive tried lots of different ones and that is just the shape of london... If i plot the same coordinates in google maps it does it correctly but not here...

Thanks!

Well yes, lat-lon coordinates do contract as you move away from the equator. By the time you reach the poles, the contraction is infinite, which is why the poles are considered to be singularities in a lat-lon mapping. There is no way to project a shape that exists on a sphere onto a 2D plane without some deformation. There's two approaches I see that could make sense:

  1. Reconstruct your geometry in 3D space, i.e. on a sphere. Then project it onto a plane that fits the point-set well.
  2. Add an adjustment scaling factor for the latitude coordinates that takes into account the shortening that happens at your average latitude.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Ah, a third one. You could also subtract the average latitude from all your latitudes, effectively placing London on the equator where the deformation is smallest.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service