gpt4 book ai didi

linux - 如何用RSAGA解决 "Error: tool"?

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:08:42 25 4
gpt4 key购买 nike

我在 Ubuntu 14 64 位版本上使用 R 3.1.1。我安装了 SAGA GIS 2.1.2 和 RSAGA 0.93-6。

目前看来一切正常。

rsaga.env() 有效,我使用:

work_env <- rsaga.env(modules='/usr/lib/x86_64-linux-gnu/saga/')

因为在 64 位上,模块位于其他地方。获取库也能正常工作:

> rsaga.get.libraries(path=work_env$modules)
[1] "climate_tools" "contrib_perego" "db_odbc" "db_pgsql"
[5] "docs_html" "docs_pdf" "garden_3d_viewer" "garden_fractals"
[9] "garden_games" "garden_learn_to_program" "garden_webservices" "grid_analysis"
[13] "grid_calculus_bsl" "grid_calculus" "grid_filter" "grid_gridding"
[17] "grid_spline" "grid_tools" "grid_visualisation" "imagery_classification"
[21] "imagery_rga" "imagery_segmentation" "imagery_svm" "imagery_tools"
[25] "io_esri_e00" "io_gdal" "io_gps" "io_grid_grib2"
[29] "io_grid_image" "io_grid" "io_shapes_dxf" "io_shapes"
[33] "io_table" "io_virtual" "pj_georeference" "pj_proj4"
[37] "pointcloud_tools" "pointcloud_viewer" "shapes_grid" "shapes_lines"
[41] "shapes_points" "shapes_polygons" "shapes_tools" "shapes_transect"
[45] "sim_cellular_automata" "sim_ecosystems_hugget" "sim_erosion" "sim_hydrology"
[49] "sim_ihacres" "statistics_grid" "statistics_kriging" "statistics_points"
[53] "statistics_regression" "table_calculus" "table_tools" "ta_channels"
[57] "ta_compound" "ta_hydrology" "ta_lighting" "ta_morphometry"
[61] "ta_preprocessor" "ta_profiles" "ta_slope_stability" "tin_tools"
[65] "tin_viewer"

但是当我尝试获取模块或其他任何东西时,它给出了一个奇怪的错误:

> rsaga.get.modules("ta_preprocessor", env=work_env)
Error: tool
$ta_preprocessor
NULL

我发现 rsaga 正式不支持 SAGA GIS 2.1.0 的更高版本,但是当我尝试 2.1.0 时,我得到另一个问题中描述的错误:https://gis.stackexchange.com/questions/109497/rsaga-saga-cmd-2-1-0-error-inconsistency

我该如何解决这个错误?

最佳答案

我通过从源代码 (http://sourceforge.net/p/saga-gis/wiki/Compiling%20a%20Linux%20Unicode%20version/) 编译 SAGA GIS 2.1.1 来修复它。当我使用 RSAGA 执行工具时,我确实遇到了另一个错误; “错误:模块”,但执行似乎没问题。

此外,SAGA GIS 有时会因段错误而退出……但不会经常发生。

关于linux - 如何用RSAGA解决 "Error: tool"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26777241/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com