Topology check (arcengine)

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.