PointInPolygon: Point In Polygon

Description Usage Arguments Details Value Examples

Description

Determins if points lie within the boundaries of polygons

Usage

1
PointInPolygon(dt_polygons, polyColumns, dt_points, pointColumns)

Arguments

dt_polygons

data.table object containing the polygon coordinates

polyColumns

character vector of column names containing the id, lineId, x, y and hole fields (in that order)

dt_points

data.table object containing the point coordinates

pointColumns

character vector of column names containing the id, x and y fields (in that order)

Details

Calculates the winding number (https://en.wikipedia.org/wiki/Winding_number)

Value

data.table giving the ids of the points and the polygons within which they fall

Examples

1
2
3
4
## Not run: 
 ## example

## End(Not run)

SymbolixAU/spatial.data.table documentation built on May 9, 2019, 3:30 p.m.