Exercise 2: Creating field configurations (Production Mapping)

复杂程度: 初级 数据要求: ArcGIS.com 目标: Create field configurations, configure attributes and feature level metadata, and verify field configuration settings.

Exercise 2a: Creating field configurations

The Field Configuration Manager is used to define various attribute properties such as how attributes will be displayed in the Feature Manager, which attributes are feature level metadata and how fields are managed when features are dissolved using the Production Dissolve tool. When building the field configurations, you can choose how a field will appear - whether bold, normal, disabled or hidden, what type of control will be used to edit the field, and if additional help will be displayed for the field to assist other users with understanding how to populate the field.

In this exercise, you will create the field configurations and set basic field properties, such as visibility and order.

注注:

Before completing any part of this exercise, you must complete Exercise 1 of this tutorial to ensure that the data model has been created in your product library geodatabase.

步骤:
  1. If necessary, click the Product Library button Product Library window on the Production Editing toolbar to open the Product Library window.
  2. In the Product Library window, ensure that the Product Library level is completely expanded and that the 1.0.0.0 data model version is visible.
  3. Right-click the 1.0.0.0 data model version and click Manage Field Configurations.

    The Field Configuration dialog box appears.

    Field Configuration dialog box
  4. Click Create Configuration.

    The Creating Field Configurations window appears with a progress bar. Once the processing is complete, an option to select Tables to Edit is enabled on the Field Configuration dialog box.

    注注:

    This step is only necessary the first time you create field configurations for a data model version. During this step, the default configurations are being created for all the feature classes and tables in your data model version.

  5. Click Tables to Edit.

    The Choose Data Model Version Tables to Edit dialog box appears with a list of feature classes and tables that were defined by the data model version as the schema for the production database.

    Choose Data Model Version Tables to Edit dialog box
  6. Right-click in the Choose Table(s) to Edit list and click Select All.

    This checks the boxes next to all of the feature classes and the BuildingOwners table to edit their configurations.

    Tables to edit selected
  7. Click OK.

    The Field Configuration dialog box appears with the selected feature classes and tables in the Current Fields Configuration list.

    Current Fields Configuration list
  8. You now have the option to edit the configuration of the fields individually or to edit the shared fields at the same time.

Exercise 2b: Configuring attributes across multiple feature classes

When creating configurations for a database, you may find commonalities to the way fields should be displayed across the various feature classes and subtypes. The Edit Shared Field option allows you to set field properties once and apply the settings to multiple feature classes.

