Skip to content

Commit

Permalink
Temporary workaround for #6
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Romain committed Mar 4, 2024
1 parent 8b94ae9 commit e4b4d45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/LASR/Vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,11 @@ bool Vector::write(const std::vector<PolygonXY>& poly)
polygon.addRing(&ring);
}

if (!polygon.IsValid())
// Commented to fix #temporarily
/*if (!polygon.IsValid())
{
eprint("WARNING: invalid polygon\n");
}
}*/

OGRFeature* feature = OGRFeature::CreateFeature(layer->GetLayerDefn());
feature->SetGeometry(&polygon);
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-lidR-compatibility.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test_that("lasR supports a LAS from lidR",

test_that("lasR supports a LAScatalog from lidR",
{
skip("C stack usage is too close to the limit")
#skip("C stack usage is too close to the limit")
skip_if_not_installed("lidR")

LASfile <- system.file("extdata", "Example.las", package="lasR")
Expand Down

0 comments on commit e4b4d45

Please sign in to comment.