2

Can I use a multi-criteria-poi when calling classify_poi()? While I am really trying to classify points based on matching ~Classification and ~UserAttribute values, the code below throws the same error. It does work when poi is either based on ~Classification or based on ~Z, but not both.

LASfile <- system.file("extdata", "Megaplot.laz", package="lidR")
las  <- readLAS(LASfile, filter = "-keep_random_fraction 0.1")
poi <- ~Classification != LASGROUND & ~Z > 15
las <- classify_poi(las, LASHIGHVEGETATION, poi = poi)

1 Answer 1

1

You were almost correct. The syntax of a formula in R can contain only one ~

poi <- ~Classification != LASGROUND & Z > 15
1
  • Thank you. That fixed it.
    – Tripp Lowe
    Jun 28, 2022 at 1:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.