Rangefinder extension

Description

This sample demonstrates how to develop a project extension that leverages a Bluetooth range finder in feature collection task. With the sample, you can choose to collect a point feature type, select a reference point on the map page, and use the range finder to shoot your target point. The extension reads offset information from the range finder through a Bluetooth connection and displays it on a page. After you accept the geometry, the offset is applied to the reference point and stored in a feature class. The sample also demonstrates how to hook up your implementation to geometry collection inside the Collect Feature task.

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. Learn how to set up your development machine.
  2. Compile the project and deploy the assembly to your mobile device or emulator. Read more information about deployment.
  3. Prepare a mobile project on your device with at least one point feature layer that can serve as a reference layer.
  4. 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.
  5. In Mobile Project Center, add the extension to your project on the Capabilities tab.
  6. Deploy your mobile project to your Windows Mobile device or emulator. Get more details on deployment.
  7. Enable Bluetooth connection to your range finder using the default COM1 serial port.
  8. Start the out-of-the-box mobile application.
  9. Tap to open the mobile project.
  10. On the Select Task page, choose to collect features.
  11. Choose a point layer from the feature type page, and on the next page, choose Use Range Finder as the geometry collection method.
  12. Choose a reference point from your existing point feature layer and accept it.
  13. Go to the next page where you can shoot your range finder at your target point to get offset information.
  14. Accept geometry when the extension reads offset information correctly from your range finder.
  15. Follow on-screen instructions to finish attribute collection and finish the task.

Where to get the sample

The sample is available for download.


9/20/2011