Skip to content

Instantly share code, notes, and snippets.

@krk
Created June 27, 2017 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krk/fab5766d782f06c4ade69720ba811cde to your computer and use it in GitHub Desktop.
Save krk/fab5766d782f06c4ade69720ba811cde to your computer and use it in GitHub Desktop.
DecimalDegreeCoordinate dd = new DecimalDegreeCoordinate(38.4, 28.1);
UTMCoordinate utm = new UTMCoordinate("35T", 663890, 4568130);
DegreeMinuteSecondCoordinate dmsSonuc = new DegreeMinuteSecondCoordinate();
TypeConverter corcon = TypeDescriptor.GetConverter(typeof(DegreeMinuteSecondCoordinate));
dmsSonuc = (DegreeMinuteSecondCoordinate)corcon.ConvertFrom((dd + utm) / 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment