User Tools

Site Tools


doc:topologylayer:0400

Topology Tools Overview

Documentation | ⌂ Topology Layers | « Previous | Next »

  • Topology functionality is exposed through the Topology menu.
  • All topology operations are implemented through TGIS_TopoTool.
  • Tools are state-dependent and become available as the topology evolves.
  • Every major operation is implemented as a guided wizard.
  • The same functionality is available through both the Editor and the API.

After understanding the topology architecture and data model, the next step is becoming familiar with the tools used to create and manage topology projects.

TatukGIS provides a set of high-level topology tools accessible through the Topology menu in TatukGIS Editor and through the TGIS_TopoTool class in TatukGIS Developer Kernel.

These tools were designed to simplify topology management and expose complex topology operations through user-friendly workflows.

Each operation is implemented as a guided wizard that walks the user through the required steps while ensuring topology consistency.

NOTE: The same topology functionality is available both from the TatukGIS Editor user interface and from custom applications built with TatukGIS Developer Kernel.

The Topology Menu

Topology functionality is exposed through the dedicated Topology menu in the Editor.

The menu contains all major operations used to create, edit, validate, repair, and maintain topology.

Internally these commands are implemented through the TGIS_TopoTool class.

Topology Tool Architecture

The central method responsible for launching topology operations is:

procedure RunTool( 
  const _tool : TGIS_TopoTools
);

The method acts as a dispatcher and launches the appropriate topology wizard.

This architecture allows application developers to expose advanced topology functionality using only a single API call.

Available Topology Tools

The topology framework currently exposes the following operations:

Tool Description
CreateTopology Create a new topology project.
CreateFeatureLayer Create a new Feature Layer.
DeleteFeatureLayer Delete an existing Feature Layer.
CreateTopoFeature Create a new Feature.
DeleteTopoFeature Delete an existing Feature.
AddElementsToTopoFeature Add elements to an existing Feature.
DeleteTopoFeatureElement Remove elements from an existing Feature.
AutoFixTopoImportErrors Automatically repair topology import errors.
MergeFeatureIntoNeighbor Manually repair topology import errors.

Topology Workflow States

Not all topology tools are available at all times. The availability of commands depends on the current topology state.

For example, when a topology project does not yet exist, only a limited number of operations are available.

After creating a topology, additional functionality becomes available.

Create Topology

The first operation available to the user is: CreateTopology. This tool creates a completely new topology project.

The wizard guides the user through:

  • Database selection
  • Topology type selection
  • Coordinate system configuration
  • Tolerance settings
  • Precision settings
  • Output location definition

The resulting topology becomes the foundation for all subsequent editing operations.

IMPORTANT: As long as no topology exists, all Feature Layer operations, Feature operations and topology repair tools remain disabled.

Feature Layer Management

Feature Layers provide the logical structure built on top of topology primitives.

Two tools are available for managing Feature Layers: CreateFeatureLayer and DeleteFeatureLayer. These tools make it possible to build and maintain Feature Layer hierarchies.

Feature Management Tools

Features are managed through a separate group of tools: CreateTopoFeature, DeleteTopoFeature and AddElementsToTopoFeature, DeleteTopoFeatureElement.

These operations allow users to:

  • create features from parent objects
  • delete features
  • add child elements to existing features
  • remove child elements from features

Together they form the basic workflow for building and modifying Feature Layer hierarchies.

Topology Validation and Repair

When topology is imported from external sources, geometry problems may be detected.

TatukGIS provides two repair mechanisms: AutoFixTopoImportErrors and MergeFeatureIntoNeighbor.

Automatic Repair

The AutoFixTopoImportErrors tool provides automated correction of common topology import errors. Invalid Features are processed automatically and merged into the nearest valid neighboring Feature, helping restore a consistent topology structure with minimal user intervention.

Manual Repair by merging feature into neighbor

The MergeFeatureIntoNeighbor tool allows users to manually repair topology errors by removing a selected Feature and merging it into a neighboring Feature chosen during the repair workflow.

Settings

The topology framework provides a Topology Settings dialog that contains configuration options related to topology creation, editing, and maintenance workflows.

The available options are discussed throughout this guide in the context of the workflows in which they are used.

Relationship Between Editor and API

One of the most important design goals of the topology framework is consistency between the user interface and the API. Every operation available in the Editor corresponds directly to a callable API action. This allows developers to expose the same functionality in custom applications without implementing the topology logic themselves.

TIP: The topology framework was intentionally designed so that applications built using TatukGIS Developer Kernel can offer almost identical topology functionality to TatukGIS Editor with very little code.

TopologyLayer Sample Application

The topology functionality described throughout this guide can be explored using the TopologyLayer sample application included with TatukGIS Developer Kernel.

The sample demonstrates topology creation, primitive editing, Feature Layer management, hierarchy operations, validation tools, and the High-Level API discussed in later chapters.

Readers are encouraged to use the sample alongside this tutorial to experiment with the workflows and implementation techniques presented throughout the guide.


In the next chapter, we will create the first topology project and examine the complete topology creation wizard step by step.

« Previous | Next »

2026/09/24 17:12

Page Tools