Skip To Content

Create Unregistered Feature Class

Summary

This tool 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 have either a field named OBJECTID of type integer or will contain the same field names and types of any selected input template feature class.

Syntax

CreateUnRegisteredFeatureclass_management (out_path, out_name, {geometry_type}, {template}, {has_m}, {has_z}, {spatial_reference}, {config_keyword})
ParameterExplanationData 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)

The geometry type of the feature class. Only relevant for those geometry types that store dimensionality metadata, such as ST_Geometry in PostgreSQL, PostGIS Geometry, and Oracle SDO_Geometry.

  • POINTPoint
  • MULTIPOINTMultipoint
  • POLYLINEPolyline
  • POLYGONPolygon
String
template
[template,...]
(Optional)

An existing feature class or layer to use as a template to define the attribute schema of 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 theTemplate 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)

Determines the storage parameters of the feature class in an enterprise geodatabase.

String

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

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

Related topics