A survey crew writes its positions as degrees, minutes and seconds with a letter for the hemisphere. The GIS wants signed decimal degrees. In this lab you convert them, measure a great-circle distance, and find the UTM zone of a point.
The idea. , with a minus sign for S and W. The haversine formula gives the distance on a sphere of radius . The UTM zone number is .
Your tasks.
dms_to_decimal, return the signed decimal degrees for a degrees, minutes, seconds and hemisphere letter.distance_km, return the great-circle distance between two points given in decimal degrees.utm_zone, return the UTM zone number of a longitude in decimal degrees.Run your code once to unlock the worked solution.
Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…