Skip to main content
Return a GeoSeries with scaled geometries. Each geometry is scaled independently around its origin. The default origin is the center of the geometry’s bounding box.

Signature

Parameters

float
default:"1.0"
Scaling factor for the x dimension.
float
default:"1.0"
Scaling factor for the y dimension.
float
default:"1.0"
Scaling factor for the z dimension.
(center, centroid)
default:"'center'"
The scaling origin. "center" uses each geometry’s bounding-box center and "centroid" uses each geometry’s centroid. A 2D or 3D Shapely Point or coordinate tuple may also be supplied. The z origin is 0 for keyword and 2D origins.

Returns

GeoSeries
The scaled geometries.
Results for mixed 2D/3D GeometryCollection objects, M or ZM ordinates, NaN Z coordinates, non-finite factors, and non-finite origin 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