Re: [Qgis-user] Processing Model issue

2017-12-04 Thread Richard McDonnell

Nyall,
Thanks for getting back.
If the steps in the model are done one after the other outside of model, 
the process works. Ive not run saga directly from the command line.

Regards,

Richard.

On 01/12/2017 20:32, Nyall Dawson wrote:

On 1 December 2017 at 23:10, Richard McDonnell  wrote:

Hi,
Ive an issue, which Im hoping someone could have a solution or point me in a 
direction of a solution.
We have developed a Processing model on QGIS 2.8, which interpolates a raster 
from points and subtracts the resultant from a DEM to produce a depth raster.
This tool works flawlessly in 2.8, but in 2.14, 2.18 and 2.99 it fails at the 
Raster Calculator stage, producing the same error. I have ran this using both 
GDAL and SAGA raster calculators, but no luck.
See attached error Logs.
I would appreciate any help in this.
Regards,

Seems like the error is coming from SAGA:

Error: grid: memory allocation failed [1545.94mb]

If you run the SAGA command manually (via the command line), does it
work? Maybe the error is due to a newer SAGA version, and unrelated to
QGIS.
Nyall



--
*_Richard McDonnell_*
*GIS Specialist PgD GIS AssocSCSI*
*OPW FRM Data Management*
*52 Stephens Green, Dublin 2.*
TEL: 01 6476543

OPW - Ag féachaint don am atá le teacht - Ag caomhnú ón am atá thart
OPW - Looking to the future - Caring for the past

***
Email Disclaimer: http://www.opw.ie/en/disclaimer/

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Processing Model issue

2017-12-01 Thread Nyall Dawson
On 1 December 2017 at 23:10, Richard McDonnell  wrote:
>
> Hi,
> Ive an issue, which Im hoping someone could have a solution or point me in a 
> direction of a solution.
> We have developed a Processing model on QGIS 2.8, which interpolates a raster 
> from points and subtracts the resultant from a DEM to produce a depth raster.
> This tool works flawlessly in 2.8, but in 2.14, 2.18 and 2.99 it fails at the 
> Raster Calculator stage, producing the same error. I have ran this using both 
> GDAL and SAGA raster calculators, but no luck.
> See attached error Logs.
> I would appreciate any help in this.
> Regards,

Seems like the error is coming from SAGA:

Error: grid: memory allocation failed [1545.94mb]

If you run the SAGA command manually (via the command line), does it
work? Maybe the error is due to a newer SAGA version, and unrelated to
QGIS.
Nyall
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Processing Model issue

2017-12-01 Thread Richard McDonnell

Hi,
Ive an issue, which Im hoping someone could have a solution or point me 
in a direction of a solution.
We have developed a Processing model on QGIS 2.8, which interpolates a 
raster from points and subtracts the resultant from a DEM to produce a 
depth raster.
This tool works flawlessly in 2.8, but in 2.14, 2.18 and 2.99 it fails 
at the Raster Calculator stage, producing the same error. I have ran 
this using both GDAL and SAGA raster calculators, but no luck.

See attached error Logs.
I would appreciate any help in this.
Regards,

Richard.

--
*/_Richard McDonnell_/*
*GIS Specialist PgD GIS AssocSCSI*
*OPW FRM Data Management*
*52 Stephens Green, Dublin 2. D02 DR67*
TEL: 01 6476543

/*Sending files bigger than 9MB please use*/ *https://filetransfer.opw 
*


OPW - Ag féachaint don am atá le teacht - Ag caomhnú ón am atá thart
OPW - Looking to the future - Caring for the past

***
Email Disclaimer: http://www.opw.ie/en/disclaimer/

Algorithm Test_Raster_Calc starting...
Prepare algorithm: SAGAINVERSEDISTANCEWEIGHTED_1
Running Inverse distance weighted interpolation [1/2]
Parameters: SHAPES 
=\\tsclient\Z\DataManagementProject\12_FRAM_Data\00_FINAL_datasets\nodes\suir\Nodes_M1_M6_160617_ti_5k.shp,
 FIELD =WL10Pct, DW_WEIGHTING =1, DW_IDW_POWER =2, DW_IDW_OFFSET =False, 
DW_BANDWIDTH =1, SEARCH_RANGE =0, SEARCH_RADIUS =1000, SEARCH_POINTS_ALL =0, 
SEARCH_POINTS_MIN =-1, SEARCH_POINTS_MAX =10, SEARCH_DIRECTION =0, 
SEARCH_POINTS_ALL =0, SEARCH_POINTS_MAX =10, OUTPUT_EXTENT 
=199054.716026,203254.597244,135900.556902,140589.313182, TARGET_USER_SIZE =2, 
TARGET_DEFINITION =0, TARGET_USER_FITS =0, TARGET_TEMPLATE 
=D:\TEST\suir_02m_mosaic_reproject.tif
io_gdal 0 -TRANSFORM 1 -RESAMPLING 0 -GRIDS 
"C:\Users\User\AppData\Local\Temp\processing0641d3031b764e9c8afad7758f3cc5b1\682968086f4d43e4b3c7e8575021f019\suir02mmosaicreproject.sgrd"
 -FILES "D:\TEST\suir_02m_mosaic_reproject.tif"
