How to create a feature dataset

This document describes the process of creating a feature dataset. A feature dataset is a collection of related feature classes that share a common coordinate system. Feature datasets are used to spatially or thematically integrate related feature classes. Their primary purpose is for organizing related feature classes into a common dataset for building a topology, a network dataset, a terrain dataset, or a geometric network.

Creating a feature dataset

In addition to housing spatially related feature classes, there are additional situations in which users apply feature datasets in their geodatabases, including the following:
The IFeatureWorkspace::CreateFeatureDataset method can be used to create a new FeatureDataset given its name and spatial reference. Specifying the spatial reference is an important aspect of defining a feature dataset. This includes its coordinate system—either geographic or a specific projection—as well as coordinate units and tolerances for x,y, z- and m-values. All feature classes in the same feature dataset must share a common coordinate system and x,y coordinates of their features should fall within a common spatial extent.
See How to create a predefined spatial reference for steps on creating a predefined spatial reference object. There is a vast array of predefined spatial reference systems based on the values from the European Petroleum Survey Group (EPSG) database, which is becoming an industry standard. See for more information.
If you are creating feature datasets within different releases of the geodatabase, How to construct a high or low precision spatial reference will walk you through creating spatial references in 9.2 and pre-9.2 geodatabases.
If you need to create a coordinate system with custom properties, How to create a custom geographic coordinate system and How to create a custom projected coordinate system will walk you through these tasks.
See the following code example:
static IFeatureDataset createFeatureDataset(IWorkspace workspace, String fdsName,
    ISpatialReference fdsSR)throws Exception{
    IFeatureWorkspace featureWorkspace = new IFeatureWorkspaceProxy(workspace);
    return featureWorkspace.createFeatureDataset(fdsName, fdsSR);
Once the feature dataset has been created, you can populate your geodatabase with the following datasets:

See Also:

How to create a feature class

Development licensingDeployment licensing
ArcGIS for Desktop BasicArcGIS for Desktop Basic
ArcGIS for Desktop StandardArcGIS for Desktop Standard
ArcGIS for Desktop AdvancedArcGIS for Desktop Advanced
Engine Developer KitEngine: Geodatabase Update