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

Passing custom parameters to gdal_merge #5

Open
HueyNemud opened this issue Jul 30, 2023 · 0 comments
Open

Passing custom parameters to gdal_merge #5

HueyNemud opened this issue Jul 30, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@HueyNemud
Copy link
Contributor

Were're calling gdal-merge with a fixed set of options :
parameters = [ "", "-o", ofile, "-co", "COMPRESS=LZW", ]
We can give the user more control over the process by letting him pass a list of parameters for gdal_merge, for instance as an optional string :
scrapwms <layer> <output> --gdal-merge "-co COMPRESS=JPEG -of Gtiff"

⚠️ it would create some side effects :

  • users will be able to change the format of the outputed regions with the option -of. Therefore, we would need to change the file extension accordingly.
  • same goes for the name of the output file.
@HueyNemud HueyNemud added the enhancement New feature or request label Jul 30, 2023
@HueyNemud HueyNemud added this to the Version 1.0 milestone Jul 30, 2023
@HueyNemud HueyNemud self-assigned this Jul 30, 2023
@HueyNemud HueyNemud changed the title Allow passing parameters to gdal_merge Passing custom parameters to gdal_merge Jul 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant