cityImage.sum_at_centroid#

cityImage.sum_at_centroid(line_geometry, lines_gdf, column)[source]#

Given a LineString geometry, it sums the column values of all the features in a LineString GeoDataFrame intersecting the line. This function should be executed per row by means of the df.apply(lambda row : ..) function.

Parameters:
  • line_geometry (LineString) – A street segment geometry.

  • lines_gdf (LineString GeoDataFrame) – The GeoDataFrame.

  • column (string) – The name of the column.

Return type:

int