Skip to content

Remove boundary relation support#751

Merged
louis-e merged 2 commits intomainfrom
remove-boundary-relation-support
Feb 14, 2026
Merged

Remove boundary relation support#751
louis-e merged 2 commits intomainfrom
remove-boundary-relation-support

Conversation

@louis-e
Copy link
Owner

@louis-e louis-e commented Feb 14, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 14, 2026 16:02
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 removes “boundary” element/relation handling from the Overpass fetch and OSM parsing pipeline, aligning the codebase with the goal of dropping boundary relation support.

Changes:

  • Removed boundary from the Overpass tag query.
  • Stopped parsing type=boundary relations and removed boundary-specific unclipped-way handling.
  • Updated UI/CLI text to reflect “city ground” behavior and clarified a Java-specific tooltip.

Reviewed changes

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

Show a summary per file
File Description
src/retrieve_data.rs Stops requesting nwr["boundary"] from Overpass.
src/osm_parser.rs Drops type=boundary relation processing and removes boundary-related unclipped-way logic.
src/floodfill_cache.rs Removes boundary-tagged ways from flood-fill eligibility.
src/args.rs Updates CLI help text to “city ground generation”.
src/gui/index.html Clarifies the save-path tooltip to specify Minecraft Java worlds.
Comments suppressed due to low confidence (1)

src/args.rs:63

  • The help text now describes “city ground generation”, but the flag/field name is still city_boundaries (CLI option will be --city-boundaries). That mismatch is confusing for CLI users; consider renaming the flag to something like --city-ground (and keeping --city-boundaries as an alias for backward compatibility), or explicitly note in the doc comment that --city-boundaries is a legacy name.
    /// Enable city ground generation (optional)
    /// When enabled, detects building clusters and places stone ground in urban areas.
    /// Isolated buildings in rural areas will keep grass around them.
    #[arg(long, default_value_t = true)]
    pub city_boundaries: bool,

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

@github-actions
Copy link

⏱️ Benchmark run finished in 0m 26s
🧠 Peak memory usage: 990 MB

📈 Compared against baseline: 30s
🧮 Delta: -4s
🔢 Commit: 5db5608

🟢 Generation time is unchanged.

📅 Last benchmark: 2026-02-14 16:05:33 UTC

You can retrigger the benchmark by commenting retrigger-benchmark.

@louis-e louis-e merged commit 6f5b122 into main Feb 14, 2026
2 checks passed
@louis-e louis-e deleted the remove-boundary-relation-support branch February 14, 2026 16:25
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