Closed jfbourdon closed 1 year ago
Confirmed for terra
. It works for raster
. In the meantime the document states that dtm
must be a RasterLayer
Humm... the error was with raster 3.6-3
. I updated to 3.6-14
and the error is now gone but I have instead a deprecation warning: as(<dsCMatrix>, "dgTMatrix") is deprecated since Matrix 1.5-0; do as(as(., "generalMatrix"), "TsparseMatrix") instead
. The result seems ok.
I tried with terra
because a saw some calls/check for it in rasterize_conductivity.LAS()
and transition()
. Looking again, it's clear that only RasterLayer
is expected everywhere else in the code. So I guess I just need to keep some packages versions in sync.
I guess deprecation comes from SparseMatrix
so it should comes from `gdistance code as far as I can tell. I didn't investigate yet because it works.
Support of terra is something I should do. But honestly I have other project on the table. Something very nice for you btw and I may do a presentation for mffp someday.
I have now an error that seems to be linked to the loaded DTM. The issue is with both
RasterLayer
andSpatRast
format. Tested with the current master (d39fc2c), sf 1.0-8 and lidR 4.0.1Using
RasterLayer
:Using
SpatRast
: