Create Unregistered Feature Class (Data Management)

Summary

Creates an empty feature class in a database or enterprise geodatabase. The feature class is not registered with the geodatabase.

Usage

  • This tool creates only simple feature classes such as point, multipoint, polygon, and polyline.

  • An empty feature class created by this tool will either have a field named OBJECTID of type integer or contain the same field names and types of any selected input template feature class.

Parameters

LabelExplanationData Type
Feature Class Location

The enterprise geodatabase or database in which the output feature class will be created.

Workspace; Feature Dataset
Feature Class Name

The name of the feature class to be created.

String
Geometry Type
(Optional)

Specifies the geometry type of the feature class. This parameter is only relevant for those geometry types that store dimensionality metadata, such as ST_Geometry in PostgreSQL, PostGIS Geometry, and Oracle SDO_Geometry.

  • Point —The geometry type will be point.
  • Multipoint —The geometry type will be multipoint.
  • Polyline —The geometry type will be polyline.
  • Polygon —The geometry type will be polygon. This is the default.
String
Template Feature Class
(Optional)

An existing feature class or list of feature classes with fields and attribute schema used to defined the fields in the output feature class.

Feature Layer
Has M
(Optional)

Determines if the output feature class contains linear measurement values (M-values).

  • No —The output feature class will not have M-values. This is the default.
  • Yes —The output feature class will have M-values.
  • Same as the template feature class —The output feature class will have M-values if the dataset specified in the Template Feature Class parameter (template parameter in Python) has M-values.
String
Has Z
(Optional)

Determines if the output feature class contains elevation values (Z-values).

  • No —The output feature class will not have Z-values. This is the default.
  • Yes —The output feature class will have Z-values.
  • Same as the template feature class —The output feature class will have Z-values if the dataset specified in the Template Feature Class parameter (template parameter in Python) has Z-values.
String
Spatial Reference
(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.

Spatial Reference
Configuration Keyword
(Optional)

Specifies the default storage parameters (configurations) for geodatabases in a relational database management system (RDBMS). This setting is applicable only when using enterprise geodatabase tables.

Configuration keywords are set by the database administrator.

Learn more about configuration keywords

String

Derived Output

LabelExplanationData Type
Output Feature Class

The output unregistered feature class.

Feature Class

arcpy.management.CreateUnRegisteredFeatureclass(out_path, out_name, {geometry_type}, {template}, {has_m}, {has_z}, {spatial_reference}, {config_keyword})
NameExplanationData Type
out_path

The enterprise geodatabase or database in which the output feature class will be created.

Workspace; Feature Dataset
out_name

The name of the feature class to be created.

String
geometry_type
(Optional)

Specifies the geometry type of the feature class. This parameter is only relevant for those geometry types that store dimensionality metadata, such as ST_Geometry in PostgreSQL, PostGIS Geometry, and Oracle SDO_Geometry.

  • POINTThe geometry type will be point.
  • MULTIPOINTThe geometry type will be multipoint.
  • POLYLINEThe geometry type will be polyline.
  • POLYGONThe geometry type will be polygon. This is the default.
String
template
[template,...]
(Optional)

An existing feature class or list of feature classes with fields and attribute schema used to defined the fields in the output feature class.

Feature Layer
has_m
(Optional)

Determines if the output feature class contains linear measurement values (M-values).

  • DISABLEDThe output feature class will not have M-values. This is the default.
  • ENABLEDThe output feature class will have M-values.
  • SAME_AS_TEMPLATEThe output feature class will have M-values if the dataset specified in the Template Feature Class parameter (template parameter in Python) has M-values.
String
has_z
(Optional)

Determines if the output feature class contains elevation values (Z-values).

  • DISABLEDThe output feature class will not have Z-values. This is the default.
  • ENABLEDThe output feature class will have Z-values.
  • SAME_AS_TEMPLATEThe output feature class will have Z-values if the dataset specified in the Template Feature Class parameter (template parameter in Python) has Z-values.
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 prior to using this tool, such as sr = arcpy.SpatialReference("C:/data/Africa/Carthage.prj"), which you then use as the spatial reference parameter.

Spatial Reference
config_keyword
(Optional)

Specifies the default storage parameters (configurations) for geodatabases in a relational database management system (RDBMS). This setting is applicable only when using enterprise geodatabase tables.

Configuration keywords are set by the database administrator.

Learn more about configuration keywords

String

Derived Output

NameExplanationData Type
out_feature_class

The output unregistered feature class.

Feature Class

Code sample

CreateUnregisteredFeatureclass example (Python window)

The following Python window script demonstrates how to use the CreateUnRegisteredFeatureclass function in immediate mode.

import arcpy
arcpy.CreateUnRegisteredFeatureclass_management(
    r'Database Connections\Connection to Organization.sde', "New_FC", "POINT", 
    "", "DISABLED", "DISABLED")

Licensing information

  • Basic: Yes
  • Standard: Yes
  • Advanced: Yes

Related topics