步骤:
  1. Click Edit Shared Fields on the Field Configuration dialog box.

    The Edit Shared Fields dialog box appears.

    Edit Shared Fields dialog box

    A new feature in field configurations at 10.1 is the ability to display your attributes in groups when viewing in the Feature Manager. For this exercise, we will create three groups:

    • System Attributes
    • Editable Attributes
    • Metadata Attributes

    When creating groups for your own data, you can create whatever groups make the most sense for your data. For example, you can separate mandatory attributes from optional attributes.

  2. Click New Group next to the Groups list.

    A group appears where you can type the name of the group.

  3. Type Editable Attributes for the group name.
  4. Click New Group next to the Groups list again.

    A group appears where you can type the name of the group.

  5. Type Metadata Attributes for the group name.
  6. Click New Group next to the Groups list again.

    A group appears where you can type the name of the group.

  7. Type System Attributes for the group name.

    Now that you have added three groups, the Groups list should look like the following.

    Groups list

    Next, you will add fields to the System Attributes group.

  8. From the Shared Fields list, choose f_code, fcsubtype, gfid, objectid, shape, shape_area, and shape_length by holding down CTRL as you click each item.
  9. Ensure that the System Attributes group is highlighted and click Add to Group to add the selected fields to the System Attributes group.

    Next, you will add fields to the Metadata Attributes group.

  10. From the Shared Fields list, choose creation_date, operator, and originating_source by holding down CTRL as you click each item.
  11. Click the Metadata Attributes group so that it is highlighted and click Add to Group to add the selected fields to the Metadata Attributes group.
  12. From the Shared Fields list, choose f_code, fcsubtype, gfid, and objectid by holding down CTRL as you click each item.
  13. Click Add to Top to move the fields to the top of each feature class that contains them.
    注注:

    The Add To Top and Add to Bottom lists determine the order that the attributes appear when the attributes are not displayed in groups. This order is also applied when the attributes are grouped to determine the order where each field appears within the group.

  14. Using Move Up and Move Down next to the Move to Top list, ensure that the order of the attributes in the list is objectid, gfid, fcsubtype, and then f_code.
  15. Click the gfid field in the Move to Top list, right-click, and click Field Visibility > Visible but Disabled.

    When displayed in the Feature Attributes window, the field will be disabled. This means that you will not be able to edit the value in this field during an edit session.

    Field visibility defined
  16. From the Shared Fields list, choose creation_date, operator, originating_source, shape, shape_area, and shape_length by holding down CTRL as you click each item.
  17. Click Add to Bottom to move the fields to the bottom of each feature class that contains them.
  18. Select all the fields in the Move to Bottom list, right-click, and click Field Visibility > Visible but Disabled.

    When displayed in the Feature Attributes window, the fields will be disabled.

    You have now added all the System Attributes and Metadata Attributes to the top or bottom. You may have noticed that when an attribute is moved to the top or bottom, it is removed from the Shared Fields list. That means that the only attributes left in the Shared Fields list right now are the Editable Attributes. For the next steps you will add all these fields to the Editable Attributes group.

  19. From the Shared Fields list, select all the attributes that remain in the list by selecting the first attribute, holding down the SHIFT key, and clicking on the last attribute in the list.
  20. Click the Editable Attributes group so it is highlighted and click Add to Group to add the fields to the Editable Attributes group.
  21. In the Shared Fields list, click the zv2 field, right-click, and then hover over Field Help in the context menu.

    Field help defined

  22. Click the text box that appears and type Value must be between -400 and 11999, and then press ENTER.

    When the field is selected in the Feature Attributes window and you press F3, this text is displayed in the status bar at the bottom of ArcMap.

  23. In the Shared Fields list, click the buildingtype field, right-click, and click Field Visibility > Bold.

    When viewed through the Feature Attributes window, the buildingtype field will be bold to indicate that it should be filled out.

  24. In the Shared Fields list, click the nam field, right-click, and click Field Visibility > Bold.

    When viewed through the Feature Attributes window, the nam field will be bold to indicate that it should be filled out.

  25. Right-click in the white space of the Choose Table(s) to Apply Shared Edits section in the lower-left of the Edit Shared Fields dialog box, then choose Select All to check the boxes next to all of the tables in the list.

    This will apply the changes to all of the tables.

    When completed, the Edit Shared Fields dialog box should look like the following:

    Edit Shared Fields dialog box completed
  26. Click Apply to apply the changes you made to all of the tables in the list.
  27. Keep the Edit Shared Fields dialog box open and proceed to Exercise 2c.

Exercise 2c: Configuring feature level metadata

Some feature attributes are used to store information on how a feature was collected and edited. Through the Field Configuration Manager, you can specify fields as Feature Level Metadata. When an attribute is specified as a feature level metadata attribute, you can set the attributes for the fields once by creating a Metadata Favorite. When a metadata favorite is set, the feature level metadata fields will automatically be populated throughout your edit session.

When you configure feature level metadata attributes, there are three properties you can set. First you can specify if a field is a metadata field. Then you can specify if the field should be automatically populated with the date and time or the user login. Lastly, you can specify if the field will be populated when a feature is created and\or modified.

注注:

While all the other options for field configurations can be set individually or in batch, feature level metadata properties can only be set in the Edit Shared Fields dialog box.

