Skip to content
Prev 17028 / 29559 Next

reading PostGIS table into sp data frame

Thanks Roger and also Edzer for your replies. Apologies for the choice of words below - I much appreciate your efforts, and those of the many others who are developing and maintaining Open Source software.

I'll look into installing GDAL and rgdal from source - not sure what chances of success I have, as I have absolutely no experience with this. Might be a good time to switch to Ubuntu for me!

Edward

-----Original Message-----
From: Roger Bivand [mailto:Roger.Bivand at nhh.no] 
Sent: 21 December 2012 13:31
To: Edward Vanden Berghe
Cc: r-sig-geo at r-project.org
Subject: RE: [R-sig-Geo] reading PostGIS table into sp data frame
On Fri, 21 Dec 2012, Edward Vanden Berghe wrote:

            
Not out of luck, the users of the CRAN Windows and OSX rgdal binaries are very lucky indeed, thanks to hard work by Uwe Ligges, Brian Ripley and Simon Urbanek. At least many of the most commonly used drivers are present.

There never is a complete set of drivers ionstalled in any GDAL, some depend on proprietary dynamically linked objects.

file.show(system.file("README.windows", package="rgdal"))

displays the accumulated - but *not* updated - wisdom with regard to installing source rgdal on Windows, linked to an external GDAL DLL. If you try to follow this route, please pass back your experience with regard to installing - it is likely that much has changed. You may find that OSGeo4W is another source for a Win32 GDAL binary, but I don't see from the documentation whether it supports PostGIS.

Installing Linux, PostgreSQL, PostGIS, GDAL, Proj.4, etc., then R and rgdal under Linux will probably require less jumping through hoops than building rgdal against an external 64-bit GDAL under windows.

Hope this helps,

Roger
--
Roger Bivand
Department of Economics, NHH Norwegian School of Economics, Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no