Skip to content
This repository has been archived by the owner on Apr 20, 2020. It is now read-only.

Deterministic order of parameters in function call? #87

Closed
raff-k opened this issue Nov 21, 2017 · 2 comments
Closed

Deterministic order of parameters in function call? #87

raff-k opened this issue Nov 21, 2017 · 2 comments

Comments

@raff-k
Copy link
Contributor

raff-k commented Nov 21, 2017

Dear RQGIS-team,

I am just wondering if there is a deterministic order how the function parameter have to be set in the function. - If there is, maybe you could mention that in the description somewhere (and if you already did, I am sorry for my nescience).

Computing...
data(dem)
RQGIS::run_qgis(alg = "saga:gridbuffer", FEATURES = dem, BUFFER = "tmpBuf.sdat", BUFFERTYPE = "1", DIST = "1", load_output = TRUE)
... I got:

Error in pass_args(alg, ..., params = params, qgis_env = qgis_env) :
Invalid argument value 'C:/Users/USER/AppData/Local/Temp/RtmpI9zYec/1' for parameter 'DIST'

But ...
RQGIS::run_qgis(alg = "saga:gridbuffer", FEATURES = dem, DIST = "1", BUFFERTYPE = "1", BUFFER = "tmpBuf.sdat", load_output = TRUE)
... works fine :-)

@jannes-m
Copy link
Collaborator

Interesting, shouldn't be that way... will take care of this tomorrow. Thanks for noting!

@jannes-m
Copy link
Collaborator

Commit 45aef93 should fix your issue. However, it works only with QGIS 2.14. QGIS 2.18 only produces a prj-output file. Well, another QGIS issue, will add it to our list.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants