Skip to content

Commit

Permalink
fix problems with sits_view
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbertocamara committed Nov 21, 2024
1 parent 416700a commit 93a681e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/api_view.R
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@
x = st_obj_new,
opacity = opacity,
colors = colors,
method = "near",
method = "auto",
group = "classification",
project = FALSE,
maxBytes = max_bytes
Expand Down
3 changes: 3 additions & 0 deletions src/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.o
*.so
*.dll
3 changes: 3 additions & 0 deletions src/Makevars
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CXX_STD = CXX14
PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS)
PKG_LIBS = $(SHLIB_OPENMP_CXXFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
2 changes: 1 addition & 1 deletion src/Makevars.win
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# CXX_STD = CXX11
CXX_STD = CXX14
PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS)
PKG_LIBS = $(SHLIB_OPENMP_CXXFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
2 changes: 1 addition & 1 deletion tests/testthat/test-segmentation.R
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ test_that("Segmentation", {
"class" %in% colnames(vector_class)
)
p_class_segs <- plot(class_segs)
<- p_class_segs[[1]]$shp
sf_segs <- p_class_segs[[1]]$shp
bbox <- sf::st_bbox(sf_segs)
expect_true(bbox[["xmin"]] < bbox[["xmax"]])
expect_true(bbox[["ymin"]] < bbox[["ymax"]])
Expand Down

0 comments on commit 93a681e

Please sign in to comment.