readVECT6 error in spgrass6 (CVS version)
Roger, Great. I used the rgdal from CVS and that works fine. Thanks, Bill
Roger Bivand wrote:
On Mon, 20 Apr 2009, William McCoy wrote:
I am trying to duplicate the example of T. Hengl given in his message of 2 Apr 2009 regarding "Running analysis on DEMs using GRASS (from R?)". I have retrieved the latest CVS version (as of last night) of spgrass6 (v. 0.6-5). I am running on a 32-bit Intel Fedora 10 system. Everything seems to work up until the point that I try to import the streamt vector file into R:
streamt <- readVECT6("streamt")
Error in readOGR(dsn, layer = "1", verbose = !ignore.stderr, pointDropZ = pointDropZ) : unused argument(s) (pointDropZ = FALSE) Apparently readOGR has no "pointDropZ" argument and the rgdal documentation seems to confirm this. Is this a bug in this CVS version of spgrass6?
No, but you need the CVS version of rgdal too. The GRASS OGR plugin spuriously generates a third coordinate, so that its use in spgrass6, using rgdal (readOGR) led to a failure in a later script. The released versions of both packages are in sync, to have CVS spgrass6 work, use the CVS rgdal (sourceforge project rgdal, module rgdal). Roger
Here is my sessionInfo():
sessionInfo()
R version 2.8.1 (2008-12-22) i386-redhat-linux-gnu locale: LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=C;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] spgrass6_0.6-5 XML_2.3-0 rgdal_0.6-7 maptools_0.7-22 [5] sp_0.9-34 foreign_0.8-34 loaded via a namespace (and not attached): [1] grid_2.8.1 lattice_0.17-22 tools_2.8.1
William D. McCoy Geosciences University of Massachusetts Amherst, MA 01003