Advertisement
Guest User

Untitled

a guest
Feb 24th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. import geopandas as gpd
  2. def union(fn_A, fn_B, output):
  3. shpA =gpd.read_file(fn_A)
  4. shpB =gpd.read_file(fn_B)
  5. union = gpd.overlay(shpA, shpB, how='union')
  6. union.to_file(driver = 'ESRI Shapefile', filename= output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement