Message-ID: <e12429640803311144w2e983e53wf78008e443471f4@mail.gmail.com>
Date: 2008-03-31T18:44:51Z
From: G. Allegri
Subject: ogr2ogr for converting postGIS layer to shapefile
In-Reply-To: <47F129F5.6070405@utoronto.ca>
Well, my innput has not been so useful, but yours do :-)
cgal stands for "computational geometry algorithms library"?
If yes, I will ask you a thing later...
How do you call system commands from R?
Giovanni
2008/3/31, Murray Richardson <murray.richardson at utoronto.ca>:
> Actually I am currently running an R script to link output from cgal
> routines to postGIS which allows me to handle massive tables and has
> some other advantages for my problem. However, this clarifies the
> import export option somewhat (although I just learned that I can invoke
> ogr2ogr as a system command which would be a faster option I guess.
>
> Thanks for you input.
>
>
> Murray
>
>
>
>
> G. Allegri wrote:
> > Hi Murray.
> > About the first question. As far as I understand, you're working in R
> > on a *imported* PostGIS layer (I suppose you use rgdal to do it,
> > right?). Then you would need to export it to a shapefile (easily done
> > with writeOGR). Why are you considering the use of ogr2ogr? As you
> > probably know, it's a binary callable from a command line, and it's
> > not possible (AFAIK) to do it from R...
> >
> > I dont' understand your second question...
> >
> >> Or even better could ogr be used to do this directly on a postGIS layer?
> >>
> > What do you mean?
> >
> > Giovanni
> >
> >
>