Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import shapefile
- sh = shapefile.Reader("countries/ne_10m_admin_0_countries.shp")
- country_index = -1
- for i in range(len(sh)):
- if sh.record(i).as_dict()['NAME_EN'] == "Bolivia":
- country_index = i
- break
- shape = sh.shape(country_index)
- for point in shape.points:
- print(point[0], point[1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement