Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix valhalla_build_extract #3864

Merged
merged 3 commits into from
Dec 15, 2022
Merged

fix valhalla_build_extract #3864

merged 3 commits into from
Dec 15, 2022

Conversation

nilsnolde
Copy link
Member

Should've done a full end to end test. Just wanted to use it and there was a bug, where it tried to derive the tile ID & level from the full path, rather than the relative tile path.

@@ -143,15 +147,16 @@ def get_tiles_with_geojson(all_tile_paths: List[Path], geojson_dir: Path) -> Set
tile_paths_ = set()
geojson_polys = get_outer_rings(geojson_dir)
for tile_path in all_tile_paths:
tile_bbox = box(*get_tile_bbox(tile_path))
tile_path_id = str(tile_path.relative_to(tiles_dir_))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the important line: just forward the relative tile path to the get_tile_bbox function

kevinkreiser
kevinkreiser previously approved these changes Dec 15, 2022
@nilsnolde
Copy link
Member Author

Can you re-approve @kevinkreiser ? Thx.

@nilsnolde nilsnolde merged commit 7d71ef4 into master Dec 15, 2022
@nilsnolde nilsnolde deleted the nn-fix-extract branch December 15, 2022 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants