Posts

Showing posts from May, 2018

Convert from Degrees Minutes Seconds to Decimal Degrees in Python

def latDD(x):   x = re.findall("\d+", x)   print x   D = int(x[0])   M = int(x[1])   S = float(x[2] + "." + x[3])   DD = D + float(M)/60 + float(S)/3600   return DD print latDD("40°36'34.81") Happy GISing! Lindsy Hales Bentley

How to Transfer Domains to a New Database

Domains.  AmIright? A domain is ESRI's fancy word for a drop-down or pick-list of choices.  Recently I was tasked with moving a dataset from one server to another.  This dataset used domains. I thought I'd follow the ESRI way by importing the data into the new database.  However, I discovered that this lost all of the domains. I didn't want to have to retype all of my domains, so I tried to copy and paste it. That shouldn't work, right?  I mean, that's not using any of ESRI's tools. Surprise, surprise - a simple copy and paste not only moved the data, but it also moved all of the domains into the database. Seems rather counter-intuitive, doesn't it?  I'm also happy at how simple this makes it. So, the next time you need to move data with domains, know that a simple copy and paste will do the trick. Happy GIS-ing! Lindsy Hales Bentley