[Qgis-user] Sextante and R not loading shp in qgis_dev

Agustin Diez-Castillo gvsig.mac at gmail.com
Thu Dec 6 03:26:01 PST 2012


Hi,
Working with several commands that used to work (like F function- distance
from a point to nearest event)
Sextante attempts to read at the wrong location the points layer because it
puts the file in both the dsn and the layer call

points =
readOGR("/Users/adiez/sextante/tempdata/sextanteaddautoincrementalfield12",layer="sextanteaddautoincrementalfield12")
instead of
points =
readOGR("/Users/adiez/sextante/tempdata/",layer="sextanteaddautoincrementalfield12")
that it's what works in the R console

QGIS version

1.9.0-Master

QGIS code revision

98dc557

Compiled against Qt

4.8.3

Running against Qt

4.8.3

Compiled against GDAL/OGR

1.9.1

Running against GDAL/OGR

1.9.2

GEOS Version

3.3.5

PostgreSQL Client Version

9.1.6

SpatiaLite Version

3.0.1

QWT Version

6.0.1

PROJ.4 Version

480

QScintilla2 Version

2.6.2

This copy of QGIS writes debugging output.

Log

-------

 R execution console output


R version 2.15.2 (2012-10-26) -- "Trick or Treat"

Copyright (C) 2012 The R Foundation for Statistical Computing

ISBN 3-900051-07-0

Platform: i386-apple-darwin9.8.0/i386 (32-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.


library("rgdal")

Loading required package: sp

rgdal: (SVN revision 360)

Geospatial Data Abstraction Library extensions to R successfully loaded

Loaded GDAL runtime: GDAL 1.9.0, released 2011/12/29

Path to GDAL shared files:
/Library/Frameworks/R.framework/Versions/2.15/Resources/library/rgdal/gdal

Loaded PROJ.4 runtime: Rel. 4.8.0, 6 March 2012, [PJ_VERSION: 480]

Path to PROJ.4 shared files:
/Library/Frameworks/R.framework/Versions/2.15/Resources/library/rgdal/proj

points =
readOGR("/Users/adiez/sextante/tempdata/sextanteaddautoincrementalfield12.shp",layer="sextanteaddautoincrementalfield12")

Error in file(paste(dsn, .Platform$file.sep, layer, ".dbf", sep = ""), :

cannot open the connection

Calls: readOGR -> ogrInfo -> file

In addition: Warning message:

In file(paste(dsn, .Platform$file.sep, layer, ".dbf", sep = ""), :

cannot open file
'/Users/adiez/sextante/tempdata/sextanteaddautoincrementalfield12.shp/sextanteaddautoincrementalfield12.dbf':
Not a directory

Execution halted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20121206/c3779321/attachment.html>


More information about the Qgis-user mailing list