Skip to content

Add boundaries for city ground blocks#731

Merged
louis-e merged 7 commits intomainfrom
add-boundaries
Jan 31, 2026
Merged

Add boundaries for city ground blocks#731
louis-e merged 7 commits intomainfrom
add-boundaries

Conversation

@louis-e
Copy link
Owner

@louis-e louis-e commented Jan 31, 2026

No description provided.

Copilot AI review requested due to automatic review settings January 31, 2026 17:56
@github-actions
Copy link

github-actions bot commented Jan 31, 2026

⏱️ Benchmark run finished in 0m 25s
🧠 Peak memory usage: 975 MB

📈 Compared against baseline: 30s
🧮 Delta: -5s
🔢 Commit: 516b9ec

⚠️ This PR worsens generation time.

📅 Last benchmark: 2026-01-31 23:06:03 UTC

You can retrigger the benchmark by commenting retrigger-benchmark.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for processing boundary elements to set ground blocks for urban areas. Boundary elements representing cities, boroughs, and other urban zones are now fetched from OpenStreetMap and processed to fill empty ground areas with smooth stone blocks.

Changes:

  • Added boundary data fetching from Overpass API
  • Created new boundaries module to handle urban boundary detection and ground block generation
  • Implemented deferred processing for boundaries to ensure they only fill empty areas without overwriting landuse/leisure/natural ground blocks
  • Expanded PRIORITY_ORDER to include landuse, leisure, natural, and amenity tags

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
src/world_editor/java.rs Minor comment punctuation changes (dash to comma)
src/retrieve_data.rs Added nwr["boundary"] to Overpass API query to fetch boundary elements
src/osm_parser.rs Expanded PRIORITY_ORDER from 6 to 10 elements, adding landuse, leisure, natural, and amenity
src/floodfill_cache.rs Added boundary tag to flood fill check for area computation
src/element_processing/mod.rs Declared new boundaries module
src/element_processing/boundaries.rs New module implementing urban boundary detection and ground block generation
src/data_processing.rs Added deferred processing logic for boundary elements to be processed after all other elements

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@louis-e
Copy link
Owner Author

louis-e commented Jan 31, 2026

retrigger-benchmark

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@louis-e louis-e merged commit 674a2d9 into main Jan 31, 2026
2 checks passed
@louis-e louis-e deleted the add-boundaries branch January 31, 2026 23:24
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.

2 participants