Skip to content

Query for overlapping points in R

2 messages · Katrina Bennett, Roger Bivand

#
On Fri, 23 Mar 2007, Katrina Bennett wrote:

            
Well, why not simply measure the distances between the points in the two
files, treating points within a small threshold as common? Use a small
threshold rather than equality to avoid numerical fuzz problems.
spDistsN1() in sp will do that iterated over points in one of the sets.
Using the two indices, you can build up your output. Please consider using
sp classes - messing around inside the deprecated Map class is not
necessarily robust.

By the way, what is the function clip() in your code below?

Roger