eogrow.utils.vector

Module containing utilities for working with vector data

eogrow.utils.vector.concat_gdf(dataframe_list, reproject_crs=None)[source]

Concatenates together multiple GeoDataFrames, all in the same CRS

There exists pandas.concat but no geopandas.concat. Therefore, this function implements it.

Parameters:
  • dataframe_list (list[geopandas.geodataframe.GeoDataFrame]) – A list of GeoDataFrames to be concatenated together

  • reproject_crs (CRS | None) – A CRS in which dataframes should be reprojected before being joined

Returns:

A joined GeoDataFrame

Return type:

GeoDataFrame

eogrow.utils.vector.count_points(geometry)[source]

Counts a number of points for a given geometry, both from exterior and interiors

Parameters:

geometry (Polygon | MultiPolygon) –

Return type:

int