Skip to content

Commit

Permalink
include shapefile validity test
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoVilela committed Nov 15, 2023
1 parent 0054d8b commit 3614db9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/defensive_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
if (!terra_check) {
stop("all shapefiles provided should be a SpatVector object.")
}
if (!terra::is.valid(shape)) {
shape <- terra::makeValid(shape)
}
return(shape)
}

Expand Down
Binary file modified tests/testthat/Rplots.pdf
Binary file not shown.
Binary file added tests/testthat/Rplots6.pdf
Binary file not shown.

0 comments on commit 3614db9

Please sign in to comment.