You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ok so potentially a way to obviate this without actually fixing the underlying issue (which might not really need to be fixed) is to check & correct the documentation for shapeToRaster$size, since the user expecting metres will lead to initial values like 1000, whereas the proper value in my case was 0.01 for decent res that ran in distancesMatrix, or 0.001 for high res which crashed distancesMatrix.
This is interesting. I think something might have been lost along the way with the demise of RGDAL and co.
The size argument works in whatever units the coordinate system works in (which is not always metres, despite what the documentation unhelpfully states). In your case, gbm.auto is obtaining the shapefile in a lat-lon format, so each unit of size is 1 degree (~110km).
The documentation needs to be updated so size has a proper description
Per this, fixed in terra dev version 1.2.8; v1.7-78 is CRAN latest so this should be solved if that really is the underlying cause?
Trying the following code, which, if successful, could be boiled into actel to simplify the spatial process for distance matrix:
The shapefile created by
gbm.basemap
opens fine in QGis.Also potentially you could allow
shapeToRaster$shape
to accept R SF objects as inputs?The text was updated successfully, but these errors were encountered: