-
Notifications
You must be signed in to change notification settings - Fork 174
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
WMTS BoundingBox fix and WMTS template adjustment #1052
Conversation
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 %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need -
?
There was a problem hiding this comment.
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
thanks @AndrewAnnex could you please add a note in https://github.com/developmentseed/titiler/blob/main/CHANGES.md#unreleased |
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) |
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