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
03c1e40e
Commit
03c1e40e
authored
Jul 08, 2021
by
Johannes Knoch
Browse files
swap varaible names
parent
c9546ba9
Changes
1
Hide whitespace changes
Inline
Side-by-side
R-package/R/save_files.r
View file @
03c1e40e
...
...
@@ -191,11 +191,11 @@ writeOutSamples <- function(in_path, step, class_name, output_format = c("shp",
result
<-
do.call
(
rbind
,
collect
)
res
<-
raster
::
extract
(
dummy_
raster
,
result
)
res
<-
raster
::
extract
(
dummy_
sample
,
result
)
if
(
length
(
which
(
is.na
(
res
)))
>
0
)
{
result
<-
result
[
-
which
(
is.na
(
res
)),
]
}
raster
::
crs
(
result
)
<-
raster
::
crs
(
dummy_
raster
)
raster
::
crs
(
result
)
<-
raster
::
crs
(
dummy_
sample
)
output_format
<-
match.arg
(
output_format
)
if
(
output_format
==
"geojson"
)
{
# Only transform is there points to be saved.
...
...
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