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

feat(lambda-tiler): Update the wmts resource url to include the daterange. #2669

Merged
merged 4 commits into from
Feb 8, 2023

Conversation

Wentao-Kuang
Copy link
Contributor

No description provided.

@Wentao-Kuang Wentao-Kuang requested a review from a team as a code owner February 3, 2023 02:53
const resourceURLs = lines.filter((f) => f.includes('<ResourceURL')).map((f) => f.trim());
o(resourceURLs).deepEquals([
'<ResourceURL format="image/png" resourceType="tile" template="https://tiles.test/v1/tiles/aerial/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}.png?api=d01f7w7rnhdzg0p7fyrc9v9ard1&amp;config=Q5pC4UjWdtFLU1CYtLcRSmB49RekgDgMa5EGJnB2M&amp;date%5Bbefore%5D=2021" />',
'<ResourceURL format="image/png" resourceType="tile" template="https://tiles.test/v1/tiles/ōtorohanga-urban-2021-0.1m/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}.png?api=d01f7w7rnhdzg0p7fyrc9v9ard1&amp;config=Q5pC4UjWdtFLU1CYtLcRSmB49RekgDgMa5EGJnB2M&amp;date%5Bbefore%5D=2021" />',
Copy link
Member

Choose a reason for hiding this comment

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

We shouldn't use a date range on a individual imagery set.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see, I just think this ResourceURL is missing the daterange parameter so I made this change. I think WMTS already contain the filteredLayers, then we don't need this changes. The PR could be closed.

@@ -38,6 +38,8 @@ export interface WmtsCapabilitiesParams {
config?: string | null;
/** Specific layers to add to the WMTS */
layers?: ConfigLayer[] | null;
/** Specific DateRange for the wmts layers */
dateRange?: Record<string, string | undefined>;
Copy link
Member

Choose a reason for hiding this comment

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

could this just be filters? so it could be expanded later?

].join('/');
}

buildResourceUrl(tileSetId: string, suffix: string): VNodeElement {
buildResourceUrl(tileSetId: string, suffix: string, AddFilter = false): VNodeElement {
Copy link
Member

Choose a reason for hiding this comment

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

Whis is this not camelCase ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, just fixed.

@blacha blacha added this pull request to the merge queue Feb 8, 2023
Merged via the queue into master with commit 2068610 Feb 8, 2023
@blacha blacha deleted the feat/wmts-daterange branch February 8, 2023 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants