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

add **render_params.kwargs ito pass custom render params #259

Merged
merged 3 commits into from
Mar 5, 2021

Conversation

vincentsarago
Copy link
Member

this PR add **render_params.kwargs to pass custom render params in image.render method.

ref: #255

cc @neda-dtu

)
if self.output_compression is not None:
self.kwargs["compress"] = self.output_compression

Copy link
Member Author

Choose a reason for hiding this comment

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

cc @neda-dtu
this is an example of custom RenderParams that add output_nodata and output_compression to the available query options (you could also hardcode some options).

@@ -72,7 +72,7 @@ def TMSParams(
class DefaultDependency:
"""Dependency Base Class"""

kwargs: dict = field(init=False, default_factory=dict)
kwargs: Dict = field(init=False, default_factory=dict)
Copy link
Member Author

Choose a reason for hiding this comment

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

fix

@vincentsarago vincentsarago merged commit 272d62d into master Mar 5, 2021
@vincentsarago vincentsarago deleted the customRenderParams branch March 5, 2021 13:01
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