{ "cells": [ { "cell_type": "markdown", "source": [ "# Clip Vector Data with GeoPandas\n", "\n", "\n", "Learn how to clip geometries to the boundary of a polygon geometry\n", "using GeoPandas." ], "metadata": {} }, { "cell_type": "markdown", "source": [ "The example below shows you how to clip a set of vector geometries\n", "to the spatial extent / shape of another vector object. Both sets of geometries\n", "must be opened with GeoPandas as GeoDataFrames and be in the same Coordinate\n", "Reference System (CRS) for the `clip` function in GeoPandas to work.\n", "\n", "This example uses GeoPandas example data ``'naturalearth_cities'`` and\n", "``'naturalearth_lowres'``, alongside a custom rectangle geometry made with\n", "shapely and then turned into a GeoDataFrame.\n", "\n", "