Pixel to Degrees Conversion

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
supersoup
Forum Newbie
Posts: 5
Joined: Sun Oct 18, 2009 1:52 pm

Pixel to Degrees Conversion

Post 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.
 )      {
        
 
        }
Mark Baker
Forum Regular
Posts: 710
Joined: Thu Oct 30, 2008 6:24 pm

Re: Pixel to Degrees Conversion

Post by Mark Baker »

So what is the relationship between pixels and degrees lat/long?
Post Reply