Re: [R-sig-Geo] Repost: Find boundaries between two SpatialPolygonsDataFrame objects?

2009-03-30 Thread Jonathan Boyd Thayn
This may be useful. It is part of a function that I put together a while ago to measure the length of common borders. It's been a while since I used it. common.border <- function(shp){ if(length(slot(shp,"polygons"))!=2) stop('This function only handles two polygons at a tim

Re: [R-sig-Geo] Shared polygon border

2008-10-14 Thread Jonathan Boyd Thayn
ing readOGR() what code to I use to access the node coordinates? Thanks again for your help. Jon Thayn On Oct 13, 2008, at 2:33 PM, Roger Bivand wrote: > On Mon, 13 Oct 2008, Jonathan Boyd Thayn wrote: > >> I want to know the length of the shared border of neighboring >>

[R-sig-Geo] Shared polygon border

2008-10-13 Thread Jonathan Boyd Thayn
I want to know the length of the shared border of neighboring polygons in a shapefile. I can use the slots () function to access the the "polyons" slot of the file, but I can't seem to create a list of the node coordinates of the polyon. Is there a way to do this easily? Thanks. Jonath

Re: [R-sig-Geo] To fix the axis increment

2008-07-24 Thread Jonathan Boyd Thayn
Take a look at eqscplot(), a function in the MASS library. On Jul 22, 2008, at 8:00 AM, PUJAN RAJ REGMI wrote: > Dear all, > I am trying to plot 2-D scatter data in R, but i am having problem > in fixing the increment in x and y axes. I am referring the function > "axis equal" in Matlab by

[R-sig-Geo] creating a multi-band SpatialGridDataFrame

2008-07-17 Thread Jonathan Boyd Thayn
I used the rgdal package to open a geoTiff and then manipulate the data. The result is a 3-dimensional array that I want to convert back to a SpatialGridDataFrame in order to save it as a geoTiff. I used the following code: grd <- GridTopology(gt[,1],gt[,2],gt[,3]) SGDF <- SpatialGridDat

[R-sig-Geo] rgdal on Mac OS X 3.9

2006-09-07 Thread Jonathan Boyd Thayn
I am trying to install the rgdal package on my Mac OS X 3.9. I have installed the proj4 library and the GDAL library. I get the following error: How do I know where the GDAL libraries are located? What is their path? Thanks. * Installing *source* package 'rgdal' ... ./configure: line 1: g