voronoipolygons2: Generation of Thiesseon Polygons By Points

Description Usage Arguments Value Examples

View source: R/tpolygonsByBorder.R

Description

Generation of Thiessen polygons by spatial points

Usage

1

Arguments

x

Spatial point object, data format:SpatialPointsDataFrame

poly

The border polygons object to limit the Thiessen polygons. Data format:SpatialPolygonsDataFrame

Value

The spatial polygongs objects. Data format: SpatialPolygonsDataFrame

Examples

1
2
3
4
5
6
7
8
9
data("samplepnt","prnside")
x=samplepnt
sidepoly=prnside
prjinf=sp::proj4string(x)
sidepoly_p=sp::spTransform(sidepoly,prjinf)
extBnd=as(raster::extent(sidepoly_p), 'SpatialPolygons')
sp::proj4string(extBnd)=prjinf
pzn.coords=voronoipolygons2(x,extBnd)
sp::proj4string(pzn.coords)=prjinf

lspatial/sptemUS documentation built on May 29, 2019, 3:42 a.m.