ThinkGeo.com    |     Documentation    |     Premium Support

Convert coordinates

Hello 


Do you have a method to convert coordonates from a format to another? For example I need to convert "43°30'36" N 04°41'36" W " to the corresponding latitude, longitude. Then I 'd like to create a  PointShape which recognize only a latitude-longitude format.


 


Sebastien



Sebastien, 
  
 There is a method in DecimalDegreesHelper to convert from DecimalMinutesSeconds to a decimal degree. You can also do the other way with the methods in the static class DecimalDegreesHelper, please have a look. 
 
double degrees = DecimalDegreesHelper.GetDecimalDegreeFromDegreesMinutesSeconds(“75º 21’ 28’’”);
 
 Thanks, 
  
 Ben