Skip to content

Commit

Permalink
add resume operation in sits_uncertainty for polygons
Browse files Browse the repository at this point in the history
  • Loading branch information
OldLipe committed Apr 25, 2024
1 parent 5aab0ec commit 9efac95
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 7 deletions.
14 changes: 14 additions & 0 deletions R/api_uncertainty.R
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,20 @@
output_dir = output_dir,
ext = "gpkg"
)
# Resume feature
if (file.exists(out_file)) {
if (.check_messages()) {
.check_recovery(out_file)
}
uncert_tile <- .tile_segments_from_file(
file = out_file,
band = band,
base_tile = tile,
vector_class = "uncertainty_vector_cube",
update_bbox = TRUE
)
return(uncert_tile)
}
# select uncertainty function
uncert_fn <- switch(
band,
Expand Down
19 changes: 13 additions & 6 deletions inst/extdata/config_internals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,15 +178,22 @@ vector_cube :
bands :
segments :
probs_vector_cube:
s3_class : ["probs_vector_cube", "derived_vector_cube", "segs_cube",
"vector_cube"]
s3_class : ["probs_vector_cube", "derived_vector_cube",
"segs_cube", "vector_cube"]
bands :
probs-vector :
probs-vector:
class_vector_cube:
s3_class : ["class_vector_cube", "derived_vector_cube", "segs_cube",
"vector_cube"]
s3_class : ["class_vector_cube", "derived_vector_cube",
"segs_cube", "vector_cube"]
bands :
class-vector :
class-vector:
uncertainty_vector_cube:
s3_class : ["uncertainty_vector_cube", "derived_vector_cube",
"segs_cube", "vector_cube"]
bands :
entropy :
least :
margin :

# configuration for classified cubes
class_cube_data_type : "INT1U"
Expand Down
1 change: 1 addition & 0 deletions man/sits-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/sits_rfor.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9efac95

Please sign in to comment.