grid_gridding "Inverse Distance Weighted" -SHAPES 
"\\tsclient\Z\DataManagementProject\12_FRAM_Data\00_FINAL_datasets\nodes\suir\Nodes_M1_M6_160617_ti_5k.shp"
 -FIELD "WL10Pct" -DW_WEIGHTING 1 -DW_IDW_POWER 2 -DW_IDW_OFFSET false 
-DW_BANDWIDTH 1 -SEARCH_RANGE 0 -SEARCH_RADIUS 1000 -SEARCH_POINTS_ALL 0 
-SEARCH_POINTS_MIN -1 -SEARCH_POINTS_MAX 10 -SEARCH_DIRECTION 0 
-SEARCH_POINTS_ALL 0 -SEARCH_POINTS_MAX 10 -TARGET_USER_XMIN 199054.716026 
-TARGET_USER_XMAX 203254.597244 -TARGET_USER_YMIN 135900.556902 
-TARGET_USER_YMAX 140589.313182 -TARGET_USER_SIZE 2 -TARGET_DEFINITION 0 
-TARGET_USER_FITS 0 -TARGET_TEMPLATE 
"C:\Users\User\AppData\Local\Temp\processing0641d3031b764e9c8afad7758f3cc5b1\682968086f4d43e4b3c7e8575021f019\suir02mmosaicreproject.sgrd"
 -TARGET_OUT_GRID 
"C:\Users\User\AppData\Local\Temp\processing0641d3031b764e9c8afad7758f3cc5b1\1bb13bcdf5434f94877a695133c56039\TARGETOUTGRID.sdat"

C:\OSGeo4W\bin>set SAGA=C:\OSGeo4W\apps\saga-ltr

C:\OSGeo4W\bin>set SAGA_MLB=C:\OSGeo4W\apps\saga-ltr\modules

C:\OSGeo4W\bin>PATH=c:\osgeo4w\apps\python27\lib\site-packages\shapely-1.2.18-py2.7-win32.egg\shapely\DLLs;C:\OSGeo4W\apps\Python27\DLLs;C:\OSGeo4W\apps\Python27\lib\site-packages\numpy\core;C:\OSGeo4W\apps\qgis-ltr\bin;C:\OSGeo4W\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32\WBem;C:\OSGeo4W\apps\Python27\Scripts;;C:\OSGeo4W\apps\saga-ltr;C:\OSGeo4W\apps\saga-ltr\modules

C:\OSGeo4W\bin>saga_cmd io_gdal 0 -TRANSFORM 1 -RESAMPLING 0 -GRIDS 
"C:\Users\User\AppData\Local\Temp\processing0641d3031b764e9c8afad7758f3cc5b1\682968086f4d43e4b3c7e8575021f019\suir02mmosaicreproject.sgrd"
 -FILES "D:\TEST\suir_02m_mosaic_reproject.tif"


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


SAGA Version: 2.3.2 (32 bit)


library path: C:\OSGeo4W\apps\saga-ltr\modules\
library name: io_gdal
library : GDAL/OGR
tool : Import Raster
author : O.Conrad (c) 2007 (A.Ringeler)
processors : 12 [12]




Parameters


Grids: No objects
Files: "D:\TEST\suir_02m_mosaic_reproject.tif"
Select from Multiple Bands:
Alphanumeric Sorting: yes
Transformation: yes
Resampling: Nearest Neighbour


loading: D:\TEST\suir_02m_mosaic_reproject.tif



Driver: GTiff

Bands: 1

Rows: 43500

Columns: 34000


loading: suir_02m_mosaic_reproject
Error: grid: memory allocation failed [1545.94mb]
Error: executing tool [Import Raster]

C:\OSGeo4W\bin>saga_cmd grid_gridding "Inverse Distance Weighted" -SHAPES 
"\\tsclient\Z\DataManagementProject\12_FRAM_Data\00_FINAL_datasets\nodes\suir\Nodes_M1_M6_160617_ti_5k.shp"
 -FIELD "WL10Pct" -DW_WEIGHTING 1 -DW_IDW_POWER 2 -DW_IDW_OFFSET false 
-DW_BANDWIDTH 1 -SEARCH_RANGE 0 -SEARCH_RADIUS 1000 -SEARCH_POINTS_ALL 0 
-SEARCH_POINTS_MIN -1 -SEARCH_POINTS_MAX 10 -SEARCH_DIRECTION 0 
-SEARCH_POINTS_ALL 0 -SEARCH_POINTS_MAX 10 -TARGET_USER_XMIN 199054.716026