步骤:
  1. In the Move to Bottom list, select the originating_source, operator, and creation_date fields, right click, and click Metadata Field.

    This indicates that the creation_date, operator, and originating_source fields will be considered feature level metadata.

  2. Click the creation_date field in the Move to Bottom list, right-click, point to Metadata Type, and click Date.
    Date metadata type defined

    This indicates that the field will automatically be populated with the current system date and time when a feature is created or modified.

  3. Click the operator field in the Move to Bottom list, right-click, point to Metadata Type, and click User Name.
    Name metadata type defined

    This indicates that the field will automatically be populated with the current system username when a feature is created or modified.

    You will leave the default Metadata Type option for the originating_source field. The default setting is Other, which allows you to enter a value for the field when you create a metadata favorite.

  4. Click the creation_date field in the Move to Bottom list, right-click, point to Metadata Events, and click Modify to disable this option.
    Creation date field defined

    The Metadata Events allow you to choose when the field will be populated. For creation_date field, you want the data to be populated when the feature is created and not when the feature is modified. By disabling the Modify option the field will only be populated when a feature is created.

    For the other metadata fields, you will leave the default Metadata Events options so the fields will be populated when features are created or modified.

  5. Right-click in the white space of the Choose Table(s) to Apply Shared Edits section in the lower left of the Edit Shared Fields dialog box, then choose Select All to check the boxes next to all of the tables in the list.

    This will apply the changes to all of the tables.

  6. Click OK.

    Leave the Field Configuration dialog box open and proceed to Exercise 2d.

Exercise 2d: Configuring attributes individually

Fields are often displayed the same way across feature classes, yet you may also need to customize fields differently for some feature classes or subtypes. For this exercise you will configure the attributes of two subtypes in the BuildP feature class. The BuildP feature class contains some fields that are only applicable for some subtypes. For example, the SchoolType attribute is only applicable if the School subtype is chosen. You will make the SchoolType bold (to indicate mandatory) for the School subtype, but hide the field for other subtypes where it is not applicable

步骤:
  1. Click the plus sign (+) next to the BuildP feature class in the Current Fields Configuration Table list on the Field Configuration dialog box.
  2. Click the plus sign (+) next to the House of Worship subtype.
  3. Click the WorshipType field, right-click, point to Field Visibility, and click Bold.
  4. Click the SchoolType field, right-click, point to Field Visibility, and click Invisible.
  5. Click on the BuildingType field and drag it to the top of the House of Worship subtype, just below the OBJECTID field.
  6. Click on the WorshipType field and drag it to the top of the House of Worship subtype, just below the BuildingType field.
  7. Click on the nam field and drag it to the top of the House of Worship subtype, just below the OBJECTID field.

    By dragging the fields, you have reordered how the fields will appear within the Editable Attributes group. The three bold (mandatory fields) now appear at the top of the group.

    When complete the field configuration for the House of Worship subtype should look like the following:

    Field configuration for the House of Worship subtype
  8. Click the minus sign (-) next to House of Worship to collapse the subtype.
  9. Click the plus sign (+) next to the School subtype.
  10. Click the WorshipType field, right-click, point to Field Visibility, and click Invisible.
  11. Click the SchoolType field, right-click, point to Field Visibility, and click Bold.
  12. Click the BuildingType field and drag it to the top of the School subtype, just below the OBJECTID field.
  13. Click the SchoolType field and drag it to the top of the School subtype, just below the BuildingType field.
  14. Click the nam field and drag it to the top of the School subtype, just below the SchoolType field.

    When complete the field configuration for the School subtype should look like the following:

    Field configuration for the School subtype
  15. Click OK.

    This will apply all the changes to the fields and close the Field Configuration dialog box.

You have now configured how fields will be displayed in the Feature Attributes window. In Exercise 2e, you will learn how to verify the field configuration settings.

Exercise 2e: Verifying the field configuration settings

Now that you have created your configuration, you may want to view it to see how the Feature Manager reacts to the properties you set.

