import_existing_trees.py 195 Bytes
Newer Older
1
2
3
import geopandas as gpd

def get_existing_trees(shp_input):
4
    print(f"Importing {shp_input}")
5
6
7
    df = gpd.read_file(shp_input)
    coords = [(p.x, p.y) for p in df.geometry]
    return coords