This commit is contained in:
Andras Schmelczer 2026-02-15 09:48:30 +00:00
parent 128b3191e7
commit 03445188ea
54 changed files with 596953 additions and 3577 deletions

View file

@ -16,7 +16,6 @@ from shapely import wkb
from shapely.geometry import MultiPolygon, Polygon
from tqdm import tqdm
from .pois import download_pbf
MIN_AREA_SQM = 5_000 # ~70m x 70m — skip pocket parks and small ponds
@ -103,12 +102,7 @@ def main():
)
args = parser.parse_args()
if args.pbf.exists():
pbf_file = args.pbf
print(f"Using existing PBF: {pbf_file}")
else:
download_pbf(args.pbf)
pbf_file = args.pbf
print("Extracting greenspace/water areas from PBF (two-pass area assembly)...")
with tqdm(
unit=" areas", unit_scale=True, desc="Processing", smoothing=0.05