def parse_latlong_string(coord): parts = coord.split() # Add error handling here if necessary d = int(parts[0]) m = int(parts[1]) s = float(parts[2]) hemisphere = parts[3] if hemisphere.upper() not in ('NSWE'): raise ValueError('Unknown hemishpere') dd = d + m/60 + s/3600 return dd
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.