Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- import pandas as pd
- import shapefile as shp
- import matplotlib.pyplot as plt
- import seaborn as sns
- sns.set(style="whitegrid", palette="pastel", color_codes=True)
- sns.mpl.rc("figure", figsize=(10,6))
- #opening the vector map
- shp_path = "C:\Users\Jack\.spyder-py3\District_Boundary.shp"
- #reading the shape file by using reader function of the shape lib
- sf = shp.Reader(shp_path)
- len(sf.shapes())
- File "C:UsersJackAnaconda3libsite-packagesshapefile.py", line 646, in load
- raise ShapefileException("Unable to open %s.dbf or %s.shp." % (shapeName, shapeName))
- ShapefileException: Unable to open C:UsersJack.spyder-py3District_Boundary.dbf or C:UsersJack.spyder-py3District_Boundary.shp.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement