cityImage.min_distance_geometry_gdf#

cityImage.min_distance_geometry_gdf(geometry, gdf)[source]#

Given a geometry and a GeoDataFrame, it returns the minimum distance between the geometry and the GeoDataFrame. It provides also the index of the closest geometry in the GeoDataFrame.

Parameters:
  • geometry (Point, LineString or Polygon) –

  • gdf (GeoDataFrame) –

  • Returns

  • ----------

  • distance (tuple) – The closest distance from the geometry, and the index of the closest geometry in the gdf.

  • index (tuple) – The closest distance from the geometry, and the index of the closest geometry in the gdf.