Vector topology cleaning: Difference between revisions
Jump to navigation
Jump to search
(+Polygon import from SHAPE file:) |
(expanded yet incomplete) |
||
Line 1: | Line 1: | ||
'''Q:''' How can I patch to fitting area maps with have been digitized separately and correct the topology? I observe that the shared polygon boundaries do not perfectly match... | '''Q:''' How can I patch to fitting area maps with have been digitized separately and correct the topology? I observe that the shared polygon boundaries do not perfectly match... I need clean topology. | ||
[[Image:Polygon map topology problems.png|center|thumb|500px|Polygon vector map with topology problems]] | [[Image:Polygon map topology problems.png|center|thumb|500px|Polygon vector map with topology problems]] | ||
Line 6: | Line 6: | ||
Tools to consider: | Tools to consider: | ||
* | * snap,bpol,rmdupl,break,rmdupl,rms | ||
* ... | * the threshold (in map units) should be very small | ||
Example (Lat-Long): | |||
v.in.ogr natural_earth/ne_110m_admin_0_countries.shp out=country_boundaries snap=0.0001 TODO: FIX THIS | |||
---- | ---- |
Revision as of 20:14, 2 September 2012
Q: How can I patch to fitting area maps with have been digitized separately and correct the topology? I observe that the shared polygon boundaries do not perfectly match... I need clean topology.
![](/w/images/Polygon_map_topology_problems.png)
A: You can use v.clean for this.
Tools to consider:
- snap,bpol,rmdupl,break,rmdupl,rms
- the threshold (in map units) should be very small
Example (Lat-Long):
v.in.ogr natural_earth/ne_110m_admin_0_countries.shp out=country_boundaries snap=0.0001 TODO: FIX THIS
Q: How about self-intersecting lines and boundaries?
A: In the GRASS topological model self-intersecting lines are allowed, self-intersecting boundaries are not. Self-intersecting lines are ok e.g. for v.net modules, e.g. to represent a bridge of a secondary road over a highway.
Note: There are some modules that do not like self-intersecting lines, e.g with v.buffer problems are expected.
Polygon import from SHAPE file:
![](/w/images/Polygons_overlapping.png)
v.clean applied:
![](/w/images/Polygons_overlapping_cleaned.png)