[Qgis-user] QGIS with SAGA in macos

Agustin Diez-Castillo gvsig.mac at gmail.com
Tue Jun 11 08:32:51 PDT 2013


Hi all,
Some time ago, there were discussion on this list about running saga in
qgis for mac. As of today, the good news are that in master 499db4e it
seems that the saga commands run [1], however results are not as expected.
If I leave the raster as a temporary file something (ERROR 1: Writing
through VRTSourcedRasterBand is not supported) goes wrong, when I try to
the same but saving the result a python error [2] doesn't allow me to
create the desired tif.
Some saga command producing vector results run OK.
This time I was on macos 10.8.4.
Best
Agustin

[1]

SAGA execution console output

05:05:07 PM: Debug: Adding duplicate image handler for 'PNG file'

05:05:07 PM: Debug: Adding duplicate image handler for 'JPEG file'

05:05:07 PM: Debug: Adding duplicate image handler for 'TIFF file'

05:05:07 PM: Debug: Adding duplicate image handler for 'GIF file'

05:05:07 PM: Debug: Adding duplicate image handler for 'PNM file'

05:05:07 PM: Debug: Adding duplicate image handler for 'PCX file'

05:05:07 PM: Debug: Adding duplicate image handler for 'IFF file'

05:05:07 PM: Debug: Adding duplicate image handler for 'Windows icon file'

05:05:07 PM: Debug: Adding duplicate image handler for 'Windows cursor file'

05:05:07 PM: Debug: Adding duplicate image handler for 'Windows animated
cursor file'

05:05:07 PM: Debug: Adding duplicate image handler for 'TGA file'

05:05:07 PM: Debug: Adding duplicate image handler for 'XPM file'

_____________________________________________

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

### ### ## ###

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

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

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

_____________________________________________


library path: /Applications/SAGA.app/lib/saga/libio_gdal.dylib

library name: Import/Export - GDAL/OGR

module name : GDAL: Import Raster

author : O.Conrad (c) 2007 (A.Ringeler)

_____________________________________________





Parameters





Grids: No objects

Files:
"/var/folders/sm/1djysrdj1clbzvn35gv8vqq40000gn/T/sextante/sagaslopeaspectcurvature1ede263e70484902b4097120c94fbf1d.tif"

Transformation: no

Interpolation: B-Spline Interpolation




loading:
/var/folders/sm/1djysrdj1clbzvn35gv8vqq40000gn/T/sextante/sagaslopeaspectcurvature1ede263e70484902b4097120c94fbf1d.tif


Driver:
/var/folders/sm/1djysrdj1clbzvn35gv8vqq40000gn/T/sextante/sagaslopeaspectcurvature1ede263e70484902b4097120c94fbf1d.tif/


Cells: x 2000, y 2000

Bands: 1

Transformation x' = 700000.000000 + x * 25.000000 + y * 0.000000

Transformation y' = 4325000.000000 + x * 0.000000 + y * -25.000000


loading band [1/1]


Save grid:
/var/folders/sm/1djysrdj1clbzvn35gv8vqq40000gn/T/sextante/33fe826d05a04ddebf423a5f4adb31ef/sagas.sgrd...


ready


okay

05:05:09 PM: Debug: Adding duplicate image handler for 'PNG file'

05:05:09 PM: Debug: Adding duplicate image handler for 'JPEG file'

05:05:09 PM: Debug: Adding duplicate image handler for 'TIFF file'

05:05:09 PM: Debug: Adding duplicate image handler for 'GIF file'

05:05:09 PM: Debug: Adding duplicate image handler for 'PNM file'

05:05:09 PM: Debug: Adding duplicate image handler for 'PCX file'

05:05:09 PM: Debug: Adding duplicate image handler for 'IFF file'

05:05:09 PM: Debug: Adding duplicate image handler for 'Windows icon file'

05:05:09 PM: Debug: Adding duplicate image handler for 'Windows cursor file'

05:05:09 PM: Debug: Adding duplicate image handler for 'Windows animated
cursor file'

05:05:09 PM: Debug: Adding duplicate image handler for 'TGA file'

05:05:09 PM: Debug: Adding duplicate image handler for 'XPM file'

_____________________________________________

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

### ### ## ###

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

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

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

_____________________________________________


library path: /Applications/SAGA.app/lib/saga/libta_morphometry.dylib

library name: Terrain Analysis - Morphometry

module name : Slope, Aspect, Curvature

author : O.Conrad (c) 2001

_____________________________________________


Load grid:
/var/folders/sm/1djysrdj1clbzvn35gv8vqq40000gn/T/sextante/33fe826d05a04ddebf423a5f4adb31ef/sagas.sgrd...


ready


okay





Parameters





Grid system: 25; 2000x 2000y; 700012.5x 4275012.5y

Elevation: sagas

Slope: Slope

Aspect: Aspect

Curvature: Curvature

Plan Curvature: Plan Curvature

Profile Curvature: Profile Curvature

Method: Fit 2.Degree Polynom (Zevenbergen & Thorne 1987)



Save grid:
/var/folders/sm/1djysrdj1clbzvn35gv8vqq40000gn/T/sextante/sagaslopeaspectcurvature62a54bf65e34409caf443172524059bb.tif.sgrd...


ready


okay


Save grid:
/var/folders/sm/1djysrdj1clbzvn35gv8vqq40000gn/T/sextante/sagaslopeaspectcurvature2bd964a53d7e47459c3b168c73a976b7.tif.sgrd...


ready


okay


Save grid:
/var/folders/sm/1djysrdj1clbzvn35gv8vqq40000gn/T/sextante/sagaslopeaspectcurvature94dc20ffc26546d4838ac820666d427c.tif.sgrd...


ready


okay


Save grid:
/var/folders/sm/1djysrdj1clbzvn35gv8vqq40000gn/T/sextante/sagaslopeaspectcurvatured252caaa30454787a27a77dc5b9acd64.tif.sgrd...


ready


okay


Save grid:
/var/folders/sm/1djysrdj1clbzvn35gv8vqq40000gn/T/sextante/sagaslopeaspectcurvature29c5f1f974c44284b8fecc9e7c09e85d.tif.sgrd...


ready


okay

05:05:18 PM: Debug: Adding duplicate image handler for 'PNG file'

05:05:18 PM: Debug: Adding duplicate image handler for 'JPEG file'

05:05:18 PM: Debug: Adding duplicate image handler for 'TIFF file'

05:05:18 PM: Debug: Adding duplicate image handler for 'GIF file'

05:05:18 PM: Debug: Adding duplicate image handler for 'PNM file'

05:05:18 PM: Debug: Adding duplicate image handler for 'PCX file'

05:05:18 PM: Debug: Adding duplicate image handler for 'IFF file'

05:05:18 PM: Debug: Adding duplicate image handler for 'Windows icon file'

05:05:18 PM: Debug: Adding duplicate image handler for 'Windows cursor file'

05:05:18 PM: Debug: Adding duplicate image handler for 'Windows animated
cursor file'

05:05:18 PM: Debug: Adding duplicate image handler for 'TGA file'

05:05:18 PM: Debug: Adding duplicate image handler for 'XPM file'

ERROR 1: Writing through VRTSourcedRasterBand is not supported.


error: Writing dataset failed.


error: Dataset creation failed: Writing through VRTSourcedRasterBand is not
supported.


error: executing module [GDAL: Export Raster]

_____________________________________________

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

### ### ## ###

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

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

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

_____________________________________________


library path: /Applications/SAGA.app/lib/saga/libio_gdal.dylib

library name: Import/Export - GDAL/OGR

module name : GDAL: Export Raster

author : O.Conrad (c) 2007

_____________________________________________


Load grid:
/var/folders/sm/1djysrdj1clbzvn35gv8vqq40000gn/T/sextante/sagaslopeaspectcurvature62a54bf65e34409caf443172524059bb.tif.sgrd...


ready


okay





Parameters





Grid system: 25; 2000x 2000y; 700012.5x 4275012.5y

Grid(s): 1 object
(sagaslopeaspectcurvature62a54bf65e34409caf443172524059bb.tif)

File:
/var/folders/sm/1djysrdj1clbzvn35gv8vqq40000gn/T/sextante/sagaslopeaspectcurvature62a54bf65e34409caf443172524059bb.tif

Format: Virtual Raster

Data Type: match input data

Creation Options:



Band 1


05:05:19 PM: Debug: Adding duplicate image handler for 'JPEG file'

05:05:19 PM: Debug: Adding duplicate image handler for 'TIFF file'

05:05:19 PM: Debug: Adding duplicate image handler for 'GIF file'

05:05:19 PM: Debug: Adding duplicate image handler for 'PNM file'

05:05:19 PM: Debug: Adding duplicate image handler for 'PCX file'

05:05:19 PM: Debug: Adding duplicate image handler for 'IFF file'

05:05:19 PM: Debug: Adding duplicate image handler for 'Windows icon file'

05:05:19 PM: Debug: Adding duplicate image handler for 'Windows cursor file'

05:05:19 PM: Debug: Adding duplicate image handler for 'Windows animated
cursor file'

05:05:19 PM: Debug: Adding duplicate image handler for 'TGA file'

05:05:19 PM: Debug: Adding duplicate image handler for 'XPM file'

ERROR 1: Writing through VRTSourcedRasterBand is not supported.


error: Writing dataset failed.


error: Dataset creation failed: Writing through VRTSourcedRasterBand is not
supported.


error: executing module [GDAL: Export Raster]

