Skip to content
Prev 3321 / 29559 Next

Errors while creating a neighbourhood matrix using poly2nb

Thanks Roger,
Changing the snap distance already did the trick. I didn't know Arcmap was
so inaccurate!
Oscar



                                                                           
             Roger Bivand                                                  
             <Roger.Bivand at nhh                                             
             .no>                                                       To 
             Sent by:                  Oscar Breugelmans                   
             r-sig-geo-bounces         <Oscar.Breugelmans at rivm.nl>         
             @stat.math.ethz.c                                          cc 
             h                         r-sig-geo at stat.math.ethz.ch         
                                                                   Subject 
                                       Re: [R-sig-Geo] Errors while        
             25-03-2008 10:29          creating a neighbourhood matrix     
                                       using poly2nb                       
                                                                           
             Please respond to                                             
             Roger.Bivand at nhh.                                             
                    no
On Tue, 25 Mar 2008, Oscar Breugelmans wrote:

            
postal
are
by
unique
the
their
This
Almost certainly a topologically unclean set of boundaries. If you do the
merging in R using unionSpatialPolygons() in maptools, the output
SpatialPolygons ought to be OK. Use the post codes as the ID union key,
and they will be used beith as the Polygons objects IDs, and the region.id
values of the neighbour list. You could also try increasing the snap
distance in poly2nb(), as this may relieve problems of remaining slivers.

Hope this helps,

Roger