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

Merge raster layers error in Processing #19707

Closed
qgib opened this issue Oct 17, 2014 · 3 comments
Closed

Merge raster layers error in Processing #19707

qgib opened this issue Oct 17, 2014 · 3 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 17, 2014

Author Name: Paolo Cavallini (@pcav)
Original Redmine Issue: 11431
Affected QGIS version: master
Redmine category:processing/saga
Assignee: Victor Olaya


Apparently an option has changed in SAGA:

Algorithm Merge raster layers starting...
grid_tools "Merging" -GRIDS "/tmp/processing/df59e75a8bc14e51a2e0f9e34d14f6c2/OUTPUT.tif.sgrd;/tmp/processing/4295320f57714bb69d8d7378e1b93eed/Outputlayer.sgrd" -TYPE 7 -INTERPOL 0 -OVERLAP 0 -MERGED "/tmp/processing/e279770e3c4243fcb2bc0ef06204f0cf/MERGED.tif.sgrd"
io_gdal 1 -GRIDS "/tmp/processing/e279770e3c4243fcb2bc0ef06204f0cf/MERGED.tif.sgrd" -FORMAT 1 -TYPE 0 -FILE "/tmp/processing/e279770e3c4243fcb2bc0ef06204f0cf/MERGED.tif"
Unknown option 'GRIDS'


## #####

### ##

# ## ## #### #

##### ## #

# ## ##### #


library path: /usr/lib/x86_64-linux-gnu/saga/libgrid_tools.so
library name: Grid - Tools
tool name : Resampling
author : O.Conrad (c) 2003


Usage: saga_cmd grid_tools 0 -INPUT [-INPUT_ADD ] [-OUTPUT_ADD ] [-KEEP_TYPE] [-TARGET ] [-SCALE_UP_METHOD ] [-SCALE_DOWN_METHOD ] [-USER_XMIN ] [-USER_XMAX ] [-USER_YMIN ] [-USER_YMAX ] [-USER_SIZE ] [-USER_FIT ] [-USER_GRID ] [-GRID_GRID ]
-INPUT: Grid
Grid (input)
-INPUT_ADD: Additional Grids
Grid list (optional input)
-OUTPUT_ADD: Additional Grids
Grid list (optional output)
-KEEP_TYPE Preserve Data Type
Boolean
Default: 0
-TARGET: Target Grid
Choice
Available Choices:
[0] user defined
[1] grid
Default: 0
-SCALE_UP_METHOD: Interpolation Method
Choice
Available Choices:
[0] Nearest Neighbor
[1] Bilinear Interpolation
[2] Inverse Distance Interpolation
[3] Bicubic Spline Interpolation
[4] B-Spline Interpolation
[5] Mean Value
[6] Mean Value (cell area weighted)
[7] Minimum Value
[8] Maximum Value
[9] Majority
Default: 6
-SCALE_DOWN_METHOD: Interpolation Method
Choice
Available Choices:
[0] Nearest Neighbor
[1] Bilinear Interpolation
[2] Inverse Distance Interpolation
[3] Bicubic Spline Interpolation
[4] B-Spline Interpolation
Default: 4
-USER_XMIN: Left
Floating point
Default: 0.000000
-USER_XMAX: Right
Floating point
Default: 0.000000
-USER_YMIN: Bottom
Floating point
Default: 0.000000
-USER_YMAX: Top
Floating point
Default: 0.000000
-USER_SIZE: Cellsize
Floating point
Minimum: 0.000000
Default: 1.000000
-USER_FIT: Fit
Choice
Available Choices:
[0] nodes
[1] cells
Default: 0
-USER_GRID: Grid
Data Object (optional output)
-GRID_GRID: Grid
Grid (optional input)
Error: Grid file could not be opened.
Error: executing tool [GDAL: Export Raster]


## #####

### ##

# ## ## #### #

##### ## #

# ## ##### #


library path: /usr/lib/x86_64-linux-gnu/saga/libio_gdal.so
library name: Import/Export - GDAL/OGR
tool name : GDAL: Export Raster
author : O.Conrad (c) 2007


Load grid: /tmp/processing/e279770e3c4243fcb2bc0ef06204f0cf/MERGED.tif.sgrd...
failed
GDAL: Export Raster: could not initialize data objects
Output di conversione
Caricamento layer
Algorithm Merge raster layers finished

@qgib
Copy link
Contributor Author

qgib commented Oct 19, 2014

Author Name: Giovanni Manghi (@gioman)


The tool changed name in SAGA 2.1.2, now is "mosaiking", but the tool code is [3] as the previous "merging".

As the tool "merging" does not exist anymore the above error message actually shows the usage of tool [0] and this can confuse a lot...

I noticed also that in SAGA 2.1.2 there are two more grid_tools modules compared to 2.1.0 and three more compared to 2.0.8.

I'm working to fix all this issues.


  • version was changed from 2.4.0 to master

@qgib
Copy link
Contributor Author

qgib commented Oct 19, 2014

Author Name: Giovanni Manghi (@gioman)


see

#1636

@qgib
Copy link
Contributor Author

qgib commented Oct 20, 2014

Author Name: Giovanni Manghi (@gioman)


  • resolution was changed from to fixed/implemented
  • status_id was changed from Open to Closed

@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 25, 2019
@qgib qgib closed this as completed May 25, 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