writeOutSamples.Rd 1.23 KB
Newer Older
carstennh's avatar
carstennh committed
1
% Generated by roxygen2: do not edit by hand
2
% Please edit documentation in R/writeOutSamples.r
3
4
\name{writeOutSamples}
\alias{writeOutSamples}
carstennh's avatar
carstennh committed
5
6
\title{Sample Collection for Habitat Types}
\usage{
7
writeOutSamples(in_path, step, class_name, output_format = c("shp", "geojson"))
carstennh's avatar
carstennh committed
8
9
}
\arguments{
10
\item{in_path}{file path (character) for results of habitat type sampling and probability mapping (same as outPath from function multi_Class_Sampling)}
carstennh's avatar
carstennh committed
11
12
13

\item{step}{step number (numeric)}

14
\item{class_name}{name (character) of habitat type for which samples should be selected}
15
16

\item{output_format}{format (character) of output; whether shp (default) or geojson}
carstennh's avatar
carstennh committed
17
18
}
\value{
19
ESRI shapefiles/GeoJSON with name: SamplePoints_step_classname.shp/SamplePoints_step_classname.geojson
carstennh's avatar
carstennh committed
20
\enumerate{
21
22
\item Point Shape/GeoJSON represents pixel that belong to selected habitat type and can be used as reference for further model building.
ESRI shapefiles have the same CRS as the input raster. GeoJSON files are in the standard CRS of GeoJSON (EPSG:4326).
carstennh's avatar
carstennh committed
23
24
25
}
}
\description{
26
Writes out a set of samples (SpatialPointsDataFrame) into ESRI shapefiles or a GeoJSON file for a selected habitat type. Each point represents a valid sample location that identifies the selected habitat type.
carstennh's avatar
carstennh committed
27
}