I'm trying to use RQGIS interface with QGIS to create a polygon grid. One of the required parameters is TYPE.
Where can i know the type of parameters to this algorithm? and to others?
From
Code:
neto <- readRDS("/path/") #download data from link
# Finding QGIS algoritms
dir_tmp <- "/my/path/"
my_env <- set_env()
find_algorithms(search_term = "grid")
params <- get_args_man(alg = "qgis:creategrid", qgis_env = my_env)
params$TYPE <- "polygon"
params$EXTENT <- nnetpro
params$HSPACING <- "10" does it accept numeric?
params$VSPACING <- "10" does it accept numeric?
params$CRS <- "EPSG:31983" #does it work with CRS("+init=epsg:31983")?
params$OUTPUT <- file.path(dir_tmp, "g10m.shp")
out <- run_qgis(alg = "qgis:creategrid",
params = params,
load_output = params$OUTPUT,
qgis_env = my_env)
Error in run_qgis(alg = "qgis:creategrid", params = params, load_output = params$OUTPUT, :
Error: Wrong parameter value: polygon
No comments:
Post a Comment