步骤:
  1. Ensure that you still have the Edit_Sample.gdb loaded in your map.
  2. Click the Production Start Editing button Production Start Editing on the Production Editing toolbar.
    注注:

    The Manage Features and Create Attributes, Update Attributes, or Metadata Attributes windows automatically appear when you start an edit session using the Production Start Editing tool.

    提示提示:

    If the Create Attributes, Update Attributes, or Metadata Attributes window does not appear when you start an edit session, click the Show/Hide Attributes button Show/Hide Attributes on the Manage Features window.

  3. Click the Create tab on the Manage Features window.
  4. Click the House of Worship template in the BuildP group.

In the following steps, you will verify the field configuration settings for:

Grouping properties

To review the grouping properties, ensure that you are in the Create Attributes window. You should see the attributes grouped by the three groups you created in Exercise 2b:

  • Editable Attributes
  • Metadata Attributes
  • System Attributes

Create Attributes window
注注:

If you do not see these groups after clicking on the template, right-click on the grid in the Create Attributes window and ensure that the Enable Grouping option is checked.

Visibility properties

With the House of Worship template selected, notice that the BuildingType, WorshipType, and nam attributes are in bold at the top of the Editable Attributes group. Also notice that the SchoolType attribute does not appear in the group.

步骤:
  1. Click the Create tab on the Manage Features window.
  2. Click the School template.

    Notice that the WorshipType is no longer displayed, but instead the SchoolType is displayed in bold at the top of the Editable Attributes group.

    SchoolType from selected School template displayed

Help properties

步骤:
  1. Select the SpotElevationPoint template in the Create tab.
  2. In the Create Attribute dialog box, click on the zv2 attribute.
  3. Press the F3 key on your keyboard.

    The text you entered for this field is displayed in the status bar in the lower-left corner of the ArcMap window.

Feature level metadata properties

The first step in validating your Feature Level Metadata configuration is to create a metadata favorite. The favorite contains the attributes that will be automatically populated when features are created or modified.

步骤:
  1. Click the Metadata tab on the Manage Features window.
  2. Right-click in the tab and ensure the UseFCT Metadata option is enabled.
  3. Right-click in the tab and choose New Favorite.

    The New Feature Metadata Favorite dialog box appears.

  4. In the fields provided, type a name and description for the metadata favorite, such as Test.

    Because you are only using the metadata favorite to test your configuration, the value you enter in this step does not matter.

    New Feature Metadata Favorite dialog box
  5. Click OK.
  6. Click the Test favorite in the Metadata tab.
  7. Review the attributes that appear in the Metadata Attributes window.

    All three attributes that were set as metadata attributes (creation_date, operator, and originating_source) should appear in the attribute grid. The creation_date field was set to automatically populate with the date and type so you should see #date# to indicate that this field will be populated dynamically with the current date as a feature is created. In a similar way the operator field displays #username# because it is configured to automatically populate the windows user name

    Metadata Attributes window
  8. Enter a value such as Test for the originating_source field and click Apply.

    Again the value does not matter because we are only testing the configuration.

  9. Click the Create tab on the Manage Features window.
  10. Click in the map to create a feature from the selected template.
  11. Click the Update tab on the Manage Features window.
  12. Verify that the three metadata attributes are populated and that the operator and creation_date fields are set to your window login and today's date respectively.

    There was one other metadata property that you set and that was the metadata events for the creation_date field. This field should only be populated when you create a new feature, not when you modify an existing feature.

  13. Select an existing feature in the map (not the feature you just created).

    All three metadata attributes will most likely be populated with Null values.

  14. Make a change to the feature by either modifying the geometry (for example, moving the feature) or by changing an attribute in the attribute grid.
  15. Click Apply.
  16. Notice that the operator and originating_source fields are populated with the values from the metadata favorite. However, the creation_date value remains the same.

In this exercise, you have learned how to create field configurations for displaying your attributes and to configure attributes individually and across multiple feature classes. You have also learned how to verify your field configuration settings. In Exercise 3:_Creating validation rulesyou will learn to create validation rules for your data model.

4/27/2014