Skip to main content
Return a GeoSeries with transformed geometries. The coefficient matrix is provided as an ordered sequence with 6 or 12 items for 2D or 3D transformations, respectively. For a 2D affine transformation, matrix is [a, b, d, e, xoff, yoff] and the transformed coordinates are:
For a 3D affine transformation, matrix is [a, b, c, d, e, f, g, h, i, xoff, yoff, zoff] and the transformed coordinates are:

Signature

Parameters

sequence of float
required
Six or twelve coefficients for a 2D or 3D affine transformation.

Returns

GeoSeries
The transformed geometries.
Results for mixed 2D/3D GeometryCollection objects, M or ZM ordinates, and NaN Z coordinates may differ from GeoPandas because Sedona uses JTS while GeoPandas uses Shapely. This method applies Sedona’s distributed semantics and does not materialize geometries locally to emulate Shapely.

Examples