I am trying to create a rotated rectangle in lat/lon coordinates.
Basically, I have the coordinates of the center and rotation angle around the center.
Is it possible to do using, shapely or gdal, or something else?
affine transformationgdalgeometrypythonshapely
I am trying to create a rotated rectangle in lat/lon coordinates.
Basically, I have the coordinates of the center and rotation angle around the center.
Is it possible to do using, shapely or gdal, or something else?
Best Answer
Shapely's
affinity
module supports affine transformations on any geometry, for example: