gis - How to use python to turn a .dbf into a shapefile -


i have been scouring internet trying find pythonic (sp?!) way process data..

everyday recieve load of data in .dbf format (hopefully) - need save data shapefile.

does have links or suggestions process?

to append file's creation_date name, need obtain creation date os.stat() , rename file os.rename(). can format date string date.strftime().

import datetime, os  filename = 'original.ext'  fileinfo = os.stat(filename) creation_date = datetime.date.fromtimestamp(fileinfo.st_ctime)  os.rename(filename, filename + '-' + creation_date.strftime('%y-%m-%d')) 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -