Create Topology
Topology (topology) is a feature under the same element set (featuredataset)
Class. Therefore, all the element classes involved in a topology must be in the same element set. One element set can have multiple topologies, but each element class can only participate in one extension.
.
Use arccatalog to create a topology. After generating a feature set and its element classes, do not register the version. Instead, create a topology Layer Based on the topology creation wizard, and then register the version.
Topology cannot be created:
The target element class has been involved in a topology or geometry network.
The target element class is a note layer or multi-dimensional layer.
The target element category has been registered as a version.
Although topology can be created through the itopologycontainer interface in the arcengine application, this is only applicable when the element class does not have a registered version. For
The feature set of the registered version. This topology creation method will invalidate the workspace. Generally, ArcSDE is used, and the element classes rarely do not register the version. Without the registration version, version tracing cannot be achieved.
You cannot even cancel and redo the edits.
Topology check
Topology check with a registered version must be performed between one edit operation.
''' <Summary>
''' Performs a topology check on the specified layer and adds the topology result layer to the map
''' </Summary>
''' <Param name = "pfeatureclass"> element class involved in topology </param>
''' <Param name = "pmap"> </param>
''' <Remarks> </remarks>
Public sub validatetopology () sub validatetopology (byval pfeatureclass as ifeatureclass, byval pmap as IMAP)
Dim ptopoclass as itopologyclass = pfeatureclass
'If the element class participates in the topology
If ptopoclass. isw.pology then
'Starteditoperation ()
'Perform topology check
Dim ptopo as itopology = ptopoclass. Topology
Dim pgeods as igeodataset = ptopo
Dim pvalidatedenv as ienvelope = ptopo. validatetopology (pgeods. extent. envelope)
'Endeditoperation ()
'Add the check result to the map
Dim ptopolayer as itopologylayer = new topologylayer
Ptopolayer. Topology = ptopo
Dim player as ilayer = ptopolayer
Player. Name = pfeatureclass. aliasname & "_ Topology"
Pmap. addlayer (player)
End if
End sub