_____________________________________________

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

### ### ## ###

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

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

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

_____________________________________________


library path: /Applications/SAGA.app/lib/saga/libio_gdal.dylib

library name: Import/Export - GDAL/OGR

module name : GDAL: Export Raster

author : O.Conrad (c) 2007

_____________________________________________


Load grid:
/var/folders/sm/1djysrdj1clbzvn35gv8vqq40000gn/T/sextante/sagaslopeaspectcurvature2bd964a53d7e47459c3b168c73a976b7.tif.sgrd...


ready


okay





Parameters





Grid system: 25; 2000x 2000y; 700012.5x 4275012.5y

Grid(s): 1 object
(sagaslopeaspectcurvature2bd964a53d7e47459c3b168c73a976b7.tif)

File:
/var/folders/sm/1djysrdj1clbzvn35gv8vqq40000gn/T/sextante/sagaslopeaspectcurvature2bd964a53d7e47459c3b168c73a976b7.tif

Format: Virtual Raster

Data Type: match input data

Creation Options:



Band 1


05:05:21 PM: Debug: Adding duplicate image handler for 'JPEG file'

05:05:21 PM: Debug: Adding duplicate image handler for 'TIFF file'

05:05:21 PM: Debug: Adding duplicate image handler for 'GIF file'

05:05:21 PM: Debug: Adding duplicate image handler for 'PNM file'

05:05:21 PM: Debug: Adding duplicate image handler for 'PCX file'

05:05:21 PM: Debug: Adding duplicate image handler for 'IFF file'

05:05:21 PM: Debug: Adding duplicate image handler for 'Windows icon file'

05:05:21 PM: Debug: Adding duplicate image handler for 'Windows cursor file'

05:05:21 PM: Debug: Adding duplicate image handler for 'Windows animated
cursor file'

05:05:21 PM: Debug: Adding duplicate image handler for 'TGA file'

05:05:21 PM: Debug: Adding duplicate image handler for 'XPM file'

ERROR 1: Writing through VRTSourcedRasterBand is not supported.


error: Writing dataset failed.


error: Dataset creation failed: Writing through VRTSourcedRasterBand is not
supported.


error: executing module [GDAL: Export Raster]

_____________________________________________

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

### ### ## ###

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

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

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

_____________________________________________


library path: /Applications/SAGA.app/lib/saga/libio_gdal.dylib

library name: Import/Export - GDAL/OGR

module name : GDAL: Export Raster

author : O.Conrad (c) 2007

_____________________________________________


Load grid:
/var/folders/sm/1djysrdj1clbzvn35gv8vqq40000gn/T/sextante/sagaslopeaspectcurvature94dc20ffc26546d4838ac820666d427c.tif.sgrd...


ready


okay





Parameters





Grid system: 25; 2000x 2000y; 700012.5x 4275012.5y

Grid(s): 1 object
(sagaslopeaspectcurvature94dc20ffc26546d4838ac820666d427c.tif)

File:
/var/folders/sm/1djysrdj1clbzvn35gv8vqq40000gn/T/sextante/sagaslopeaspectcurvature94dc20ffc26546d4838ac820666d427c.tif

Format: Virtual Raster

Data Type: match input data

Creation Options:



Band 1


05:05:22 PM: Debug: Adding duplicate image handler for 'JPEG file'

05:05:22 PM: Debug: Adding duplicate image handler for 'TIFF file'

05:05:22 PM: Debug: Adding duplicate image handler for 'GIF file'

05:05:22 PM: Debug: Adding duplicate image handler for 'PNM file'

05:05:22 PM: Debug: Adding duplicate image handler for 'PCX file'

05:05:22 PM: Debug: Adding duplicate image handler for 'IFF file'

05:05:22 PM: Debug: Adding duplicate image handler for 'Windows icon file'

05:05:22 PM: Debug: Adding duplicate image handler for 'Windows cursor file'

05:05:22 PM: Debug: Adding duplicate image handler for 'Windows animated
cursor file'

05:05:22 PM: Debug: Adding duplicate image handler for 'TGA file'

05:05:22 PM: Debug: Adding duplicate image handler for 'XPM file'

ERROR 1: Writing through VRTSourcedRasterBand is not supported.


error: Writing dataset failed.


error: Dataset creation failed: Writing through VRTSourcedRasterBand is not
supported.


error: executing module [GDAL: Export Raster]

_____________________________________________

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

### ### ## ###

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

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

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

_____________________________________________


library path: /Applications/SAGA.app/lib/saga/libio_gdal.dylib

library name: Import/Export - GDAL/OGR

module name : GDAL: Export Raster

author : O.Conrad (c) 2007

_____________________________________________


