gisma / uavRst

UAV related Remote Sensing Toolbox
https://gisma.github.io/uavRst
41 stars 17 forks source link

object 'giLinks' not found. Error in link2GI::linkSAGA(returnPaths = T) : unused argument (returnPaths = T) #11

Closed ahmedshovon closed 6 years ago

ahmedshovon commented 6 years ago

giLinks<-get_gi() Error in link2GI::linkSAGA(returnPaths = T) : unused argument (returnPaths = T)

tPos <- uavRst::treepos(chm1,

:: start crown identification... Error in uavRst::treepos(chm1, minTreeAlt = minTreeAlt, minCrownArea = 1, : object 'giLinks' not found

gisma commented 6 years ago

You need to install the github version of link2GI. There are some major changes in comparison to the CRAN version.

ahmedshovon commented 6 years ago

giLinks<-uavRst::get_gi() Error in if (nrow(params_GRASS) == 1) { : argument is of length zero In addition: Warning messages: 1: running command 'cmd.exe /c dir /B /S C:\grass*.bat' had status 1 Show Traceback

Rerun with Debug Error in if (nrow(params_GRASS) == 1) { : argument is of length zero

gisma commented 6 years ago

please send your sessioninfo please check also that GRASS7.x SAGA QGIS and OTB are installed

ahmedshovon commented 6 years ago

Do I need to install OTB as QGIS tool? Under the 'Available QGIS Data Provider Plugins' (Help--> About), OTB is not showing. Is there any way I can download it as a stand-alone software?

gisma commented 6 years ago

Please follow as mentioned in the readme the installation instructions of the RQGIS team

ahmedshovon commented 6 years ago

The OTB provider was removed from QGIS 3.0

https://gis.stackexchange.com/questions/273305/orfeo-toolbox-otb-algorithms-in-qgis-3-0

gisma commented 6 years ago

I know. It is not a question of OTB in QGIS but OTB on your system. You may install them with QGIS or standalone it should word. Please note I did not make any thests with QGIS based installations of QGIS 3.x. link2GI´ is a wrapper for the standalone binaries and it is also tested forQGIS` version <3.0

ahmedshovon commented 6 years ago

Package seems working now. When I tried to produce dsm from given las data I have this error:

dsm1 <- uavRst::pc2dsm(lasDir = "lasdata.las",

  • gisdbase_path = projRootDir,
  • type_smooth = "gauss",
  • otb_gauss_radius = gauss,
  • grid_size = actual_grid_size,
  • GRASSlocation = "dsm",
  • grass_lidar_method = "mean",
  • giLinks = giLinks)[[1]] Error: 'pc2dsm' is not an exported object from 'namespace:uavRst'

I have a CHM generated from lastools and lidR. I got this error.

tPos <- uavRst::treepos(chmR,

:: start crown identification... :: run pre-segmentation... :: filter results... :: find max height position... :: calculate chm statistics Error in ogrInfo(dsn = dsn, layer = layer, encoding = encoding, use_iconv = use_iconv, : Cannot open data source

gisma commented 6 years ago

pls retry with the updated version. if still not working you're welcome to reopen the issue