Skip to content

Disallow non-centred tiles and remove --scale argument - #56

Merged
tombh merged 4 commits into
mainfrom
tombh/disallow-non-centred-tiles
May 5, 2026
Merged

Disallow non-centred tiles and remove --scale argument#56
tombh merged 4 commits into
mainfrom
tombh/disallow-non-centred-tiles

Conversation

@tombh

@tombh tombh commented Apr 22, 2026

Copy link
Copy Markdown
Collaborator

There's probably a way for us to support non-centred tiles in the
application, but for now it's best to just disallow them.

Non-centred tiles compute fine but their final geo referencing causes
misalignment if displayed on a global map.

tombh added 2 commits April 22, 2026 16:11
There's probably a way for us to support non-centred tiles in the
application, but for now it's best to just disallow them.

Non-centred tiles compute fine but their final geo referencing causes
misalignment if displayed on a global map.
@tombh
tombh force-pushed the tombh/disallow-non-centred-tiles branch from 7501fed to 4a89808 Compare April 22, 2026 15:11
@tombh
tombh requested review from ryan-berger April 22, 2026 15:15

@ryan-berger ryan-berger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It would be nice to have an integration test, but since it is the CLI that's a bit hard

When creating tiles that are not at exactly 100m resolution their
centres are often off by a few fractions of a milimetre. Which should be
allowed.
@tombh tombh changed the title Disallow non-centred tiles Disallow non-centred tiles and remove --scale argument Apr 26, 2026
@tombh
tombh force-pushed the tombh/disallow-non-centred-tiles branch from 967289e to cbf740d Compare April 26, 2026 10:29
tombh added a commit to AllTheLines/viewview that referenced this pull request Apr 26, 2026
We support GeoTiffs now so the scale always comes from the tile.
@tombh

tombh commented Apr 26, 2026

Copy link
Copy Markdown
Collaborator Author

I added a test.

I've also used this PR to remove the --scale argument.

And I've pushed the viewview side of this AllTheLines/viewview#81

tombh added a commit to AllTheLines/viewview that referenced this pull request Apr 26, 2026
tombh added a commit to AllTheLines/viewview that referenced this pull request Apr 26, 2026

@ryan-berger ryan-berger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good! Glad that we can stop ourselves from accidentally running on a tile without it being centered

tombh added a commit to AllTheLines/viewview that referenced this pull request Apr 28, 2026
tombh added a commit to AllTheLines/viewview that referenced this pull request May 2, 2026
@tombh
tombh merged commit b001870 into main May 5, 2026
7 checks passed
@tombh
tombh deleted the tombh/disallow-non-centred-tiles branch May 5, 2026 10:58
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