Advertisement
Guest User

Untitled

a guest
Dec 14th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. import shapefile
  2.  
  3. sh = shapefile.Reader("countries/ne_10m_admin_0_countries.shp")
  4. country_index = -1
  5.  
  6. for i in range(len(sh)):
  7. if sh.record(i).as_dict()['NAME_EN'] == "Bolivia":
  8. country_index = i
  9. break
  10.  
  11. shape = sh.shape(country_index)
  12. for point in shape.points:
  13. print(point[0], point[1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement