We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Anyone seen an example of this before
Page Index Toggle Pages: 1
Anyone seen an example of this before? (Read 633 times)
Anyone seen an example of this before?
Feb 14th, 2008, 6:07am
 
Looking to see if i can find a starting point for a project of mine.

What i need to be able to do is map locations or points on a flat globe (meaning its flat, and not a globe Wink ).  

So has anyone seen something like this done in processing before?
Re: Anyone seen an example of this before?
Reply #1 - Feb 14th, 2008, 9:13am
 
You should give us more details... What is the scale ?
Re: Anyone seen an example of this before?
Reply #2 - Feb 14th, 2008, 10:17am
 
AS long as you're using a mercator projection, then latitude and longitude just become x and y coords on screen.
Re: Anyone seen an example of this before?
Reply #3 - Feb 14th, 2008, 6:05pm
 
Miller might be better, best is just a plain cylindrical equidistant projection (aka "equirectangular", aka "geographic projection") with image aspect 2:1, then you can just linearly scale lat/lon to height/width.  (Mercator is conformal, but not equidistant - lines of latitude are not equally spaced)  Tradeoff is the projection math is easy Smiley but the map itself looks sorta goofy Sad   (very distorted, south pole is huuuuuge, for example)
Re: Anyone seen an example of this before?
Reply #4 - Feb 20th, 2008, 5:30pm
 
Yeah i had thought about all that but was hoping that someone had some code samples i could review.

I am also a bit keen on presentation of the data (i will be plotting locations on the map).   As such i would rather prefer not to deal with a warped and mutilated antartica Wink
(but will do it if need be)

So no one has seen such a project in processing yet?

Re: Anyone seen an example of this before?
Reply #5 - Feb 20th, 2008, 5:32pm
 
Sorry missed a question..

Scale would be a simple desktop application or applet, so there is no need to be super accurate, the dataset im dealing with is geoip anyways so it wouldnt be super accurate to begin with.   Main goal is to visually plot distribution of IP's on a globe over time (think web logs).  

More of a pet project of mine as im trying to learn processing and figured if i could do this properly i should be in good shape.  (hence the desire to see some form of code samples)
Page Index Toggle Pages: 1