Learn R Programming

RapidPolygonLookup (version 0.1.1)

POLYGON LOOKUP USING KD TREES

Description

Facilitates efficient polygon search using kd trees. Coordinate level spatial data can be aggregated to higher geographical identities like census blocks, ZIP codes or police district boundaries. This process requires mapping each point in the given data set to a particular identity of the desired geographical hierarchy. Unless efficient data structures are used, this can be a daunting task. The operation point.in.polygon() from the package sp is computationally expensive. Here, we exploit kd-trees as efficient nearest neighbor search algorithm to dramatically reduce the effective number of polygons being searched.

Copy Link

Version

Install

install.packages('RapidPolygonLookup')

Monthly Downloads

137

Version

0.1.1

License

GPL

Maintainer

Markus Loecher

Last Published

January 14th, 2019

Functions in RapidPolygonLookup (0.1.1)

RapidPolygonLookup

Efficient spatial polygon search using kd-trees.
sf.crime.2012

Sample data with lat/long information
sf.polys

Spatial polygons of San Francisco
DiagnoseFailure

Visualize points that could not be mapped using RapidPolygonLookup()
FindPolygonInRanges

Use range-search to map points to polygon.
RapidPolygonLookup-package

Polygon lookup using kd trees
SearchForPolygon

Use kd-trees to search the nearest neighbour polygons for a given set of points
california.tract10

Census Tract spatial polygons for the state of California
AddRanges

Add xlim and ylim for each polygon
CropSpatialPolygonsDataFrame

Crop polygons to bounding box and adds polygon centers