Skip to main content
Return a GeoSeries with rotated geometries. See http://shapely.readthedocs.io/en/latest/manual.html#shapely.affinity.rotate for details.

Signature

Parameters

float
required
The angle of rotation can be specified in either degrees (default) or radians by setting use_radians=True. Positive angles are counter-clockwise and negative are clockwise rotations.
string, Point, or tuple (x, y)
default:"'center'"
The point of origin can be a keyword ‘center’ for the bounding box center (default), ‘centroid’ for the geometry’s centroid, a Point object or a coordinate tuple (x, y).
boolean
default:"False"
Whether to interpret the angle of rotation as degrees or radians

Examples