Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Habitat Sampler
HabitatSampler
Commits
9ca1b532
Commit
9ca1b532
authored
Jul 02, 2021
by
Johannes Knoch
Browse files
lower case for the first letter of the function; documentation adapted
parent
bfd31676
Changes
3
Hide whitespace changes
Inline
Side-by-side
R-package/NAMESPACE
View file @
9ca1b532
# Generated by roxygen2: do not edit by hand
export(WriteOutSamples)
export(clip)
export(iplot)
export(load_reference_as_shape)
...
...
@@ -13,4 +12,5 @@ export(sample_nb)
export(save_class_tiff)
export(save_kml)
export(save_run)
export(writeOutSamples)
exportClasses(Habitat)
R-package/R/WriteOutSamples.r
View file @
9ca1b532
...
...
@@ -14,7 +14,7 @@
#' @export
###write out selected samples
W
riteOutSamples
<-
function
(
inPath
,
step
,
className
,
output_format
=
c
(
"shp"
,
"geojson"
))
{
w
riteOutSamples
<-
function
(
inPath
,
step
,
className
,
output_format
=
c
(
"shp"
,
"geojson"
))
{
paste
(
inPath
,
"step_"
,
step
,
"_"
,
className
,
".tif"
,
sep
=
""
)
run1
<-
get
(
load
(
paste
(
inPath
,
"Run"
,
step
,
sep
=
""
)))
...
...
@@ -63,7 +63,7 @@ WriteOutSamples <- function (inPath, step, className, output_format = c("shp", "
res
<-
sp
::
spTransform
(
res
,
CRS
(
"+proj=longlat +datum=WGS84 +init=epsg:4326"
))
rgdal
::
writeOGR
(
res
,
obj
=
res
,
layer
=
paste
(
"SamplePoints_step_"
,
step
,
"_"
,
className
,
sep
=
""
),
dsn
=
paste
(
inPath
,
"SamplePoints_step_"
,
step
,
"_"
,
className
,
".geojson"
,
sep
=
""
),
driver
=
"GeoJSON"
,
...
...
@@ -76,7 +76,7 @@ WriteOutSamples <- function (inPath, step, className, output_format = c("shp", "
res
<-
sp
::
spTransform
(
res
,
CRS
(
"+proj=longlat +datum=WGS84 +init=epsg:4326"
))
rgdal
::
writeOGR
(
res
,
obj
=
res
,
layer
=
paste
(
"SamplePoints_step_"
,
step
,
"_"
,
className
,
sep
=
""
),
dsn
=
paste
(
inPath
,
"SamplePoints_step_"
,
step
,
"_"
,
className
,
".shp"
,
sep
=
""
),
driver
=
"ESRI Shapefile"
,
...
...
R-package/man/
W
riteOutSamples.Rd
→
R-package/man/
w
riteOutSamples.Rd
View file @
9ca1b532
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/WriteOutSamples.r
\name{
W
riteOutSamples}
\alias{
W
riteOutSamples}
\name{
w
riteOutSamples}
\alias{
w
riteOutSamples}
\title{Sample Collection for Habitat Types}
\usage{
W
riteOutSamples(inPath, step, className, output_format = c("shp", "geojson"))
w
riteOutSamples(inPath, step, className, output_format = c("shp", "geojson"))
}
\arguments{
\item{inPath}{file path (character) for results of habitat type sampling and probability mapping (same as outPath from function multi_Class_Sampling)}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment