Search code examples
c#gpsmapsgis

Convert gps coordinate to EPSG:32640


I need to convert gps coordinates to EPSG:32640 in c#. Are there some formulas for this?

Thanx


Solution

  • Just FYI, that EPSG you give is WGS84 (UTM 40N). Most GPS data is in WGS84 unless otherwise specified, so you don't need to transform the datum (which mathemtically extremely complicated), you just need to repoject. Is there a reason you need a formula for this, or could you use an existing library? This question discusses C# spatial libraries, most of which can do this for you.

    As for the formula, take a look at this page which discusses converting latitude/longitude to UMT coordinates: http://www.uwgb.edu/dutchs/usefuldata/utmformulas.htm