Running the Sample

Land Desktop Map 3D Samples

 
Running the Sample
 
 
 

This sample accesses a feature source within a MySQL database using hard-coded values in the Commands method of the Commands.cs file. Modify the sample code to suit your configuration before compiling and using the sample.

To load the sample, type NetLoad at the command prompt. Select EditSetViewer.dll in the file browser.

To run the sample, first type Prepare at the command prompt. Once the features in the MySql feature source are loaded, type EditSetViewer. This will bring up the EditSet Viewer window.

To use the EditSet Viewer window, select a layer in the combo box to see the features cached by the layer. Click the Refresh button on the viewer dialog when you want to re-query the features in the EditSet. You can select a row and press the Del key to delete a feature. You can modify the data directly in the grid as well. Click the Apply button to save the changes to EditSet.

This sample demonstrates how to connect to a MySql provider and query features from the feature source. It also demonstrates how to access the EditSet object from AcMapLayer and manipulate the set of features using that object.