Dissolve polygons: Difference between revisions

From GRASS-Wiki
Jump to navigation Jump to search
(simplified)
(cleanup)
Line 1: Line 1:
'''Q:''' How to dissolve vector polygons (or remove tile boundaries of adjacent maps)
'''Q:''' How to dissolve vector polygons (or remove tile boundaries of adjacent maps)


'''A:''' Dissolving of areas is done with v.dissolve (v.extract -d). If tile boundaries of adjacent maps (e.g. CORINE Landcover SHAPE files) have to be removed, an extra step is required to remove duplicated boundaries:
'''A:''' Dissolving of areas is done with {{cmd|v.dissolve}} (v.extract -d). If tile boundaries of adjacent maps (e.g. CORINE Landcover SHAPE files) have to be removed, an extra step is required to first remove duplicated boundaries:


Remove duplicated tile boundaries:
Remove duplicated tile boundaries:
     v.clean clc2000_patched out=clc2000_clean tool=snap,break,rmdupl thresh=.01
     v.clean clc2000_patched out=clc2000_clean tool=snap,break,rmdupl thresh=.01
    
    
No longer needed in GRASS > Version 6.4:<strike>
Dissolve:
Reclass based on desired column:
    v.reclass clc2000_clean out=clc2000_recl col=CODE_00
</strike>
 
Dissolve:<strike>
    v.dissolve input=clc2000_recl output=clc2000_final
</strike>
     v.dissolve input=clc2000_clean output=clc2000_final
     v.dissolve input=clc2000_clean output=clc2000_final


[[Category: FAQ]]
[[Category: FAQ]]
[[Category: Vector]]

Revision as of 07:56, 10 April 2013

Q: How to dissolve vector polygons (or remove tile boundaries of adjacent maps)

A: Dissolving of areas is done with v.dissolve (v.extract -d). If tile boundaries of adjacent maps (e.g. CORINE Landcover SHAPE files) have to be removed, an extra step is required to first remove duplicated boundaries:

Remove duplicated tile boundaries:

    v.clean clc2000_patched out=clc2000_clean tool=snap,break,rmdupl thresh=.01
  

Dissolve:

    v.dissolve input=clc2000_clean output=clc2000_final