-
-
Notifications
You must be signed in to change notification settings - Fork 295
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
r.blend: Quote map names in r.mapcalc expressions. #277
Conversation
Avoids failure if map / mapset name is also a valid mathematical expression.
Same issue also affects r.grow. Fixed with 81761a8 |
To better try it out, do you have a (simple) example? |
Hmmm. This could be a good addition to the test suite, as there could be errors in other modules as well. Still I'm not that familiar with the test suite to understand how to force running all tests in a specific mapset.
|
I have written a testsuite script in PR #347, pls check |
* testsuite: r.blend quoting test Added test script which implements the test suggested in PR #277 Co-authored-by: Māris Nartišs <mn@sungis.lv>
* testsuite: r.blend quoting test Added test script which implements the test suggested in PR #277 Co-authored-by: Māris Nartišs <mn@sungis.lv>
An objections to merge and backport? |
No one seems to object. I can rebase, if needed. |
@neteler Are you planning to merge it? |
* r.blend: Quote map names in r.mapcalc expressions. Avoids failure if map / mapset name is also a valid mathematical expression. * r.grow: Quote map names in mapcalc expression * testsuite: r.grow test case for mapcalc map quoting. Based on PR #347 and PR #277 Co-authored-by: Māris Nartišs <maris.nartiss@lu.lv>
Done and backported |
* r.blend: Quote map names in r.mapcalc expressions. Avoids failure if map / mapset name is also a valid mathematical expression. * r.grow: Quote map names in mapcalc expression * testsuite: r.grow test case for mapcalc map quoting. Based on PR OSGeo#347 and PR OSGeo#277 Co-authored-by: Māris Nartišs <maris.nartiss@lu.lv>
Avoids failure if map / mapset name is also a valid mathematical expression.