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

Custom TMS with decimation #146

Merged

Conversation

mccarthyryanc
Copy link

I have a use case where I'd like to define a custom TileMatrixSet that uses a nonary-tree instead of quad-tree (i.e. divide by 3 at each zoom level instead of 2.)

By default, TileMatrixSet.custom uses a hardcoded value of 2 for a quad-tree. This PR adds a decimation argument to allow for other divisions when generating a TileMatrix at each zoom level. The default value for decimation is set to 2 so existing tools are unaffected. This PR also includes tests.

morecantile/models.py Outdated Show resolved Hide resolved
@vincentsarago
Copy link
Member

thanks @mccarthyryanc

I'll cut a new release with this 🙏

@vincentsarago vincentsarago merged commit ec50d73 into developmentseed:main Feb 9, 2024
5 checks passed
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