Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

geopandas clipping

world = geopandas.read_file(geopandas.datasets.get_path('naturalearth_lowres'))
south_america = world[world['continent'] == "South America"]
capitals = geopandas.read_file(geopandas.datasets.get_path('naturalearth_cities'))

sa_capitals = geopandas.clip(capitals, south_america)
Source by geopandas.org #
 
PREVIOUS NEXT
Tagged: #geopandas #clipping
ADD COMMENT
Topic
Name
2+5 =