“Topology expresses the spatial relationships between connecting or adjacent vector features (points, polylines, and polygons) in a GIS.”
Vector data has to conform to the topological model e.g. two lines in a roads vector layer that intersect should be joined by the same node. Topology is necessary for carrying out some types of spatial analysis, such as network analysis.” In this module, we will inspect vector data for topology errors and explore ways in which to clean the dataset so that it conforms to the vector topology model.
The vector topology model stipulates that:
Goal: To learn the basics of maintaining vector topology and how to clean data so that it adheres to the vector topology model.
Roads style
options specified. What can you infer about the layer ?Part 1 - Removing Duplicates
Part 2 - Checking other topology errors
dangling nodes
, invalid geometries
, multi-part geometries
and pseudos
Validate All
navigate to each error by clicking each row in the results panel.Part 3 - Cleaning up
Reproject
the road layer to the specified CRS
.v.clean
.snap
NB: Run the tool iteratively using the cleaning tool snap
and the threshold with small values that increment on each iteration.
Use the output of each iteration as input into the next iteration.
Part 4 - Tracing
Roads Tracing
to create a new vector layer.Open snapping options
.Topological Editing
, Snapping on intersection
and close the dialog.Enable tracing
Bonus Section
Name | Expectation |
---|---|
Background Layer |
Google Satellite or topology_cleaning/ 2821AD_21_2014_747_RGB_RECT.tif |
data |
roads_unclean |
Validity tools (Plugins) |
Topology checker, Geometry validity |
CRS |
EPSG:3857 |
Cleaning tools |
v.clean |
Roads Style |
Simple line, Colour - #e31a1c, Stroke width - 0.86 |
Roads Tracing - Geometry |
Multiline |
Roads Tracing - CRS |
EPSG:3857 |
The vector topology model stipulates that:
Data that does not adhere to the topological model inhibits spatial analysis to be done and will always give erroneous results. Typical errors are:
GRASS GIS is a fully topological GIS package and using the GRASS algorithms to check and clean data helps in generating clean vector data which can be used in an analysis.
Why is vector topology important:
Which type of data should be checked for topology errors:
When cleaning a polygon is it important to activate snapping: