Creates a feature dataset in the output location: an existing enterprise, file, or mobile geodatabase.
Usage
A feature dataset is a collection of related feature classes that share a common coordinate system. Feature datasets are used to organize related feature classes into a common container for building a topology, network dataset, terrain, utility network, trace network, or parcel fabric.
The enterprise, file, or mobile geodatabase where the output feature dataset will be created.
Workspace
Feature Dataset Name
The name of the feature dataset to be created.
String
Coordinate System
(Optional)
The spatial reference of the output feature dataset. On the Spatial Reference Properties dialog box, you can select, import, or create a new coordinate system. To set aspects of the spatial reference, such as the x,y-, z-, or m-domain, resolution, or tolerance, use the Environments dialog box.
Note:
This parameter is optional, but providing a value is recommended. To edit the data in a feature dataset, a spatial reference is required.
The enterprise, file, or mobile geodatabase where the output feature dataset will be created.
Workspace
out_name
The name of the feature dataset to be created.
String
spatial_reference
(Optional)
The spatial reference of the output feature dataset. You can specify the spatial reference in the following ways:
Enter the path to a .prj file, such as C:/workspace/watershed.prj.
Reference a feature class or feature dataset whose spatial reference you want to apply, such as C:/workspace/myproject.gdb/landuse/grassland.
Define a spatial reference object before using this tool, such as sr = arcpy.SpatialReference("Sinusoidal (Africa)"), which you then use as the spatial reference parameter.
Note:
This parameter is optional, but providing a value is recommended. To edit the data in a feature dataset, a spatial reference is required.
Spatial Reference
Derived output
Name
Explanation
Data type
out_dataset
The new output feature dataset.
Feature Dataset
Code sample
CreateFeatureDataset example 1 (Python window)
The following Python window script demonstrates how to use the CreateFeatureDataset function in immediate mode.