momepy.NeighboringStreetOrientationDeviation#

class momepy.NeighboringStreetOrientationDeviation(gdf)[source]#

Calculate the mean deviation of solar orientation of adjacent streets. The orientation of a street segment is represented by the orientation of the line connecting the first and last point of the segment.

\[\frac{1}{n}\sum_{i=1}^n dev_i=\frac{dev_1+dev_2+\cdots+dev_n}{n}\]
Parameters
gdfGeoDataFrame

A GeoDataFrame containing objects to analyse.

Examples

>>> streets_df['orient_dev'] = momepy.NeighboringStreetOrientationDeviation(
...     streets_df
... ).series
>>> streets_df['orient_dev'][6]
7.043096518688273
Attributes
seriesSeries

A Series containing resulting values.

gdfGeoDataFrame

The original GeoDataFrame.

orientationSeries

A Series containing used street orientation values.

__init__(gdf)[source]#

Methods

__init__(gdf)