Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kriging from SAGA (Processing) fails to run #17557

Closed
qgib opened this issue Oct 16, 2013 · 6 comments
Closed

Kriging from SAGA (Processing) fails to run #17557

qgib opened this issue Oct 16, 2013 · 6 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms

Comments

@qgib
Copy link
Contributor

qgib commented Oct 16, 2013

Author Name: Marius Jigmond (Marius Jigmond)
Original Redmine Issue: 8877
Affected QGIS version: master
Redmine category:processing/core
Assignee: Giovanni Manghi


Hi,

I am unable to run Kringing functions from SAGA (Processing toolbox) apparently due to wrong/old options being used under the hood. The messages I get are:

Oooops! The following output layers could not be open
Grid: /tmp/processing/c0f434bbecc3435aaff4043f25fbb5d6/GRID.tif
Variance: /tmp/processing/4d1dc090b0ba4352a55e78d8e3a38edf/VARIANCE.tif

However, on closer inspection of the log messages the following shows up:

##################################################
Algorithm Ordinary kriging starting...
geostatistics_kriging "Ordinary Kriging" -SHAPES "/home/marius/data/gis/temp/dem_sample_val.shp" -FIELD "dem" -BVARIANCE -TARGET 0 -MODEL 0 -BLOCK -DBLOCK 100 -BLOG -NUGGET 0 -SILL 10 -RANGE 100 -LIN_B 1 -EXP_B 0.1 -POW_A 1 -POW_B 0.5 -MAXRADIUS 1000 -NPOINTS_MIN 4 -NPOINTS_MAX 20 -USER_CELL_SIZE 9.3e-05 -USER_FIT_EXTENT -USER_X_EXTENT_MIN -95.862751597 -USER_X_EXTENT_MAX -95.3336454213 -USER_Y_EXTENT_MIN 30.5063046258 -USER_Y_EXTENT_MIN 30.7779041076 -GRID "/tmp/processing/c0f434bbecc3435aaff4043f25fbb5d6/GRID.tif.sgrd" -VARIANCE "/tmp/processing/4d1dc090b0ba4352a55e78d8e3a38edf/VARIANCE.tif.sgrd"
io_gdal 1 -GRIDS "/tmp/processing/c0f434bbecc3435aaff4043f25fbb5d6/GRID.tif.sgrd" -FORMAT 1 -TYPE 0 -FILE "/tmp/processing/c0f434bbecc3435aaff4043f25fbb5d6/GRID.tif"-TRANSFORM
io_gdal 1 -GRIDS "/tmp/processing/4d1dc090b0ba4352a55e78d8e3a38edf/VARIANCE.tif.sgrd" -FORMAT 1 -TYPE 0 -FILE "/tmp/processing/4d1dc090b0ba4352a55e78d8e3a38edf/VARIANCE.tif"-TRANSFORM
Unknown option 'SHAPES'

library path: /usr/local/lib/saga/libgeostatistics_kriging.so
library name: Spatial and Geostatistics - Kriging
module name : Ordinary Kriging
author : O.Conrad (c) 2008


Usage: saga_cmd -POINTS [-ZFIELD ] [-TARGET ] [-TQUALITY ] [-LOG] [-BLOCK] [-DBLOCK ] [-VAR_MAXDIST ] [-VAR_NCLASSES ] [-VAR_NSKIP ] [-VAR_MODEL ] [-SEARCH_RANGE ] [-SEARCH_RADIUS ] [-SEARCH_POINTS_ALL ] [-SEARCH_POINTS_MIN ] [-SEARCH_POINTS_MAX ] [-SEARCH_DIRECTION ] [-USER_BVARIANCE] [-USER_XMIN ] [-USER_XMAX ] [-USER_YMIN ] [-USER_YMAX ] [-USER_SIZE ] [-USER_FIT ] [-USER_GRID ] [-USER_VARIANCE ] [-GRID_GRID ] [-GRID_VARIANCE ]

###################################################

This is with SAGA 2.1, QGIS 2.1.0-Master e04b426. I am having an identical issue on the Windows 7 64bit machine with standalone installer QGIS 2.0.1-2 and OSGEO4W installer.

When I try to run the command in a prompt by replacing SHAPES with POINTS additional options seem to be outdated (FIELD becomes ZFIELD, and so on).

@qgib
Copy link
Contributor Author

qgib commented Oct 16, 2013

Author Name: Giovanni Manghi (@gioman)


I will have a look at it.


  • assigned_to_id was changed from Victor Olaya to Giovanni Manghi

@qgib
Copy link
Contributor Author

qgib commented Oct 17, 2013

Author Name: Giovanni Manghi (@gioman)


I made a pull request that fixes it, the module changed almost completely since SAGA 2.0.8 (or at least have changed most of the parameters names).


  • status_id was changed from Open to In Progress

@qgib
Copy link
Contributor Author

qgib commented Nov 6, 2013

Author Name: Marius Jigmond (Marius Jigmond)


Just updated from master and on Ubuntu the Kriging seems to work with SAGA 2.1. Do you know if the changes are going to make it into one of the 2.0.x Windows installers or will it have to wait until 2.1.x series? Thanks for the quick fix.

@qgib
Copy link
Contributor Author

qgib commented Nov 6, 2013

Author Name: Filipe Dias (@fsdias)


You can install an updated version of Processing via the Plugin installer in QGIS 2.0.1.

@qgib
Copy link
Contributor Author

qgib commented Nov 7, 2013

Author Name: Giovanni Manghi (@gioman)


  • status_id was changed from In Progress to Closed
  • resolution was changed from to fixed/implemented

@qgib
Copy link
Contributor Author

qgib commented Jun 7, 2015

Author Name: Giovanni Manghi (@gioman)


  • category_id was changed from 94 to Processing/Core

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms labels May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

No branches or pull requests

1 participant