Documentation | ⌂ Topology Layers | « Previous | Next »
One of the most important differences between topology-based datasets and traditional GIS formats such as SHP, GPKG, GeoJSON, or ordinary database layers is the way geometry is maintained.
In traditional GIS workflows, users typically edit polygons, lines, and points directly.
In topology, geometry is derived from topology primitives and hierarchy relationships.
As a result, the preferred and recommended approach to geometry editing is modifying topology primitives rather than editing derived geometries.
Changes made at the primitive level automatically propagate throughout the topology hierarchy.
IMPORTANT: The most reliable way to modify topology geometry is editing Nodes and Edges. Faces and Feature geometries are updated automatically.
Topology editing is fully integrated with the standard TatukGIS Developer Kernel editing framework.
The same editing engine used for ordinary vector layers through the TGIS_Editor class is also used for topology primitives.
As a result, topology editing feels familiar to users who already work with TatukGIS vector editing tools.
Node editing is the primary method of modifying topology geometry.
Nodes are stored in: NEW_NODE layer and can be edited similarly to ordinary point objects.
NEW_NODE in the Legend.

Nodes participate in topology relationships. Therefore, moving a Node automatically affects all connected objects.
This automatic propagation is one of the major advantages of topology. Instead of editing multiple polygons individually, a single Node modification updates the entire hierarchy.
Unlike traditional GIS editing, topology modifications are validated immediately.
If moving a Node would create invalid topology, the change is rejected.
Examples include:
Example error:
ERROR: 1036 Edge 6 interior intersects edge 14
IMPORANT: Topology validation prevents invalid geometry from being introduced into the dataset.
In addition to Nodes, topology Edges can also be edited.
In our tutorial Edges are stored in NEW_EDGE layer and define topology boundaries and connectivity relationships.
A topology Edge consists of:
The internal vertices define the shape of the Edge, while the start and end vertices define its topology connectivity.
IMPORTANT: Only internal Edge vertices can be edited directly.
The first and last Edge vertices are controlled by topology Nodes. Attempting to move either endpoint directly will cause the operation to be rejected, but Internal Edge vertices can be edited directly.
A typical message may indicate that the Edge endpoint cannot be moved. To change the position of an Edge endpoint, the corresponding Node must be edited. This ensures that topology connectivity remains valid.
Attempt to Edit Edge Endpoint:
Edge endpoint move error:
ERROR: 1034 Edge endpoints cannot be moved. Move the node instead.
Internal vertices can be:
As long as the resulting geometry remains topologically valid.
A successful Edge modification triggers automatic updates throughout the topology structure.
To make topology editing easier, TatukGIS allows topology primitives to be edited directly from Feature Layers. This means users do not need to manually switch to the Node or Edge layers.
Editing Topology Through a Feature Layer:

When a geometry element is clicked, TatukGIS automatically identifies what should be edited.
If the clicked vertex coincides with an existing Node, the corresponding Node becomes the active editing object.
If no Node exists at the clicked location, the topology Edge nearest to the click position is selected.
Without this capability, users would need to:
TatukGIS eliminates these extra steps. Users continue to work with familiar Feature objects while topology consistency is maintained automatically.
Regardless of whether a Node or Edge is edited directly or through a Feature Layer, the results are identical.
The topology always remains internally consistent.
At this point, all major topology workflows available in TatukGIS Editor have been covered. The next chapter introduces the High-Level API and demonstrates how the same functionality can be integrated into custom applications built with TatukGIS Developer Kernel.