Description Usage Arguments Value Author(s) Examples
calculate statitiscs of polygon based raster extraction. Returns a spatialpolygon dataframe containing decriptive statistics
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
rasternames |
vector of raster* objects default is NULL |
spdf |
spatial polygon dataframe default is NULL |
count |
0 1 switch |
min |
0 1 switch |
max |
0 1 switch |
sum |
0 1 switch |
range |
0 1 switch |
mean |
0 1 switch |
var |
0 1 switch |
stddev |
0 1 switch |
quantile |
number of quantile |
parallel |
run it parallel default is 1 |
proj |
projection string |
path_run |
run time folder for all kind of calculations, by default tempdir() |
giLinks |
list of GI tools cli pathes, default is NULL |
data frame containing the descriptive statistic of all corresponding raster* objects for each given polygon
Chris Reudenbach
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## Not run:
# required packages
require(uavRst)
require(link2GI)
# create and check the links to the GI software
giLinks<-uavRst::linkGI(linkItems = c("saga","gdal"))
if (giLinks$saga$exist) {
# get the rgb image, chm and training data
url <- "https://github.com/gisma/gismaData/raw/master/uavRst/data/tutorial_data.zip"
utils::download.file(url, file.path(tempdir(),"tutorial_data.zip"))
unzip(zipfile = file.path(tempdir(),"tutorial_data.zip"), exdir = tempdir())
polyStat <- poly_stat("chm_3-3_train1",
spdf = "rgb_3-3_train1.shp",
giLinks=giLinks)
raster::plot(polyStat)
}
##+
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.