<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi David,<br><br>You can use PL/R to access R functionality from a Postgres SQL command line, or you can use rgdal to read Postgis data into R.<br><br>So it depends on whether you want to work in the DB & add R capabilities, or work in R & access Postgis data.<br><br>See: <br><br>http://www.bostongis.com/PrinterFriendly.aspx?content_name=postgresql_plr_tut01<br>http://www.bostongis.com/PrinterFriendly.aspx?content_name=postgresql_plr_tut02<br><br>for a useful introduction to PL/R; and for rgdal, see:<br><br>http://rgdal.sourceforge.net/<br>http://cran.r-project.org/web/packages/rgdal/rgdal.pdf<br>http://www.bostongis.com/PrinterFriendly.aspx?content_name=postgresql_plr_tut03<br><br>HTH,<br><br>  Brent Wood<br><br><br>--- On <b>Thu, 11/18/10, David Potts <i><dave.potts@pinan.co.uk></i></b> wrote:<br><blockquote style="border-left: 2px solid
 rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: David Potts <dave.potts@pinan.co.uk><br>Subject: [postgis-users] Postgis & R language<br>To: "PostGIS Users Discussion" <postgis-users@postgis.refractions.net><br>Date: Thursday, November 18, 2010, 12:46 AM<br><br><div class="plainMail"><br>Hi List<br><br>Has anybody ever tried to read the value of geometry column from a table<br>into a R-language application  using the plr handler, is this a support<br>option?<br><br>Thanks in advance.<br>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br>Any views expressed in this message are those of the individual sender,<br>except where the sender specifically states them to be the views of the<br>Pinan Software<br><br><br>_______________________________________________<br>postgis-users mailing list<br><a ymailto="mailto:postgis-users@postgis.refractions.net"
 href="/mc/compose?to=postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br></div></blockquote></td></tr></table>