Exercise 2: Adding a new feature layer definition based on an existing Parcel layer

Exercise 1: Creating a custom data entry form for a Parcel layer

Creating multiple feature layers based on a single feature table in an AXF

In this exercise while in ArcPad Studio, you will add a new feature layer to the existing parcel.axf file. This new layer will be based on the same data as the existing Parcel feature layer. The ability to have multiple feature layers based on single feature tables allows users to customize how data is viewed in different situations without duplicating data. You will also add a filter query to this new feature layer (an Extensible Markup Language [XML] element called <QUERY>) so that only office parcels are displayed on the map in ArcPad.

Creating a feature layer and changing the layer icon for the new layer

Steps:
  1. Right-click the Parcel feature layer or Parcel feature table. Click Create New Layer. See the following screen shot:
    Screen shot showing the Create New Layer option.
  2. Name the new layer Office.
  3. Right-click the Office layer and click Set Layer Icon. See the following screen shot:
    Screen shot showing the Set Layer Icon option.
  4. Navigate to the sample Layer Icons folder. On Windows XP this is usually C:\Documents and Settings\All Users\Documents\ArcPad\Samples\Layer Icons, on Windows 7 this is usually C:\Users\Public\Documents\ArcPad\Samples\Layer Icons. Choose your prefered icon and click Open. ArcPad Studio automatically updates the ArcPad Exchange File (AXF) tree view window. See the following screen shot:
    Screen shot showing the AXF tree view.

Creating a query for the Parcel layer

Steps:
  1. Right-click [ST_PARCEL_ZONECODE] under the Data Tables folder, then click Show Data. See the following screen shot:
    Screen shot showing the Show Data option.
  2. After you click Show Data, the SQL command window appears. Examine the fields of the Parcel feature table. Based on the ZoneCode values, you can choose to only show a subset of the parcels on the map. For example, in this project you want to display only parcels in Category 5 (Office). See the following screen shot:
    Screen shot showing the SQL command window.
  3. Right-click the Office layer and click Edit Layer Definition. The Riverside_mdb.axf:Office layer definition window appears.
    Screen shot showing the Add Element option.
  4. Right-click <Layer> Office in the Riverside_mdb.axf:Office layer definition window and click Add Element. The Add Element dialog box appears. See the following screen shot:
    Screen shot showing the Add Element dialog box.
  5. Click OK to close the dialog box.
  6. Right-click the <QUERY> element and click Add Attribute. The Attribute dialog box appears. See the following screen shot:
    Screen shot showing the Attribute dialog box.
  7. Type where in the Name text box and zonecode = 5 in the Value text box. Click OK to close the dialog box.
  8. Click the Toggle between source and tree view Toggle between source and tree view button button on the toolbar. See the following screen shot:
    Screen shot showing the XML source window.
  9. Save the layer defintion before you close the XML source view window. ArcPad Studio displays Office: Layer definition updated in the AXF tree view window.
  10. In ArcPad, click the Add Layer Add Layer button button. The Add Layer(s) dialog box appears. Click the folder image to navigate to the location of your saved tutorial data.
  11. Select the Office Parcel layer and the Streets.shp shapefile. See the following screen shot:
    Screen shot showing the Add Layer(s) dialog box.
  12. Click OK. In ArcPad, the parcels that have the zone defined as Office displays on the map. See the following screen shot:
    Screen shot showing the Office zone in ArcPad.
  13. Click the Table of Contents Table of Contents button button in ArcPad. The Table of Contents dialog box appears. See the following screen shot:
    Screen shot showing the Table of Contents dialog box.
  14. Double-click the Office layer. The Layer Properties dialog box appears. See the following screen shot:
    Screen shot showing the Layer Properties dialog box.
  15. The query phrase zonecode = 5 is also saved under the Filter tab. Click OK to close the dialog box.

2/7/2013