link#
link.py
Entity linking: create ID linkages between two spatial entity datasets.
Functions#
|
Create ID linkage (n-to-m) between two entities and save |
Module Contents#
- openplaces.geo.link.create_entity_link(entity1_recipe_id, entity2_recipe_id, save=True, **kwargs)#
Create ID linkage (n-to-m) between two entities and save
- Parameters:
entity1_recipe_id (str) – Recipe ID of first entity
entity2_recipe_id (str) – Recipe ID of second entity
save (bool) – If True, save output as a file, in the folder of entity1: {entity1_recipe_id}_{entity2_recipe_id}.parquet
kwargs (dict) – Are passed to overlay_polygons or overlay_polygons_with_duckdb. When
how='intersection'(default),iou=False(default), andgeom=False(default), the DuckDB implementation is used because it is faster for Path inputs in that configuration; otherwise geopandas is used.