Raster outputs not buffered in 0.13.0? #103
Replies: 8 comments 7 replies
-
It happens that I changed thousands of lines of code between 0.12.0 and 0.13.0 to re-engineer Can you try to narrow down the problem before I start investigating. Do you have the problem with only one pit-fill iteration? Do you have the problem without any pit-fill stages (is f <- system.file("extdata", "bcts/", package = "lasR") |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
This was a very very silly bug. I wrote |
Beta Was this translation helpful? Give feedback.
-
By the way in pipeline = reader(filter = "Classification == 2") +
# create a point cloud of only the lowest ground point in each 50 cm grid cell
filter_with_grid(1, operator = "min", filter = keep_ground()) +
# generate a triangulation of these points
(tri = triangulate(max_edge = 120, filter = "Classification == 2",
#use_low = TRUE,
use_attribute = "Z")) +
#rasterize the triangulation at a 1-m resolution
(dtm = rasterize(1, tri, ofile = paste0(root_dir, "/output/_2_DTM_raster/DTM.tif")))
pipeline = reader(filter = "Classification == 2") +
# create a point cloud of only the lowest ground point in each 50 cm grid cell
filter_with_grid(1, operator = "min") +
# generate a triangulation of these points
(tri = triangulate(max_edge = 120,
#use_low = TRUE,
use_attribute = "Z")) +
#rasterize the triangulation at a 1-m resolution
(dtm = rasterize(1, tri, ofile = paste0(root_dir, "/output/_2_DTM_raster/DTM.tif"))) Last but not least, I did not remember that I added |
Beta Was this translation helpful? Give feedback.
-
Thanks so much for fixing this so quickly.
The reader stage runs but the classification causes a crash. |
Beta Was this translation helpful? Give feedback.
-
Yep. It crashes instantaneously if I run on those files. |
Beta Was this translation helpful? Give feedback.
-
Thanks JR. Any workaround for now to avoid reading the extra bytes? I tried running on |
Beta Was this translation helpful? Give feedback.
-
I ran the following lidR code to produce clean input files without extra bytes:
It still crashes instantaneously when I try to run anything in lasR on the clean inputs. |
Beta Was this translation helpful? Give feedback.
-
Hi JR,
Thanks for all the work you have put in to keep lasR up and running. It is an amazing tool!
The following code was producing a seamless DTM last week. After the update to 0.13.0, it now produces raster outputs that appear not to be buffered, or with gaps between tiles. The point clouds look perfect. Any idea what could be happening?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions