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
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.