Re: [R-sig-Geo] Put polygon points in correct order

2009-10-02 Thread Barry Rowlingson
On Fri, Oct 2, 2009 at 5:52 AM, Don MacQueen m...@llnl.gov wrote: I have a set of points that form a polygon, except that they are in the wrong order. For example, source into R the object tmpsub given below. Then do plot(tmpsub) polygon(tmpsub) You will see that although the points define

[R-sig-Geo] Determine the location of the actual R-file

2009-10-02 Thread Breitbach, Nils
Dear community, this time my question has something to do with with spatial context but not in the sense we discuss it usually here. I tried to find out if it is possible to ask R for the location (path) of the R-file from which I send the code. What I want to ensure is, that the R code works,

Re: [R-sig-Geo] Determine the location of the actual R-file

2009-10-02 Thread Paul Hiemstra
Hi Nils, Getting the current working directory is done using getwd(). I have some comments inline below: Breitbach, Nils wrote: Dear community, this time my question has something to do with with spatial context but not in the sense we discuss it usually here. I tried to find out if it is

Re: [R-sig-Geo] Determine the location of the actual R-file

2009-10-02 Thread Barry Rowlingson
On Fri, Oct 2, 2009 at 8:44 AM, Breitbach, Nils breitb...@uni-mainz.de wrote: Dear community, this time my question has something to do with with spatial context but not in the sense we discuss it usually here. I tried to find out if it is possible to ask R for the location (path) of the

[R-sig-Geo] Importing ESRI Shapefile into RSAGA

2009-10-02 Thread von Rütte Jonas
Hello! I have a more general problem Is there a way to import ESRI shapfiles into RSAGA? And if yes how can I then import it to SAGA GIS since it seems to not support the ESRI format. Thanks in advance Jonas Soil and Terrestrial Environmental Physics ETH Zurich

Re: [R-sig-Geo] Importing ESRI Shapefile into RSAGA

2009-10-02 Thread Paul Hiemstra
Hi, A quick google showed that SAGA supports the GDAL library for data import and export. This library should (specifically the OGR part) supports ESRI shapefile (http://www.gdal.org/ogr/drv_shapefile.html). So I think you must be more specific on which commands you used to try and load the

Re: [R-sig-Geo] Importing ESRI Shapefile into RSAGA

2009-10-02 Thread Tomislav Hengl
Jonas, SAGA (GUI) can read and write shape files. This is the native vector format it uses. Maybe this is confusing, but RSAGA is NOT a GIS package under R, but only a link to send things from R to SAGA and back. Here are some examples:

[R-sig-Geo] Put polygon points in correct order

2009-10-02 Thread Nicholas Lewin-Koh
Hi Don, If your polygons are all convex, then there is hope. If not then it can only be done with added constraints, there is not enough information in the coordinates alone to order them except up to an approximation. If they are convex, just compute the convex hull. If not, you could try

[R-sig-Geo] how to test for effect of spatial scale

2009-10-02 Thread Maurizio Mencuccini
Hi there, I have a dataset consisting of measurements of tree size taken in more than 200 forest plots along a regular grid within a forest. For each plot, i can build summary statistics such as frequency distributions of such characters (e.g., height, diameters, etc). I have the expectation