Defining tables

You define the properties of a table or feature class when you create it in a database or geodatabase. You can use the New Table or New Feature Class wizards from the database connection in the Catalog tree to do this. Both these wizards are accessed by right-clicking a database connection (or feature dataset in a geodatabase), pointing to New, then clicking either Feature Class or Table.

The properties you define using the wizards are shown in the following table. The check marks indicate to which object—a table or a feature class (spatial tables)—a property applies.

Property

Table

Feature class

Name and alias

Property can be set

Aliases can be set only in geodatabases.

Property can be set

Aliases can be set only in geodatabases.

Feature type

Property can be set

Spatial type

Property can be set

Databases only

Geometry properties, including

  • Presence of m- or z-values
  • Coordinate system
  • X,y tolerance

Property can be set

X,y tolerance is set only in geodatabases.

Reference scale and map units

Property can be set

Applies to dimension and annotation feature classes in geodatabases only.

Annotation class

Property can be set

Applies to annotation feature classes in geodatabases only.

Scale range

Property can be set

Applies to annotation feature classes in geodatabases only.

Dimension style

Property can be set

Applies to dimension feature classes in geodatabases only.

Configuration keyword

Property can be set

Geodatabases only

Property can be set

Geodatabases only

Field name, data type, and length

Property can be set

Property can be set

Define table properties

Names, aliases, feature types, and spatial properties are discussed in the sections below. For information on the other properties, follow the links in the table.

Table and feature class names

When you create a table, you should give it a name that indicates what data the table stores. Table names must be unique in a geodatabase—you can't have more than one table with the same name.

When you create a table or feature class in an enterprise geodatabase or database, the name of the schema in which the table is stored is appended to the table or feature class name. In all databases except Oracle, the name of the database is also appended to the table or feature class name. This is referred to as the fully qualified table name. For example, if user Werther creates a table called alpacas in a SQL Server database, the name of the table is as follows:

sde.werther.alpacas

Therefore, it is possible for other users to create tables called alpacas because the tables they create will have their user names appended to the table names. For example, if user Gretchen created her own alpacas table, this is the name in the database:

sde.gretchen.alpacas

However, it is not recommended that you reuse table names even if they are stored in different schemas or databases. In this example, if both tables contained information about alpacas, there would be no reason to have two separate tables. If the data was distinctly different between the two tables, the table names should reflect that.

Additional rules

NoteNote:

Table or feature class names with the following prefixes are not supported in geodatabases: gdb_, sde_, delta_.

Renaming fields

You can rename fields in a table or feature class from the Fields tab of the Properties dialog box. Fields in a geodatabase from the ArcGIS 10 release and later support renaming, and fields in database tables can be renamed.

To rename a field, right-click the feature class or table in the Catalog tree and click Properties. Click the Fields tab to see a list of fields in that table or feature class. Click on the text of the field you want to rename and type a new name. Click OK to apply your changes and close the Properties dialog box.

Restrictions for field names are similar to those for table and feature class names.

  • Names must begin with a letter, not a number or special character such as an asterisk (*) or percent sign (%).
  • Names should not contain spaces.

    If you have a two-part field name, connect the words with an underscore (_), for example, customer_address.

  • Names should not contain reserved words, such as all or result.

    Consult your DBMS documentation for additional reserved words.

  • Field names are limited to 64 characters in file geodatabases and 31 characters in most enterprise geodatabases and databases (30 characters in Oracle).

The following fields cannot be renamed:

  • ObjectID and GlobalID fields
  • Any Shape-related field; Shape, shape length, shape area
  • The enabled, ancillary role or network weight fields of a network feature class
  • Representation fields
  • Fields in a feature class participating in a Network Dataset, Terrain, or Cadastral Fabric
  • Fields used for Editor Tracking
  • Relationship Class Primary Key and Foreign Key fields
  • The Subtype field
  • Raster fields

Aliases

When you create a table or feature class in a geodatabase, you can assign an alias to it. An alias is an alternate name. If you assign an alias to a table or feature class, that is the name users will see when they add it to ArcMap. Users can still look up the name of the table or feature class by going to the Source tab on the Layer Properties dialog box.

Feature types

Feature types are only defined for feature classes and are defined at the time of feature class creation. They specify what type of geometry will be stored in the feature class.

You should choose a feature type that best represents the real-world object you are trying to symbolize on your maps. This could vary depending on the map scale with which you use the feature class. You should also take into consideration the type of analyses you may want to perform with the data.

The following table contains a list of the types of features you can specify for a feature class, along with descriptions of typical objects or concepts represented with that feature type. A third column contains notes on the sort of analyses or relationships you can create or perform only with this feature type.

Feature type

Real-world object or concept

Unique spatial analyses or relationships

Polygons

Objects or places that have area, such as water bodies, jurisdictional or service area boundaries, wildlife ranges, or flood zones

  • Union with other polygon features
  • Symmetrical differences
  • Clip other features with

Lines

Linear objects, such as rivers, streets and highways, utility lines, or survey transects

  • Use as edge feature sources for networks
  • Model flow

Points

A narrowly localized position or spot, such as a survey marker, sample point, telephone pole, or individual plant

  • Generate Thiessen polygons from
  • Use with survey data (Survey Analyst)
  • Use as junction feature sources in a network

Multipoints

(Geodatabase feature classes only)

An object or place that is composed of multiple localized positions having the same attributes, for instance, a stand of the same species of tree, an island chain, multiple buildings in the same office complex, or lidar or sonar point clusters

Multipatches

(Geodatabase feature classes only)

Three-dimensional features, such as buildings, mountains, water tables, and planets

  • 3D analyses to derive contours, produce a hillshade, or analyze a viewshed or volume
  • Cannot participate in a topology
  • Cannot snap other features to

Annotation

(Geodatabase feature classes only)

Place or object names or identifiers, such as street names, hydrant ID numbers, land values, or elevation

  • Can be linked to specific features
  • When combining annotation feature classes, must all use the same label engine, standard or Maplex

Dimensions

(Geodatabase feature classes only)

Measurements, such as distances, lengths, widths, and depths

  • A specific type of annotation used only for showing distances and lengths

Feature types

You may find you need to have feature classes of different feature types to represent the same data. For example, if you usually create maps at a scale at which it makes sense to use a polygon feature class to represent city parks (approximately 1:25,000 to 1:100,000) but you sometimes need to create maps at a scale at which you need the parks to be shown as points (approximately 1:250,000 to 1:500,000), you could create a second parks feature class that uses centroid points to represent the location of the parks.

Or you may find for mapping purposes you need data represented in one feature type, but to perform certain analyses, you need the same data represented in a different feature type. For example, you might have a river feature class that stores the rivers as lines. That works fine for modeling flow or analyzing where rivers cross other features, but if you need to perform any sort of area analysis, such as clipping or calculating the area of your soils polygon feature class that is covered by rivers, you'll need to also model your rivers as polygon features so they have area, not just length.

Spatial properties

Tables that store spatial data, such as those that make up feature classes, possess properties that define where the data is located in space:

Together, these properties allow you to find the location of a given feature on the earth.

Related Topics

3/18/2014