Opened 6 years ago

Closed 6 years ago

#2529 closed defect (fixed)

v.dissolve only dissolve attribute table but not topology

Reported by: hellik Owned by: grass-dev@…
Priority: critical Milestone: 7.0.0
Component: Vector Version: unspecified
Keywords: dissolve Cc:
CPU: x86-32 Platform: MSWindows Vista

Description

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:                                                               |
 |                                                                            |
 +----------------------------------------------------------------------------+

Attachments (1)

streams_oneline_quads.pack (3.0 KB) - added by hellik 6 years ago.
vector packed (in nc sample data set and mapset user1)

Download all attachments as: .zip

Change History (7)

comment:1 Changed 6 years ago by neteler

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

Changed 6 years ago by hellik

Attachment: streams_oneline_quads.pack added

vector packed (in nc sample data set and mapset user1)

comment:2 in reply to:  1 Changed 6 years ago by hellik

Replying to 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

comment:3 in reply to:  1 Changed 6 years ago by hellik

Replying to 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:                                                               |
 |                                                                            |
 +----------------------------------------------------------------------------+

comment:4 in reply to:  1 ; Changed 6 years ago by hellik

Replying to 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

comment:5 in reply to:  4 ; Changed 6 years ago by mmetz

Replying to hellik:

Replying to 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.

comment:6 in reply to:  5 Changed 6 years ago by hellik

Resolution: fixed
Status: newclosed

Replying to 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.

Note: See TracTickets for help on using tickets.