[R-sig-Geo] Rgdal-Postgis driver on Windows
Roger Bivand
Roger.Bivand at nhh.no
Tue Oct 28 17:37:54 CET 2008
On Tue, 28 Oct 2008, Standaert Arnout wrote:
> Hello list,
>
> I'm currently trying to efficiently load some Postgis layers in R using
> rgdal's readOGR() function. The problem is simple: the Postgis driver is
> not provided in the OGR distrition used by rgdal (as shown by
> ogrDrivers() ).
>
> I'm not very familiar with the technical details, but my impression is
> that rgdal should be explicitly compiled with the Postgis driver
> included. Is that right? Is that the only way to get this working?
> I did try to install FWTools and it does include the Postgis driver for
> OGR, but rgdal seems to be using it's own OGR binaries (located in
> libgdal-1.dll?), so that did not solve the problem...
You'll be involved in compiling if you need extra drivers. The gory
details are at:
file.show(system.file("README.windows", package="rgdal"))
within running R and loaded rgdal. Consider using ogr2ogr from FWTools
through system() to convert to a format for which you have a driver in
rgdal.
Hope this helps,
Roger
>
> Thanks a bunch for your time and advice,
> Arnout
>
> ---
> This e-mail, any attachments and the information it contains are confidential and meant only for the use of the addressee(s) only. Access to this e-mail by anyone other than the addressee(s) is unauthorized. If you are not the intended addressee (or responsible for delivery of the message to such person), you may not use, copy, distribute or deliver to anyone this message (or any part of its contents) or take any action in reliance on it. In such case, you should destroy this message and notify the sender immediately. If you have received this e-mail in error, please notify us immediately by e-mail or telephone and delete the e-mail from any computer.
> All reasonable precautions have been taken to ensure no viruses are present in this e-mail and its attachments. As our company cannot accept responsibility for any loss or damage arising from the use of this e-mail or attachments we recommend that you subject these to your virus checking procedures prior to use.
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
--
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, 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
More information about the R-sig-Geo
mailing list