[R-sig-Geo] passing SQL through readOGR()

Tom Gottfried tom.gottfried at wzw.tum.de
Tue Oct 13 17:34:36 CEST 2009


Hi list,

is there a way to pass any SQL-statement through readOGR (as with the -sql Option to ogr2ogr). I
want to import a subset of a large dataset from PostGIS into R. I know it's possible with for
example RODBC and then coercing the resulting data.frame to an sp-class, but I wonder if I can do it
directly through readOGR().

Thanks!
Tom



More information about the R-sig-Geo mailing list