Page 1 of 1

Pixel to Degrees Conversion

Posted: Wed Oct 21, 2009 2:17 pm
by supersoup
I am working on a map program and I am trying to convert pixels to latitude/longitude and back.

I have a method started that takes in the location and data parameters:

Code: Select all

function mix2Deg
 (
   $mix,           // location to convert
   $mapData     // Data from $MAP_DATA for this map.
 )      {
        
 
        }

Code: Select all

function deg2Mix
 (
   $deg,           // location to convert
   $mapData     // Data from $MAP_DATA for this map.
 )      {
        
 
        }

Re: Pixel to Degrees Conversion

Posted: Wed Oct 21, 2009 3:17 pm
by Mark Baker
So what is the relationship between pixels and degrees lat/long?