Skip to content
New issue

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

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

Already on GitHub? # to your account

[Refactoring] Split the Extent module into a geographic and a tiled ones #2412

Merged
merged 2 commits into from
Oct 3, 2024

Conversation

Desplandis
Copy link
Contributor

@Desplandis Desplandis commented Sep 24, 2024

Before contributing

Read CONTRIBUTING.md and CODING.md to apply iTowns conventions on PRs, Git history and code.

Description

This PR refactor and split the Extent module into two sub-modules—one for geographic extents (Extent) and one for tiled extents (Tile).

Motivation and Context

The current methods of Extent are all guarded by assertions checking if the current instance is of geographic or tiled type, with a different behavior given the type. Moreover certain methods are only valid for one type. This does not help the tracking of the current type of Extent.
Finally this module currently contributes to at least 25% of all type errors and need a cleaner structure for proper typing.

@Desplandis Desplandis marked this pull request as ready for review September 24, 2024 13:45
@Desplandis Desplandis requested a review from jailln September 24, 2024 13:49
@Desplandis Desplandis mentioned this pull request Sep 26, 2024
4 tasks
Copy link
Contributor

@jailln jailln left a comment

Choose a reason for hiding this comment

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

Thanks for this much needed refactoring :)

@Desplandis Desplandis force-pushed the refacto/split-extent branch from eabfbca to 198b417 Compare October 2, 2024 10:49
@Desplandis Desplandis force-pushed the refacto/split-extent branch from 198b417 to e8ac633 Compare October 2, 2024 10:57
Copy link
Contributor

@jailln jailln left a comment

Choose a reason for hiding this comment

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

Thanks for the changes :)

@Desplandis Desplandis merged commit 4b57498 into iTowns:master Oct 3, 2024
9 checks passed
@Desplandis Desplandis mentioned this pull request Nov 7, 2024
15 tasks
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants