LatLongToUTM.frink

View or download LatLongToUTM.frink in plain text format


// Simple wrapper program to convert Lat/Long coordinates to UTM.
use CoordinateConversions.frink

while (true)
{
   lat = eval[input["Enter latitude in degrees: "]] degrees 
   long = eval[input["Enter longitude in degrees (west is negative): "]] degrees

   if (lat conforms degree and long conforms degree)
   {
      println["Latitude:  " + (lat->degrees)]
      println["Longitude: " + (long->degrees)]
      [easting, northing] = LatLongToUTM[lat, long, Datum.NAD83]
      println["Easting:  " + format[easting,1,3]]
      println["Northing: " + format[northing,1,3]]
      println[]
   }
}



View or download LatLongToUTM.frink in plain text format


This is a program written in the programming language Frink.
For more information, view the Frink Documentation or see More Sample Frink Programs.

Alan Eliasen was born 17646 days, 9 hours, 36 minutes ago.