Description Usage Arguments Value Author(s) Examples
Assign the polygon id to the data points.
1 | getRidbytpoly(tpolys,pntlayer,isnearest)
|
tpolys |
Thiessen polygons, data format: SpatialPolygonsDataFrame. |
pntlayer |
Points for assignment for polygons. SpatialPointsDataFrame. |
isnearest |
whether to use nearest method to assign polygon id for no overlay with polygons, default: TRUE |
polygon id
Lianfa Li lspatial@gmail.com
1 2 3 4 5 6 7 8 9 | data("samplepnt","prnside")
# Point
x=samplepnt
# Border
sidepoly=prnside
# Get the Thiessen polygons
res=tpolygonsByBorder(x,sidepoly)
# Assign the regional id
rids=getRidbytpoly(res$tpolys,x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.