User Tools

Site Tools


doc:topologylayer:1200

Geometry Editing

Documentation | ⌂ Topology Layers | « Previous | Next »

  • Nodes and Edges are the primary editable topology primitives.
  • Moving a Node automatically updates dependent topology geometry.
  • Internal Edge vertices and Edge endpoints serve different purposes.
  • Feature Layers can be used as an alternative interface for topology editing.
  • Topology editing preserves consistency throughout the topology structure.

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.

Integration with the TatukGIS Editing Framework

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.

Editing Nodes

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.

Node Editing Workflow

  1. Select NEW_NODE in the Legend.
  2. Switch to editing mode.
  3. Click a Node.
  4. Move the Node to a new location.
  5. Commit the edit.

Automatic Geometry Updates

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.

Topology Validation During Editing

Unlike traditional GIS editing, topology modifications are validated immediately.

If moving a Node would create invalid topology, the change is rejected.

Examples include:

  • Edge crossings
  • Invalid Face boundaries
  • Broken connectivity
  • Topology conflicts

Example error:

ERROR: 1036
Edge 6 interior intersects edge 14

IMPORANT: Topology validation prevents invalid geometry from being introduced into the dataset.

Editing Edges

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.

Edge Endpoints and Internal Vertices

A topology Edge consists of:

  • A start Node
  • An end Node
  • Optional internal vertices

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.

Editing Internal Edge Geometry

Internal vertices can be:

  • moved,
  • inserted,
  • deleted.

As long as the resulting geometry remains topologically valid.

A successful Edge modification triggers automatic updates throughout the topology structure.

Editing Through Feature Layers

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:

How It Works

  1. Activate any Feature Layer.
  2. Enter edit mode.
  3. Click a vertex, boundary, or polygon area.
  4. TatukGIS automatically determines the appropriate primitive.

Intelligent Primitive Selection

When a geometry element is clicked, TatukGIS automatically identifies what should be edited.

Node Selection

If the clicked vertex coincides with an existing Node, the corresponding Node becomes the active editing object.

Edge Selection

If no Node exists at the clicked location, the topology Edge nearest to the click position is selected.

Benefits of Editing Through Features

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.

Primitive and Feature Synchronization

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.

Topology Editing Best Practices

  • Edit Nodes whenever connectivity changes are required.
  • Edit Edge internal vertices to modify shape.
  • Edit Edge endpoints through Nodes only.
  • Use Feature Layer editing for convenience.
  • Review validation messages before committing edits.

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.

« Previous | Next »

2026/09/24 17:12

Page Tools