GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Projections for Dummies  XML
Forum Index -> General
Author Message
eagereyes



Joined: 12/12/2006 17:42:56
Messages: 2
Location: Charlotte, NC
Offline

This may be slightly off topic, but I am sure somebody here will be able to point me in the right direction.

I am drawing a map of sorts (it's called the ZIPScribble Map, simply connects ZIP codes in ascending order), and have absolutely no clue how these projections work. I am using the NetCDF classes to do the projection, but the images I get do not look right.

Here is what I get when I do a UTM projection for the US, with equal scaling of the values in both directions:


This is a bit of surprise to me, because I thought that the projection would take care of all the transformations, and give me coordinates that I could just use on the screen directly. But anyway, I added a correction factor of tan(centerLatitude) to compress the image a bit, and this is what I got:



Better, but still does not quite look like this one from Wikipedia:



What is more, my correction messes up some countries like Austria (which looks about twice as high as it should be), while others (like France) look good.

I know that there is no "correct" projection, but what would be considered the common one? How do you correct for the vertical scale, and why is that even necessary?

Many thanks and a Happy New Year!

Robert

EagerEyes.org
[WWW]
marc



Joined: 08/12/2005 07:39:47
Messages: 4416
Offline

Hi Robert

I think the Mercator projection can be considered a common one. GoogleMaps for instance is using it.
Geonames too is using the Mercator projection. Austria will look like this :



and the US :



Note the straight line for the US-Canadian Border.

All countries and continents in Mercator projection are here : http://www.geonames.org/country-borders.html

a Happy New Year.

Marc

[WWW]
eagereyes



Joined: 12/12/2006 17:42:56
Messages: 2
Location: Charlotte, NC
Offline

Thanks, Marc! I apparently screwed around too much with my "corrections", now that I am back to the Mercator and removed all the other stuff, it suddenly works perfectly.

EagerEyes.org
[WWW]
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team