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

[FEATURE] Snap roads and features to 90° #274

Open
mattdm opened this issue Jan 12, 2025 · 0 comments
Open

[FEATURE] Snap roads and features to 90° #274

mattdm opened this issue Jan 12, 2025 · 0 comments
Labels
feature Feature request

Comments

@mattdm
Copy link

mattdm commented Jan 12, 2025

Is your feature request related to a problem? Please describe.

This is related to #97, and probably also to #102. As the issue about map rotation notes, many cities are not aligned to the compass points. However, it's even messier than that -- many older cities have sections with different overall alignments, or maybe even no plan at all. This results in a lot of jagged roads no matter the overall rotation.

Describe the solution you'd likeF

Roads which are some amount skewed from alignment should be snapped to that alignment. That is, if a road runs at 93°, alter it to run at 90° instead.

There might be two configurable options:

  1. snap if difference is less than N°
  2. snap to
    • 90° alignments only
    • also include 45°f diagonals
    • snap to closest 15°

Additional context

I know this is a lot more complicated than the current approach!

@mattdm mattdm added the feature Feature request label Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request
Projects
None yet
Development

No branches or pull requests

1 participant