Affine Transformations

Get introduced to affine transformations in GeoPandas.

We'll cover the following

Introduction

Affine transformations play a fundamental role in GIS by enabling the manipulation of spatial data and allowing for the adjustment and alignment of spatial data within the GIS domain. In general, an affine transformation is a combination of linear transformations (such as rotation, scaling, and shearing) and translation (shifting).

GeoPandas exposes the following transformations implemented in the module shapely.affinity to transform its geometries:

  • Rotate

  • Scale

  • Translation

  • Skew

The effect of each of these transformations applied to a square can be visualized in the figure below.

Get hands-on with 1200+ tech skills courses.