[Qgis-user] SAGA Mac OSX in QGIS 2.8.2

William Kyngesburye woklist at kyngchaos.com
Thu Jun 4 07:23:26 PDT 2015


Yes, it's probably a parameter change not accounted for.  I bundle SAGA 2.1.4, and it looks like Processing uses 2.1.3 descriptions unchanged, even in the latest Processing.  I thought Processing supported 2.1.4, but maybe that's just a placeholder until changes (like this) are figured out.

On Jun 3, 2015, at 5:02 PM, Olav Peeters <opeeters at gmail.com> wrote:

> I'm sorry William, 
> I should have mentioned... A GDAL related error:
> GDAL: Export Raster: could not initialize data objects
> 
> (see full log below)
> 
> or is the issue rather related to:
> Unknown option 'USER_SIZE'
> 
> .. related to the files in ~/.qgis2/python/plugins/processing/algs/saga/description/2.1.3/ maybe? But I did try reinstalling QGIS with ~/.qgis2/python/plugins/processing removed. I also updated the processing add-on to 2.9.2.
> 
> some other saga modules do function as expected (e.g. Polygon centroids)
> 
> Cheers,
> Olav
> 
> full log:
> 
> Algorithm Triangulation starting...
> grid_gridding "Triangulation" -TARGET_DEFINITION 0 -SHAPES "/some_points.shp" -FIELD "field_3" -TARGET_USER_XMIN 141951.6 -TARGET_USER_XMAX 162048.8 -TARGET_USER_YMIN 199950.2 -TARGET_USER_YMAX 224042.8 -USER_SIZE 100 -USER_GRID "/var/folders/g4/__hdq_jj7fb095y56hsbprzh0000gn/T/processing/53b78e46811a42e59e6cef905198a605/USERGRID.tif.sgrd"
> io_gdal 1 -GRIDS "/var/folders/g4/__hdq_jj7fb095y56hsbprzh0000gn/T/processing/53b78e46811a42e59e6cef905198a605/USERGRID.tif.sgrd" -FORMAT 1 -TYPE 0 -FILE "/var/folders/g4/__hdq_jj7fb095y56hsbprzh0000gn/T/processing/53b78e46811a42e59e6cef905198a605/USERGRID.tif"
> Unknown option 'USER_SIZE'
> ____________________________
> 
> ##### ## ##### ##
> ### ### ## ###
> ### # ## ## #### # ##
> ### ##### ## # #####
> ##### # ## ##### # ##
> ____________________________
> 
> SAGA Version: 2.1.4
> 
> ____________________________
> library path: /Applications/QGIS.app/Contents/MacOS/lib/saga/
> library name: libgrid_gridding
> library : Gridding
> tool : Triangulation
> author : O.Conrad (c) 2004
> ____________________________
> 
> 
> Usage: saga_cmd grid_gridding 5 -SHAPES [-FIELD ] [-TARGET_DEFINITION ] [-TARGET_USER_XMIN ] [-TARGET_USER_XMAX ] [-TARGET_USER_YMIN ] [-TARGET_USER_YMAX ] [-TARGET_USER_SIZE ] [-TARGET_USER_FITS ] [-TARGET_TEMPLATE ] [-TARGET_OUT_GRID ]
> -SHAPES: Points
> Shapes (input)
> -FIELD: Attribute
> Table field
> -TARGET_DEFINITION: Target Grid System
> Choice
> Available Choices:
> [0] user defined
> [1] grid or grid system
> Default: 0
> -TARGET_USER_XMIN: Left
> Floating point
> Default: 0.000000
> -TARGET_USER_XMAX: Right
> Floating point
> Default: 100.000000
> -TARGET_USER_YMIN: Bottom
> Floating point
> Default: 0.000000
> -TARGET_USER_YMAX: Top
> Floating point
> Default: 100.000000
> -TARGET_USER_SIZE: Cellsize
> Floating point
> Minimum: 0.000000
> Default: 1.000000
> -TARGET_USER_FITS: Fit
> Choice
> Available Choices:
> [0] nodes
> [1] cells
> Default: 0
> -TARGET_TEMPLATE: Target System
> Grid (optional input)
> -TARGET_OUT_GRID: Target Grid
> Grid (output)
> Error: Grid file could not be opened.
> Error: executing tool [GDAL: Export Raster]
> ____________________________
> 
> ##### ## ##### ##
> ### ### ## ###
> ### # ## ## #### # ##
> ### ##### ## # #####
> ##### # ## ##### # ##
> ____________________________
> 
> SAGA Version: 2.1.4
> 
> ____________________________
> library path: /Applications/QGIS.app/Contents/MacOS/lib/saga/
> library name: libio_gdal
> library : GDAL/OGR
> tool : GDAL: Export Raster
> author : O.Conrad (c) 2007
> ____________________________
> 
> Load grid: /var/folders/g4/__hdq_jj7fb095y56hsbprzh0000gn/T/processing/53b78e46811a42e59e6cef905198a605/USERGRID.tif.sgrd...
> failed
> GDAL: Export Raster: could not initialize data objects
> Converting outputs
> Loading resulting layers
> Algorithm Triangulation finished
> 
> 
> 
> On 03/06/15 15:44, William Kyngesburye wrote:
>> As the error suggests, check the log (processing log) for more details on why it failed.  Look in the INFO section for SAGA command output.
>> 
>> On Jun 2, 2015, at 3:22 AM, Olav Peeters 
>> <opeeters at gmail.com>
>>  wrote:
>> 
>> 
>>> Hi,
>>> I'm having issues with the SAGA modules in Qgis 2.8.2. Performing an analysis ends with:
>>> 
>>> Oooops! The following output layers could not be open
>>> Grid: /var/folders/g4/__hdq_jj7fb095y56hsbprzh0000gn/T/processing/e60cad6f141643fa9d38f85fc7e74aef/USERGRID.tif
>>> The above files could not be opened, which probably indicates that they were not correctly produced by the executed algorithm
>>> Checking the log information might help you see why those layers were not created as expected
>>> 
>>> According to the readme (dmg from 
>>> http://www.kyngchaos.com/software/qgis
>>> ) I should temporarily move all files in:
>>> /Library/Application Support/GDAL/1.11/PlugIns
>>> to elsewhere or rename the PlugIns directory. But this directory is empty.
>>> 
>>> I did install the recent GDAL 1.11 Complete [39.3 MiB] 2015-5-18 from:
>>> 
>>> http://www.kyngchaos.com/software/frameworks#gdal_complete
>>> 
>>> 
>>> The path as specified in the options of the processing plugin in QGIS is:
>>> /Applications/QGIS.app/Contents/MacOS/lib/saga/
>>> And indeed all SAGA modules are there..
>>> 
>>> Does anyone have any pointers?
>>> I also tried uninstalling, deleting ~/.qgis2, deleting the plist's of QGIS, reinstalling both 2.8.1 and 2.8.2.. no luck.
>>> 
>>> Cheers,
>>> Olav
>>> 
>>> _______________________________________________
>>> Qgis-user mailing list
>>> 
>>> Qgis-user at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>> -----
>> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
>> 
>> http://www.kyngchaos.com/
>> 
>> 
>> "The beast is actively interested only in now, and, as it is always now and always shall be, there is an eternity of time for the accomplishment of objects."
>> 
>> - the wisdom of Tarzan
>> 
>> 
>> 
>> 
>> 
>> 
> 
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

All generalizations are dangerous, even this one.





More information about the Qgis-user mailing list