Creating an attributed relationship class
This topic applies to ArcEditor and ArcInfo only.
Although relationship classes can be both created and edited in ArcInfo and ArcEditor, they are read-only in ArcView. The feature classes participating in a relationship class will also be read-only in ArcView.
Any relationship class—whether simple or composite, of any particular cardinality—can have attributes. Relationship classes with attributes are stored in a table in the database. This table contains at least the foreign key to the origin feature class or table and the foreign key to the destination feature class or table.
An attributed relationship can also contain any other attribute. The example in this subtask shows how to create a simple relationship between a feature class that stores water laterals and a feature class that stores hydrants.
Water lateral objects have their own attributes, and hydrant objects have their own attributes. The relationship class in this example describes which water laterals feed which hydrants. Because you want to store some kind of information about that relationship—such as the type of riser connecting the two—you can store this information as attributes in the relationship class.
- In the Catalog tree, right-click the geodatabase or feature dataset in which you want to create the new relationship class and point to New > Relationship Class.
- Type the name for the new relationship class.
- Click the Origin table or feature class.
- Click the Destination table or feature class.
- Click Next.
- Click Simple (peer-to-peer) relationship.
- Click Next.
- Type the forward and backward path labels.
- Click the message notification direction.
- Click Next.
- Click the first cardinality option. In this example, an owner can own a single parcel, and a parcel can be owned by a single owner, so this is a one-to-one (1:1) relationship.
- Click Next.
- Click the first option to add attributes to the relationship class.
- Click Next.
- To add a field, click the next row in the Field Name column, then type a name.
- Click in the Data Type field next to the new field's name, then click its data type.
- Set the new field's properties in the dialog box below.
- Repeat steps 15 through 17 until all the relationship class's fields have been defined.
- Click Next.
- Click the drop-down arrow to see a list of fields from the Origin table or feature class. Click the primary key for this feature class or table.
- Type the name of the foreign key field for the Origin table or feature class.
- Click the drop-down arrow to see a list of fields from the Destination table or feature class. Click the primary key for this feature class or table.
- Type the name of the foreign key field for the Destination table or feature class.
- Click Next.
- Review the options you specified for your new relationship class. If you want to change something, you can go back through the wizard by clicking Back.
- Click Finish to create the new relationship class when satisfied with your options.