Guest User

Untitled

a guest
Aug 20th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. polygon = loads(geom.ExportToWkt())
  2. boundary = polygon.exterior
  3. coords = np.zeros(( len(boundary.coords), 2))
  4. for i, the_coord in enumerate(boundary.coords):
  5. coords[i, 0], coords[i, 1] = basemap( the_coord[0], the_coord[1] )
  6. result.append(Polygon(coords, facecolor = 'none', edgecolor = edge_color, linewidth = linewidth))
Add Comment
Please, Sign In to add comment