Re: [R-sig-Geo] ogr2ogr for converting postGIS layer to shapefile

2008-03-31 Thread Tim Keitt
Murray Richardson utoronto.ca> writes: > > It would be great to have CGAL bindings in R. > Agreed. This is something I've been contemplating as well. THK ___ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r

Re: [R-sig-Geo] ogr2ogr for converting postGIS layer to shapefile

2008-03-31 Thread Murray Richardson
I am not calling CGAL from R yet - currently I am just using dumping x y points from R to alpha shapes in a loosely coupled fashion and then reading the results back into R and into a postGIS database. The alpha shapes is a "concave" hull routine. I need to call the cgal C++ code from R and w

[R-sig-Geo] SpatialLines and SpatialGridDataFrame overlay or transect sampling

2008-03-31 Thread Andrew Niccolai
Hi Roger et. al.! Again, let me start by thanking the Spatial R group for almost 2 years of fantastic help in my research. I am currently working on a part of my puzzle that can be easily done in image processing software such as ENVI but I am looking for an R solution. I have a list of lines ob

Re: [R-sig-Geo] ogr2ogr for converting postGIS layer to shapefile

2008-03-31 Thread G. Allegri
Great, I didn't know it... I just made a rapid try some time ago but it failed because I didn't use the "" I'm sorry for bothering, how are you using R with CGAL? 2008/3/31, Murray Richardson <[EMAIL PROTECTED]>: > > See below. Haven't tried this yet. > > Yes that is what CGAL stands for. > >

Re: [R-sig-Geo] ogr2ogr for converting postGIS layer to shapefile

2008-03-31 Thread Murray Richardson
See below. Haven't tried this yet. Yes that is what CGAL stands for. Murray Hi Murray, Regarding the first question, you can read into R first and then output it again. You could also call ogr2ogr using a system call like: system("ogr2ogr normal syntax stuff") cheers, Paul G. Allegr

Re: [R-sig-Geo] ogr2ogr for converting postGIS layer to shapefile

2008-03-31 Thread G. Allegri
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 <[EMAIL PROTECTED]>: > Actually I am currently running an

Re: [R-sig-Geo] ogr2ogr for converting postGIS layer to shapefile

2008-03-31 Thread Murray Richardson
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 syst

Re: [R-sig-Geo] ogr2ogr for converting postGIS layer to shapefile

2008-03-31 Thread G. Allegri
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,

[R-sig-Geo] ogr2ogr for converting postGIS layer to shapefile

2008-03-31 Thread Murray Richardson
Hello list members, I think I must be missing some obvious documentation somewhere; I'm not sure how I can access ogr2ogr vial R to convert a postGIS layer to a shapefile. Must I use readOGR and writeOGR in rgdal instead or is there a way to call ogr2ogr directly? If so do I have to call the o