Skip to main content
Return a GeoSeries with skewed geometries. Each geometry is sheared independently along its x and y dimensions. Negative angles shear in the opposite direction.

Signature

Parameters

float
default:"0.0"
Shear angle for the x dimension, in degrees by default.
float
default:"0.0"
Shear angle for the y dimension, in degrees by default.
(center, centroid)
default:"'center'"
The skew 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. Skew is a 2D operation, so an explicit origin’s z coordinate is ignored.
bool
default:"False"
If True, interpret xs and ys as radians instead of degrees.

Returns

GeoSeries
The skewed geometries.
Existing z coordinates are preserved. Results for mixed 2D/3D GeometryCollection objects, M or ZM ordinates, NaN z coordinates, non-finite angles or origin coordinates, and angles near 90 degrees 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