[R-sig-Geo] Circles as polygons?

Pieter Botha pieter at sevenc.co.za
Wed Mar 30 14:55:38 CEST 2011


Thanks Alex

I am looking at the spDists function at the moment, if my points of interest lies at a distance smaller than the accuracy of the reading I have a match. Somewhat simpler approach maybe :-)
On 30 Mar 2011, at 2:48 PM, Alexandre Villers wrote:

> Hi,
> 
> Have a look at the disc() function in spatstat. I guess you can then either do what you aim at directly with spatstat, or after converting spatstat objects to sp class with maptools appropriate functions.
> 
> HTH
> 
> Alex
> 
> On 30/03/2011 15:39, Pieter Botha wrote:
>> Hi
>> 
>> I have a SpatialPointsDataFrame, originating from location readings from an Android device. These readings are received as latitude / longitude as well as an accuracy reading in meters. An csv dump of the SpatialPointsDataFrame can be downloaded here: http://www.ploemp.com/opla/statp.csv
>> 
>> I am interested in finding points of interest that falls within an accuracy reading for a location. The sp class only supports points, lines and polygons so I guess I will have to construct a polygon that estimates the circle formed by the location with accuracy as radius?
>> 
>> Any pointers here?
>> 
>> Thanks,
>> Pieter
>> 
>> 
>> 
> 
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the R-sig-Geo mailing list