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