import geopandas as gpd def get_existing_trees(shp_input): df = gpd.read_file(shp_input) coords = [(p.x, p.y) for p in df.geometry] return coords