...

/

Constructive Methods: Centroid, Buffer, and Simplify

Constructive Methods: Centroid, Buffer, and Simplify

Learn about GeoPandas methods that help create new geometries.

We'll cover the following...

widget

In this lesson, we’ll take a closer look at the following common constructive methods in GeoPandas and explore how they work:

  • Centroid

  • Buffer

  • Simplify

Centroid

This method calculates the centroid of a geometry. The centroid is the center point of the geometry. The output is a new point geometry that represents the centroid. To illustrate, we can use the US States dataset and plot its centroids. In the following code snippet, we open the US States dataset (line 5 ...

Access this course and 1400+ top-rated courses and projects.