We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using the manual correction on an automatic tree detection, the CRS results in NA. The tree segmentation then results in error.
LASfile <- system.file("extdata", "MixedConifer.laz", package="lidR") las <- readLAS(LASfile, select = "xyzr", filter = "-drop_z_below 0") chm <- rasterize_canopy(las, 0.5, pitfree(subcircle = 0.2)) ttops <- locate_trees(las, lmf(ws = 5)) manual_ttops <- locate_trees(las, manual(ttops)) algo <- dalponte2016(chm, manual_ttops) seg_las <- segment_trees(las, algo) #> Error in geos_op2_geom("intersection", x, y, ...) : #> st_crs(x) == st_crs(y) n'est pas TRUE
st_crs(manual_ttops) #> Coordinate Reference System: NA st_crs(ttops) #> Coordinate Reference System: #> User input: EPSG:26912
To work around this error, we can assign the st_crs(manual_ttops) <- st_crs(ttops). Then, these lines and the tree segmentation works fine:
st_crs(manual_ttops) <- st_crs(ttops)
algo <- dalponte2016(chm, manual_ttops) seg_las <- segment_trees(las, algo)
The text was updated successfully, but these errors were encountered:
0e0c887
Jean-Romain
No branches or pull requests
When using the manual correction on an automatic tree detection, the CRS results in NA. The tree segmentation then results in error.
To work around this error, we can assign the
st_crs(manual_ttops) <- st_crs(ttops)
. Then, these lines and the tree segmentation works fine:The text was updated successfully, but these errors were encountered: