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
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.