Discretize spatial polygons to points.
discretizePolygon(x, cellsize, id=NULL, value=NULL, showProgressBar=FALSE)
a discreteArea object: list(areaValues, discretePoints).
values of areas: data.frame(areaId,centx,centy,value), where areaId is polygon id; centx, centy are centroids of polygons.
discretized points of areas: data.frame(areaId,ptx,pty,weight), where ptx, pty are discretized points; by default, weight is equal for all points.
a SpatialPolygonsDataFrame object.
cell size of discretized grid.
unique polygon id. if not given, polygons will be numbered from 1 to n accroding the record order.
polygon value. if not given, NA value will be assigned.
whether show progress.
discretizeRaster, ataKriging