[GRASS-dev] [GRASS GIS] #2529: v.dissolve only dissolve attribute table but not topology

#2529: v.dissolve only dissolve attribute table but not topology
----------------------+-----------------------------------------------------
Reporter: hellik | Owner: grass-dev@…
     Type: defect | Status: new
Priority: critical | Milestone: 7.0.0
Component: Vector | Version: unspecified
Keywords: dissolve | Platform: MSWindows Vista
      Cpu: x86-32 |
----------------------+-----------------------------------------------------
testet with

{{{
System Info
GRASS Version: 7.1.svn
GRASS SVN Revision: 63945
Erstellungsdatum: 2015-01-04
Build Platform: i686-pc-mingw32
GDAL/OGR: 1.11.1
PROJ.4: 4.8.0
GEOS: 3.4.2
SQLite: 3.7.17
Python: 2.7.4
wxPython: 2.8.12.1
Platform: Windows-Vista-6.0.6002-SP2 (OSGeo4W)
}}}

before dissolve

{{{
v.info map=testline_transect_area@user1
+----------------------------------------------------------------------------+
  | Name: testline_transect_area
|
  | Mapset: user1
|
  | Location: nc_spm_08_grass7
|
  | Datenbank: J:\gisdata
|
  | Titel:
|
  | Maßstab: 1:1
|
  | Name des Erzeugers:normal
|
  | Organisation:
|
  | Quelldatum: Mon Jan 05 10:23:23 2015
|
  | Timestamp (first layer): none
|
|----------------------------------------------------------------------------|
  | Kartenformat: native
|
|----------------------------------------------------------------------------|
  | Kartenart:: Vektor (level: 2)
|
  |
|
  | Anzahl der Punkte: 0 Anzahl der Zentroide: 82
|
  | Anzahl der Linien: 0 Anzahl der Grenzen: 82
|
  | Anzahl der Flächen: 82 Anzahl der Inseln: 82
|
  |
|
  | Map is 3D: No
|
  | Anzahl der dblinks: 1
|
  |
|
  | Projektion: Lambert Conformal Conic
|
  |
|
  | N: 226486.974314 S: 215466.854851
|
  | E: 641914.012535 W: 631036.302095
|
  |
|
  | Digitalisierungs-Schwellwert:: 0
|
  | Kommentar:
|
  |
|
+----------------------------------------------------------------------------+
}}}

after dissolve

{{{
v.info map=nexttrydis@user1
+----------------------------------------------------------------------------+
  | Name: nexttrydis
|
  | Mapset: user1
|
  | Location: nc_spm_08_grass7
|
  | Datenbank: J:\gisdata
|
  | Titel:
|
  | Maßstab: 1:1
|
  | Name des Erzeugers:normal
|
  | Organisation:
|
  | Quelldatum: Mon Jan 05 10:23:23 2015
|
  | Timestamp (first layer): none
|
|----------------------------------------------------------------------------|
  | Kartenformat: native
|
|----------------------------------------------------------------------------|
  | Kartenart:: Vektor (level: 2)
|
  |
|
  | Anzahl der Punkte: 0 Anzahl der Zentroide: 82
|
  | Anzahl der Linien: 0 Anzahl der Grenzen: 82
|
  | Anzahl der Flächen: 82 Anzahl der Inseln: 82
|
  |
|
  | Map is 3D: No
|
  | Anzahl der dblinks: 1
|
  |
|
  | Projektion: Lambert Conformal Conic
|
  |
|
  | N: 226486.974314 S: 215466.854851
|
  | E: 641914.012535 W: 631036.302095
|
  |
|
  | Digitalisierungs-Schwellwert:: 0
|
  | Kommentar:
|
  |
|
+----------------------------------------------------------------------------+
}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2529&gt;
GRASS GIS <http://grass.osgeo.org>

#2529: v.dissolve only dissolve attribute table but not topology
----------------------+-----------------------------------------------------
Reporter: hellik | Owner: grass-dev@…
     Type: defect | Status: new
Priority: critical | Milestone: 7.0.0
Component: Vector | Version: unspecified
Keywords: dissolve | Platform: MSWindows Vista
      Cpu: x86-32 |
----------------------+-----------------------------------------------------

Comment(by neteler):

Can you upload the map (v.pack) or generate a reproducible example?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2529#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#2529: v.dissolve only dissolve attribute table but not topology
----------------------+-----------------------------------------------------
Reporter: hellik | Owner: grass-dev@…
     Type: defect | Status: new
Priority: critical | Milestone: 7.0.0
Component: Vector | Version: unspecified
Keywords: dissolve | Platform: MSWindows Vista
      Cpu: x86-32 |
----------------------+-----------------------------------------------------

Comment(by hellik):

Replying to [comment:1 neteler]:
> Can you upload the map (v.pack) or generate a reproducible example?

vector attached and produced by:

{{{
v.extract input=streams@PERMANENT cats=83348 output=streams_oneline

addon v.transects:

v.transects --verbose input=streams_oneline@user1
output=streams_oneline_quads transect_spacing=100 dleft=50 dright=50
type=area

v.db.addtable map=streams_oneline_quads@user1

v.db.addcolumn map=streams_oneline_quads@user1 columns="dis integer"

v.db.update --verbose map=streams_oneline_quads@user1 layer=1 column=dis
value=1
}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2529#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#2529: v.dissolve only dissolve attribute table but not topology
----------------------+-----------------------------------------------------
Reporter: hellik | Owner: grass-dev@…
     Type: defect | Status: new
Priority: critical | Milestone: 7.0.0
Component: Vector | Version: unspecified
Keywords: dissolve | Platform: MSWindows Vista
      Cpu: x86-32 |
----------------------+-----------------------------------------------------

Comment(by hellik):

Replying to [comment:1 neteler]:
> Can you upload the map (v.pack) or generate a reproducible example?

also tested with nc sample data, there it seems to work:

{{{
g.copy vector=soils_wake@PERMANENT,mysoils_wake

v.db.addcolumn map=mysoils_wake@user1 columns="dis integer"

v.db.update map=mysoils_wake@user1 layer=1 column=dis value=1

v.dissolve input=mysoils_wake@user1 column=dis output=mysoils_wake_dis
}}}

{{{
v.info map=mysoils_wake@user1
+----------------------------------------------------------------------------+
  | Name: mysoils_wake
|
  | Mapset: user1
|
  | Location: nc_spm_08_grass7
|
  | Datenbank: J:\gisdata
|
  | Titel: South-West Wake County soils (polygon map)
|
  | Maßstab: 1:1
|
  | Name des Erzeugers:hmitaso
|
  | Organisation:
|
  | Quelldatum: Wed Dec 19 11:10:11 2007
|
  | Timestamp (first layer): none
|
|----------------------------------------------------------------------------|
  | Kartenformat: native
|
|----------------------------------------------------------------------------|
  | Kartenart:: Vektor (level: 2)
|
  |
|
  | Anzahl der Punkte: 0 Anzahl der Zentroide: 3378
|
  | Anzahl der Linien: 0 Anzahl der Grenzen: 9912
|
  | Anzahl der Flächen: 3412 Anzahl der Inseln: 91
|
  |
|
  | Map is 3D: No
|
  | Anzahl der dblinks: 1
|
  |
|
  | Projektion: Lambert Conformal Conic
|
  |
|
  | N: 255570.75819148 S: 209185.32512061
|
  | E: 658480.56896114 W: 625795.27559055
|
  |
|
  | Digitalisierungs-Schwellwert:: 0
|
  | Kommentar:
|
  |
|
+----------------------------------------------------------------------------+
}}}

{{{
v.info map=mysoils_wake_dis@user1
+----------------------------------------------------------------------------+
  | Name: mysoils_wake_dis
|
  | Mapset: user1
|
  | Location: nc_spm_08_grass7
|
  | Datenbank: J:\gisdata
|
  | Titel: South-West Wake County soils (polygon map)
|
  | Maßstab: 1:1
|
  | Name des Erzeugers:hmitaso
|
  | Organisation:
|
  | Quelldatum: Wed Dec 19 11:10:11 2007
|
  | Timestamp (first layer): none
|
|----------------------------------------------------------------------------|
  | Kartenformat: native
|
|----------------------------------------------------------------------------|
  | Kartenart:: Vektor (level: 2)
|
  |
|
  | Anzahl der Punkte: 0 Anzahl der Zentroide: 1
|
  | Anzahl der Linien: 0 Anzahl der Grenzen: 345
|
  | Anzahl der Flächen: 35 Anzahl der Inseln: 33
|
  |
|
  | Map is 3D: No
|
  | Anzahl der dblinks: 1
|
  |
|
  | Projektion: Lambert Conformal Conic
|
  |
|
  | N: 255570.75819148 S: 209185.32512061
|
  | E: 658480.56896114 W: 625795.27559055
|
  |
|
  | Digitalisierungs-Schwellwert:: 0
|
  | Kommentar:
|
  |
|
+----------------------------------------------------------------------------+
}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2529#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#2529: v.dissolve only dissolve attribute table but not topology
----------------------+-----------------------------------------------------
Reporter: hellik | Owner: grass-dev@…
     Type: defect | Status: new
Priority: critical | Milestone: 7.0.0
Component: Vector | Version: unspecified
Keywords: dissolve | Platform: MSWindows Vista
      Cpu: x86-32 |
----------------------+-----------------------------------------------------

Comment(by hellik):

Replying to [comment:1 neteler]:
> Can you upload the map (v.pack) or generate a reproducible example?

tried after cleaning the example:

{{{
v.clean input=streams_oneline_quads@user1
output=streams_oneline_quads_clean type=point,line,area
tool=snap,break,rmdupl thres=0.01,0.01,0.01

v.dissolve --verbose input=streams_oneline_quads_clean@user1 column=dis
output=streams_oneline_quads_clean_dis
}}}

it doesn't help

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2529#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#2529: v.dissolve only dissolve attribute table but not topology
----------------------+-----------------------------------------------------
Reporter: hellik | Owner: grass-dev@…
     Type: defect | Status: new
Priority: critical | Milestone: 7.0.0
Component: Vector | Version: unspecified
Keywords: dissolve | Platform: MSWindows Vista
      Cpu: x86-32 |
----------------------+-----------------------------------------------------

Comment(by mmetz):

Replying to [comment:4 hellik]:
> Replying to [comment:1 neteler]:
> > Can you upload the map (v.pack) or generate a reproducible example?
>
> tried after cleaning the example:
>
{{{
v.clean input=streams_oneline_quads@user1
output=streams_oneline_quads_clean type=point,line,area
tool=snap,break,rmdupl thres=0.01,0.01,0.01

v.dissolve --verbose input=streams_oneline_quads_clean@user1 column=dis
output=streams_oneline_quads_clean_dis
}}}
>
> it doesn't help

You need to specify the feature type to be cleaned:

{{{
v.clean type=boundary
}}}

I do not understand why this is needed, but this helps.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2529#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>

#2529: v.dissolve only dissolve attribute table but not topology
------------------------------+---------------------------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: critical | Milestone: 7.0.0
Component: Vector | Version: unspecified
Resolution: fixed | Keywords: dissolve
  Platform: MSWindows Vista | Cpu: x86-32
------------------------------+---------------------------------------------
Changes (by hellik):

  * status: new => closed
  * resolution: => fixed

Comment:

Replying to [comment:5 mmetz]:
> >
> > it doesn't help
>
> You need to specify the feature type to be cleaned:
>
> {{{
> v.clean type=boundary
> }}}
>
> I do not understand why this is needed, but this helps.

confirmed, after ''v.clean type=boundary'' v.dissolve works. closing
ticket.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2529#comment:6&gt;
GRASS GIS <http://grass.osgeo.org>