Bug #5946

SAGA - Polygon dissolve

Added by stefano campus 12 months ago. Updated 7 months ago.

Status:Closed Start Date:07/04/2012
Priority:Normal Due date:
Assigned to:Victor Olaya % Done:

0%

Category:Backend/SAGA
Target version:-
Patch supplied:No

Description

It's not possible to select just one attribute to use as dissolving field.
it is mandatory to select three attributes from input polygon that are present in dissolved polygon

History

Updated by stefano campus 12 months ago

Addendum
1) if the three selected attributes are not the same, obviously, the "dissolve" function doesn't produce effects

2) using the dissolving parameter "all polygons" makes an error:
"Could not load layer: C:\Users\skampus\sextante\tempdata\sagapolygondissolve30.shp
Check the SEXTANTE log to look for errors in algorithm execution"

from info window :
Module caused access violation!
Polygon Dissolve: Module caused access violation!
error: executing module [Polygon Dissolve]

this error comes also using directly saga with its gui

Updated by Giovanni Manghi 10 months ago

Tested again with Sextante trunk under Linux. Beside the above notes now the error message is

SAGA execution console output
Unknown option 'DISSOLVE'
Usage: Polygon Dissolve -POLYGONS <str> [-FIELD_1 <str>] [-FIELD_2 <str>] [-FIELD_3 <str>] -DISSOLVED <str> [-ALL <str>]
-POLYGONS:<str> Polygons
Shapes (input)
-FIELD_1:<str> 1. Attribute
Table field
-FIELD_2:<str> 2. Attribute
Table field
-FIELD_3:<str> 3. Attribute
Table field
-DISSOLVED:<str> Dissolved Polygons
Shapes (output)
-ALL:<str> Dissolve...
Choice
Available Choices:
[0] polygons with same attribute value
[1] all polygons
_____________________________________
  1. ## ##### ##
  1. ### ## ###
  2. # ## ## #### # ##
  3. ##### ## # #####
    1. # ## ##### # ##
      _____________________________________

library path: /usr/lib/saga
library name: libshapes_polygons
module name : Polygon Dissolve
author : O.Conrad (c) 2008
_____________________________________
go...

Updated by Salvatore Larosa 10 months ago

I cannot replicate! No error here!
What parameter are you using for?

Updated by Giovanni Manghi 10 months ago

Salvatore Larosa wrote:

I cannot replicate! No error here! What parameter are you using for?

ouch... maybe I have SAGA not configures properly in sextante in my Linux box? After installing SAGA should I have to do something (the path is automatically detected as for GRASS?)?

Updated by Salvatore Larosa 10 months ago

There is no need to do anything!
it is automatically detected!

Did you try to run the same SAGA command in CLI?

Updated by Giovanni Manghi 10 months ago

Did you try to run the same SAGA command in CLI?

no (please give me an hint, I'm not used to use the SAGA cli), but I tested the native SAGA gui and worked.

I also noticed now that if in the SAGA polygon dissolve tool I select "save to file..." after entering the shape name and clicking OK I get

std::bad_alloc

and QGIS freezes.

I hope that are just local problems, if you don't confirm then I will give a try on another machine.

Updated by Salvatore Larosa 10 months ago

Giovanni Manghi wrote:

Did you try to run the same SAGA command in CLI?

no (please give me an hint, I'm not used to use the SAGA cli), but I tested the native SAGA gui and worked.

Simply copy the command found in saga_batch_job.sh script and paste it into your shell!

I also noticed now that if in the SAGA polygon dissolve tool I select "save to file..." after entering the shape name and clicking OK I get

std::bad_alloc

and QGIS freezes.

I hope that are just local problems, if you don't confirm then I will give a try on another machine.

Giovanni I confirm!
I get that error sometimes when I start QGIS, but without freeze!
I can not seem to generate a backtrace!

Maybe I am wrong, I guess this is not a sextante bug!

Updated by Salvatore Larosa 10 months ago

I tried other tools (Dissolve, Mean Shift segmentation....) and I got the same error!

Updated by Giovanni Manghi 10 months ago

Salvatore Larosa wrote:

I tried other tools (Dissolve, Mean Shift segmentation....) and I got the same error!

can you file a ticket please?

Updated by Giovanni Manghi 10 months ago

Salvatore Larosa wrote:

Giovanni Manghi wrote:

Did you try to run the same SAGA command in CLI?

no (please give me an hint, I'm not used to use the SAGA cli), but I tested the native SAGA gui and worked.

Simply copy the command found in saga_batch_job.sh script and paste it into your shell!

I got the same message and the issue is a typo, a missing "D" (in bold here following)

gio@sibirica:~/Desktop$ saga_cmd libshapes_polygons "Polygon Dissolve" -POLYGONS "/home/gio/Desktop/zif/guaya_Voronoi.shp" -FIELD_1 "DANNO_10CM" -FIELD_2 "DANNO_10CM" -FIELD_3 "DANNO_10CM" -DISSOLVE*D* 2 -DISSOLVED "/home/gio/sextante/tempdata/sagapolygondissolve1.shp"
_____________________________________ ##### ## ##### ## ### ### ## ### ### # ## ## #### # ## ### ##### ## # #####
  1. # ## ##### # ##
    _____________________________________

library path: /usr/lib/saga
library name: libshapes_polygons
module name : Polygon Dissolve
author : O.Conrad (c) 2008
_____________________________________
go...
Unknown option 'DISSOLVE'
Usage: Polygon Dissolve -POLYGONS <str> [-FIELD_1 <str>] [-FIELD_2 <str>] [-FIELD_3 <str>] -DISSOLVED <str> [-ALL <str>]
-POLYGONS:<str> Polygons
Shapes (input)
-FIELD_1:<str> 1. Attribute
Table field
-FIELD_2:<str> 2. Attribute
Table field
-FIELD_3:<str> 3. Attribute
Table field
-DISSOLVED:<str> Dissolved Polygons
Shapes (output)
-ALL:<str> Dissolve...
Choice
Available Choices:
[0] polygons with same attribute value
[1] all polygons
gio@sibirica:~/Desktop$

Updated by Victor Olaya 7 months ago

  • Status changed from New to Resolved

Updated by Filipe Dias 7 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF