cluster_orientation
Compute the orientation angle of a GeoDataFrame.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
gdf
|
GeoDataFrame
|
The GeoDataFrame containing the cluster data. |
required |
hull_type
|
str
|
The type of hull to compute. One of: "alpha_shape", "convex_hull", "ellipse". |
'alpha_shape'
|
normalize
|
bool
|
Whether to normalize the angle to be within [0, 90]. |
True
|
**kwargs
|
Additional keyword arguments for the hull computation
(e.g., |
{}
|
Raises:
Type | Description |
---|---|
ValueError
|
If an invalid hull type is provided. |
Returns:
Name | Type | Description |
---|---|---|
float |
float
|
The orientation angle of the cluster, in degrees. |