major_axis_angle
major_axis_angle ¶
Compute the major axis angle of a geometry.
Note
The major axis is the (x,y) endpoints of the longest line that can be drawn through the object. Major axis angle is the angle of the major axis with respect to the x-axis. - Wirth
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
geom
|
BaseGeometry
|
Input shapely geometry object. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
float |
float
|
The angle of the major axis in degrees. |