Docsity

Spaghetti Data Structures - GIS and Mapping - Lecture Slides, Slides of Geochemistry

Toggle sidebar
bg1
Spaghetti Data Structures
•The visual appearance of a map could be captured by
digitising lines and polygons in a random sequence without
any additional information about which lines connect to
which, or which polygons share common boundaries.
•This is akin to 'tracing' the lines on the map using a
digitiser until they have all been digitised.
•This information could be used to reconstruct the map as it
might be drawn by a cartographer.
•Although adequate for CAD or CAC, it is inadequate for
most GIS purposes –e.g. polygon features not defined.
•Sometimes used for data distribution.
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Spaghetti Data Structures - GIS and Mapping - Lecture Slides and more Slides Geochemistry in PDF only on Docsity!

Spaghetti Data Structures

  • The visual appearance of a map could be captured by digitising lines and polygons in a random sequence without any additional information about which lines connect to which, or which polygons share common boundaries.
  • This is akin to 'tracing' the lines on the map using a digitiser until they have all been digitised.
  • This information could be used to reconstruct the map as it might be drawn by a cartographer.
  • Although adequate for CAD or CAC, it is inadequate for most GIS purposes – e.g. polygon features not defined.
  • Sometimes used for data distribution.

Arc/Node Structures(1)

  • The DIME system developed in the 1960s was a step forward. It was the first to use an arc/node structure.
  • A node is where two or more lines join.
  • An arc is a section of line running between nodes.
  • Each arc is made up from straight line segments running between adjoining points (or vertices ).

Arc/Node Structures(3)

  • Arc/node structures provide several advantages:
  • Arc between adjoining polygons only need to be digitised once. - Reduces data redundancy - Eliminates sliver lines
  • Editing is simplified
    • To move a point we just need to adjust its coordinates in the points file.
    • To delete a point we remove the reference to it in the arcs file
    • To add a point we add its details to the end of the points file (no resorting) and insert a pointer at the right place in the arcs file.

Topological Data Structures(2)

  • Only require an arcs file – one can reconstruct the polygons from the topological information. Arc Start End Left Right 1 n1 n2 A B 2 n2 n1 O B 3 n1 n2 O A
  • Polygon B is made up from arcs 1 and 2. B is to the right of both. Nodes n1 and n2 specify the sequence in which they need to be joined.

Topological Data Structures(3)

  • The topological information may be used to make consistency checks.
  • For example, the coordinates of nodes can be checked for unsnapped nodes.
  • If two arcs have the same nodes at both ends, system can check if this is because one arc was digitised twice, or they are two arcs forming a polygon.
  • Can do lots of other checks.
  • Data passing the checks are said to be topologically clean.

Space Considerations

  • Vector models generally require less space than raster models, but space may be a consideration.
  • Each X and Y coordinate generally requires 2 bytes (more if they are larger than 65535).
  • Can reduce using relative addressing – i.e. express as offset from a local origin.