Load grid:
/var/folders/sm/1djysrdj1clbzvn35gv8vqq40000gn/T/sextante/sagaslopeaspectcurvatured252caaa30454787a27a77dc5b9acd64.tif.sgrd...


ready


okay





Parameters





Grid system: 25; 2000x 2000y; 700012.5x 4275012.5y

Grid(s): 1 object
(sagaslopeaspectcurvatured252caaa30454787a27a77dc5b9acd64.tif)

File:
/var/folders/sm/1djysrdj1clbzvn35gv8vqq40000gn/T/sextante/sagaslopeaspectcurvatured252caaa30454787a27a77dc5b9acd64.tif

Format: Virtual Raster

Data Type: match input data

Creation Options:



Band 1


05:05:24 PM: Debug: Adding duplicate image handler for 'JPEG file'

05:05:24 PM: Debug: Adding duplicate image handler for 'TIFF file'

05:05:24 PM: Debug: Adding duplicate image handler for 'GIF file'

05:05:24 PM: Debug: Adding duplicate image handler for 'PNM file'

05:05:24 PM: Debug: Adding duplicate image handler for 'PCX file'

05:05:24 PM: Debug: Adding duplicate image handler for 'IFF file'

05:05:24 PM: Debug: Adding duplicate image handler for 'Windows icon file'

05:05:24 PM: Debug: Adding duplicate image handler for 'Windows cursor file'

05:05:24 PM: Debug: Adding duplicate image handler for 'Windows animated
cursor file'

05:05:24 PM: Debug: Adding duplicate image handler for 'TGA file'

05:05:24 PM: Debug: Adding duplicate image handler for 'XPM file'

ERROR 1: Writing through VRTSourcedRasterBand is not supported.


error: Writing dataset failed.


error: Dataset creation failed: Writing through VRTSourcedRasterBand is not
supported.


error: executing module [GDAL: Export Raster]

_____________________________________________

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

### ### ## ###

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

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

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

_____________________________________________


library path: /Applications/SAGA.app/lib/saga/libio_gdal.dylib

library name: Import/Export - GDAL/OGR

module name : GDAL: Export Raster

author : O.Conrad (c) 2007

_____________________________________________


Load grid:
/var/folders/sm/1djysrdj1clbzvn35gv8vqq40000gn/T/sextante/sagaslopeaspectcurvature29c5f1f974c44284b8fecc9e7c09e85d.tif.sgrd...


ready


okay





Parameters





Grid system: 25; 2000x 2000y; 700012.5x 4275012.5y

Grid(s): 1 object
(sagaslopeaspectcurvature29c5f1f974c44284b8fecc9e7c09e85d.tif)

File:
/var/folders/sm/1djysrdj1clbzvn35gv8vqq40000gn/T/sextante/sagaslopeaspectcurvature29c5f1f974c44284b8fecc9e7c09e85d.tif

Format: Virtual Raster

Data Type: match input data

Creation Options:



Band 1


-------------------------------------------

[2]

An error has occured while executing Python code:

Traceback (most recent call last):
  File
"/Applications/QGIS_2.0-dev.app/Contents/MacOS/../Resources/python/plugins/sextante/gui/OutputSelectionPanel.py",
line 92, in saveToFile
    filename= unicode(files.first())
AttributeError: 'list' object has no attribute 'first'

Python version:
2.7.2 (default, Oct 11 2012, 20:14:37)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)]


QGIS version:
1.9.0-Master Master, 499db4e

Python path:
['/Applications/QGIS_2.0-dev.app/Contents/MacOS/../Resources/python/plugins/sextante',
'/Applications/QGIS_2.0-dev.app/Contents/MacOS/../Resources/python',
'/Users/adiez/.qgis2/python', '/Users/adiez/.qgis2/python/plugins',
'/Applications/QGIS_2.0-dev.app/Contents/MacOS/../Resources/python/plugins',
'/Library/Frameworks/SQLite3.framework/Versions/B/Python/2.7',
'/Library/Python/2.7/site-packages/numpy-override',
'/Library/Frameworks/MapServer.framework/Versions/6.0/Python/2.7',
'/Library/Frameworks/GDAL.framework/Versions/1.10/Python/2.7/site-packages',
'/Library/Frameworks/cairo.framework/Versions/1/Python/2.7',
'/usr/local/lib/wxPython-2.9.4.0/lib/python2.7/site-packages',
'/usr/local/lib/wxPython-2.9.4.0/lib/python2.7/site-packages/wx-2.9.4-osx_cocoa',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload',
'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC',
'/Library/Python/2.7/site-packages',
'/Library/Python/2.7/site-packages/PIL',
'/usr/local/lib/wxPython-2.9.4.0/lib/python2.7',
'/Applications/QGIS_2.0-dev.app/Contents/Resources/python/plugins/fTools/tools']
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20130611/5d30b896/attachment.html>


More information about the Qgis-user mailing list