[R-sig-Geo] Queen, Rook and Knight neighbours

2010-09-08 Thread christiaan pauw
Hi Everybody Is there a possibility to create a neighbourhood list with a custom contiguity condition? There is queen and rook contiguity but I need something which may be called "Knight" : i.e. skip two (in a certain direction) and choose the next one. Here is my problem: I have a multi-stage sa

[R-sig-Geo] How do I use neighbourhood list to recursively merge adjacent polygons

2010-09-07 Thread christiaan pauw
Hallo Everybody I have a SpatialPolygonsDataFrame where residential stands in a town are given as polygons. The streets are "represented" by the empty space between the polygons. I want to dissolve the stand boundaries within a street block to get just the outer extent of a street block. My aim i

[R-sig-Geo] rotate label in plot based on polygon shape

2010-06-10 Thread christiaan pauw
Hi everybody Is it possible, when plotting a SPDF to rotate the label in a polygon based on the shape of the polygon. I want the greatest possible length in which to print the label and don't mind reading upside down as long as the label is readable. I am printing a map consisting of tens of thou

[R-sig-Geo] Plot categorical data from SpatialPolygonsDataFrame in color with label: plot() vs spplot()

2010-06-10 Thread christiaan pauw
Hi everybody I have a town map with a polygon for every individual stand. I have interview data in a SpatialPolygonsDataFrame (SPDF) for some of them. Now I want to print a map in pdf (as large as A0 !) that displays: 1. All stands in the town 2. The ones we have done interviews with in one of f

Re: [R-sig-Geo] Subsetted SpatialPolygonsDataFrame cannot writeOGR to ESRI shapefiles

2010-06-03 Thread christiaan pauw
dataframe(containing 144 rows of 19 variables) in 1.4M. Is it possible that there is something corrupt in the dataframe that only comes to the fore in the writeOGR operation? Thanks for your help best regards Christiaan On 3 June 2010 09:03, Roger Bivand wrote: > > On Thu, 3 Jun 2010, chris

Re: [R-sig-Geo] Subsetted SpatialPolygonsDataFrame cannot writeOGR to ESRI shapefiles

2010-06-02 Thread christiaan pauw
Thanks to Rick and Roger for their respective replies. Both helped. I updated R, GDAL and rgdal (I now have: R version 2.11.1 (2010-05-31) x86_64-apple-darwin9.8.0 with rgdal_0.6-26). I then Ricks proposed writeOGR statement below. This works. After adding some data (a dataframe called Bluegum) t

[R-sig-Geo] Subsetted SpatialPolygonsDataFrame cannot writeOGR to ESRI shapefiles

2010-06-02 Thread christiaan pauw
Hallo Everybody I have been using R for a while but I am new to using R on spatial data. What I want to do seems fairly straightforward to me but for some reason it doesn't seem to work even after reading a lot of help files and mail threads. I want to read shapefile containing a town map and subs