This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?Php | |
//Original version: http://www.uwgb.edu/dutchs/usefuldata/ConvertUTMNoOZ.HTM | |
function UTMtoGeog($Easting,$Northing,$UtmZone,$SouthofEquator=false) //Convert UTM Coordinates to Geographic | |
{ | |
//Declarations | |
//Symbols as used in USGS PP 1395: Map Projections - A Working Manual | |
$k0 = 0.9996;//scale on central meridian | |
$a = 6378137.0;//equatorial radius, meters. | |
$f = 1/298.2572236;//polar flattening. | |
$b = $a*(1-$f);//polar axis. |