ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Create Topology

Available with Standard or Advanced license.

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

Creates a topology. The topology will not contain any feature classes or rules.

Use the Add Feature Class To Topology and the Add Rule To Topology tools to add feature classes and rules to the topology.

Usage

  • If the Cluster Tolerance parameter is blank or set to 0, the xy tolerance of the feature dataset which contains the topology will be used.

  • There is a range allowed for the cluster tolerance value, this range is derived from the precision of the spatial reference of the feature dataset in which the topology is contained. If the value entered is larger than the maximum cluster tolerance, the maximum value will be used instead. If the value entered is smaller than the minimum, the minimum value will be used.

Syntax

CreateTopology_management (in_dataset, out_name, {in_cluster_tolerance})
ParameterExplanationData Type
in_dataset

The feature dataset in which the topology will be created.

Feature Dataset
out_name

The name of the topology to be created. This name must be unique across the entire geodatabase.

String
in_cluster_tolerance
(Optional)

The cluster tolerance to be set on the topology. The larger the value, the more likely vertices will be to cluster together.

Double

Code sample

CreateTopology stand-alone script

The following Stand-alone script demonstrates how to use the CreateTopology function.

# Name: CreateTopology_Example.py
# Description: Creates a new topology (these must reside within a feature dataset)
# Author: ESRI

# Import system modules

import arcpy
from arcpy import env
 
env.workspace = "h:/workspace"
arcpy.CreateTopology_management("d:/landuse.mdb/landuse",  "landuse_Topology")

Environments

This tool does not use any geoprocessing environments

Licensing information

  • ArcGIS for Desktop Basic: No
  • ArcGIS for Desktop Standard: Yes
  • ArcGIS for Desktop Advanced: Yes

Related topics

  • Topology basics
  • Topology in ArcGIS
  • Designing a geodatabase topology

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal