[Qgis-developer] Multiple Fields in R-Processing

matteo matteo.ghetta at gmail.com
Sat Oct 1 10:24:40 PDT 2016


Victor,

I found the file in the folder. This the output (same error for several
different layers and different fields):

matteo at matteo-computer:~/.qgis2/processing$ cat processing_script.r.Rout

R version 3.2.3 (2015-12-10) -- "Wooden Christmas-Tree"
Copyright (C) 2015 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> options("repos"="http://cran.at.r-project.org/")
> tryCatch(find.package("rgdal"), error=function(e)
install.packages("rgdal", dependencies=TRUE))
[1] "/home/matteo/R/x86_64-pc-linux-gnu-library/3.2/rgdal"
> tryCatch(find.package("raster"), error=function(e)
install.packages("raster", dependencies=TRUE))
[1] "/home/matteo/R/x86_64-pc-linux-gnu-library/3.2/raster"
> library("raster")
Loading required package: sp
> library("rgdal")
rgdal: version: 1.1-10, (SVN revision 622)
 Geospatial Data Abstraction Library extensions to R successfully loaded
 Loaded GDAL runtime: GDAL 1.11.3, released 2015/09/16
 Path to GDAL shared files: /usr/share/gdal/1.11
 Loaded PROJ.4 runtime: Rel. 4.9.2, 08 September 2015, [PJ_VERSION: 492]
 Path to PROJ.4 shared files: (autodetected)
 Linking to sp version: 1.2-3
> layer =
readOGR("/tmp/processing36b3e4f556d548f9bcf7d4f8911f1b4d",layer="1475338756.053")
OGR data source with driver: ESRI Shapefile
Source: "/tmp/processing36b3e4f556d548f9bcf7d4f8911f1b4d", layer:
"1475338756.053"
with 313 features
It has 12 fields
>  multiple field layer="__count;__mean;__sum"
Error: unexpected symbol in " multiple field"
Execution halted



Super thanks again for helping me

Matteo


More information about the Qgis-developer mailing list