In [1]:
import fiona
#load the file
c = fiona.open('../../data/data_upload/AM.1.a.Timespentwalkingbiking/SanFranciscoWalkBike.shp','r')
In [2]:
#iterate over the file
for geog in list(c):
#get the geometry = ie, the polygon or point
geometry = geog['geometry']
#get the properties DATA
propeties = geog['properties']
keys = propeties.keys()
f
In [4]:
# Create the table, and such
from utils.db_connection import *
In [ ]: