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

WMTS BoundingBox fix and WMTS template adjustment #1052

Conversation

AndrewAnnex
Copy link
Contributor

fixes a bug where the WMTS BoundingBox coordinates flipped incorrectly if boundingbox element is used, as the coords must match the CRS order

updates WMTS XML template to avoid placing extra new lines in various places

if boundingbox element is used, as the coords must match the CRS order

updates WMTS XML template to avoid placing extra new lines in various
places
@@ -51,13 +51,13 @@
</TileMatrixSetLink>
<ResourceURL format="{{ media_type }}" resourceType="tile" template="{{ layer.tiles_url }}?{{ layer.query_string | escape }}" />
</Layer>
{% endfor %}
{%- endfor %}
Copy link
Member

Choose a reason for hiding this comment

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

why do we need - ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it removes extra white space that's being inserted https://jinja.palletsprojects.com/en/stable/templates/#whitespace-control

@vincentsarago
Copy link
Member

thanks @AndrewAnnex

could you please add a note in https://github.com/developmentseed/titiler/blob/main/CHANGES.md#unreleased

@AndrewAnnex
Copy link
Contributor Author

AndrewAnnex commented Dec 11, 2024

hmm I don't know why the black formatting check is failing, last commit I ran it locally and I just did again via the pre-commit but no changes occured (which I keep forgetting about installing on new systems I'm deving on)

@vincentsarago vincentsarago merged commit 98a417d into developmentseed:main Dec 20, 2024
10 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