Create a gist now

Instantly share code, notes, and snippets.

@krk /coordinates.cs Secret
Created Jun 27, 2017

What would you like to do?
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