More
This commit is contained in:
parent
128b3191e7
commit
03445188ea
54 changed files with 596953 additions and 3577 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue