Collect Features Extension

Description

This sample shows how to extend feature collection by providing a new collection method for geometry. When you start the Collect Feature task, you will see a new collection method that creates a random point within the map's full extent and guides you to the attributes editing page, where you can choose to set custom attributes for the random point being collected. From the sample, you will gain a better understanding of how to plug into the geometry collection, attribute collection, and finish data collection pages. These are the places where you can extend the existing task to better fit your field data collection operation.

Products: ArcGIS Mobile

Platforms: Windows Mobile 5/6

Requires: Visual Studio 2008 with SP1, .NET Compact Framework 2.0 SP2

How to use

  1. Open the project within Visual Studio 2008. To learn how to set up your development machine, click here.
  2. Build and deploy the mobile project assembly file (comes with the sample project) to the <ArcGIS Mobile installation path>\bin\Extensions folder on your desktop where you will author your mobile project with the Mobile Project Center application.
  3. In Mobile Project Center, add the extension to your project on the Capabilities tab.
  4. Deploy your mobile project to your Windows Mobile device or emulator. For more details on deployment, click here.
  5. Start the out-of-the-box mobile application.
  6. Tap to open the mobile project.
  7. On the Select Task page, choose to collect features.
  8. Choose a point layer from the feature type page and choose Put in random place as the geometry collection method.
  9. Follow on-screen instructions. Make sure you also choose Set Custom Attributes since it's a customized attribute collection method.

Where to get the sample

The sample is available for download from here.


9/20/2011