momepy.
FormFactor
Calculates form factor of each object in given GeoDataFrame.
Adapted from [BSN12].
GeoDataFrame containing objects
the name of the dataframe column, np.array, or pd.Series where is stored volume value. (To calculate volume you can use momepy.volume())
np.array
pd.Series
momepy.volume()
the name of the dataframe column, np.array, or pd.Series where is stored area value. If set to None, function will calculate areas during the process without saving them separately.
None
Examples
>>> buildings_df['formfactor'] = momepy.FormFactor(buildings_df, 'volume').series >>> buildings_df.formfactor[0] 1.9385988170288635
>>> buildings_df['formfactor'] = momepy.FormFactor(buildings_df, momepy.volume(buildings_df, 'height').volume).series >>> buildings_df.formfactor[0] 1.9385988170288635
Series containing resulting values
original GeoDataFrame
Series containing used volume values
Series containing used area values
__init__
Initialize self. See help(type(self)) for accurate signature.
Methods
__init__(gdf, volumes[, areas])
Initialize self.