1. Learn
  2. /
  3. Courses
  4. /
  5. Working with Geospatial Data in Python

Exercise

Overlay of two polygon layers

Going back to the land use and districts datasets, we will now combine both datasets in an overlay operation. Create a new GeoDataFrame consisting of the intersection of the land use polygons with each of the districts, but make sure to bring the attribute data from both source layers.

GeoPandas is already imported.

Instructions

100 XP
  • Print the first rows of both datasets (land_use and districts).
  • Create a new GeoDataFrame from the intersections of land_use and districts. Assign the result to a variable combined.
  • Print the first rows the resulting GeoDataFrame (combined).