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
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
>>
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
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
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
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