-
Notifications
You must be signed in to change notification settings - Fork 12
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
Feature/fix config parameter #33
Open
mwip
wants to merge
4
commits into
gearslaboratory:master
Choose a base branch
from
mwip:feature/fix_config_parameter
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Previously, --config parameters were parsed as 'normal' doubledashed parameters in gdal_cmd_builder. However, this --config options must be provided as key value pairs like `gdalinfo /some/image.tif --config GDAL_CACHEMAX "30%" for setting the maximum cache to 30 percent of the system memory. This commit introduces changes to the creation of the gdal commands in gdal_cmd_builder.R to introduce the general functionality. Further, all functions which already incorporate a config parameter were adjusted to make use of the new functionality. In the case of gdalinfo the "config" parameter was moved from character parameters to repeatable parameters, which is in line with the handeling in all other functions.
The documentation of the newely added parameter_named was adapted. Also in the documentation in all functions having a config parameter were the config parameter was changed to a named character.
After checks, devtools::document() was used to update the documentation. The package builds and tests without any errors, warnings and notes.
rolfsimoes
suggested changes
Jun 3, 2020
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.
Minor changes.
Nice work!
@rolfsimoes Thanks for your help. I resolved the few comments. |
rolfsimoes
approved these changes
Jun 11, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR closes #30
It introduces a
parameter_named
togdal_cmd_builder()
which allows to parse options built on key value pairs. It is specifically designed to support adding e.g.--config GDAL_CACHEMAX "30%"
or alike to gdal commands where suitable.I would kindly like to ask @rolfsimoes for a code review.