Simple point plug-in data source


Purpose
This sample implements a plug-in data source for a SimplePoint data format to provide direct read-only ArcGIS support for the format.
 
The data in this sample follows a simple format. An American Standard Code for Information Interchange (ASCII) text file contains data for each new point on a new line. The first six characters are the x-coordinate, the next six characters contain the y-coordinate, and the trailing characters contain an attribute value. You can use the sample data from the software development kit (SDK) samples folder or create data according to the preceding specifications.
 
For more information, see Creating a plug-in data source.

How to use

See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample.

Data has been provided for your use with this sample. It can be found at <Your ArcGIS Developer Kit Install directory>/Samples/data/SimplePointData/points.csp.
If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Open the solution using Visual Studio.
  2. Build the solution to make the SimplePointPlugin class library.

Using simple point with ArcGIS Desktop
  1. Start ArcCatalog and ArcMap.
  2. In ArcCatalog, browse to the ArcGIS installation folder and locate the Developer Kit's Samples\Data\SimplePointData\ folder (you will see a Points dataset).
  3. In ArcCatalog's tree-view, expand the feature dataset to view the contained datasets.
  4. Drag the Points dataset onto ArcMap.
  5. In ArcMap, use the layer's properties to change the renderer to a "Unique values renderer." Use the values from the ColumnOne field.
  6. Examine the layer's attribute table, identify and apply the selection on the layer.

Using simple point with ArcGIS Engine
  1. Use this command in an application with a MapControl or PageLayoutControl, and a ToolbarControl.
  2. Add the command to the ToolbarControl. The command (Add SimplePoint layer) can be found in the .NET Samples category.
  3. Run the application.
  4. Click the Add SimplePoint layer command. The OpenSimplePointDlg dialog box appears. Click the Open Simple Point Data button to browse for Simple Point data datasets. Use Points in <ArcGIS Developer Kit Installation folder>\Samples\data\SimplePointData.
  5. From the datasets list, select the datasets to add to the map and click OK.

SimplePointWkspFact.cs Simple point workspace factory helper implementation.
SimplePointWksp.cs Simple point workspace helper implementation.
SimplePointDataset.cs Simple point plug-in dataset helper implementation.
SimplePointCursor.cs Simple point plug-in cursor implementation.
AddSimplePointLayerCmd.cs Command for adding SimplePoint dataset programmatically.
OpenSimplePointDlg.cs A dialog box to select SimplePoint datasets.
OpenSimplePointDlg.Designer.cs Designer file of the OpenSimplePointDlg dialog box.
Download the C# files
SimplePointWkspFact.vb Simple point workspace factory helper implementation.
SimplePointWksp.vb Simple point workspace helper implementation.
SimplePointDataset.vb Simple point plug-in dataset helper implementation.
SimplePointCursor.vb Simple point plug-in cursor implementation.
AddSimplePointLayerCmd.vb Command for adding SimplePoint dataset programmatically.
OpenSimplePointDlg.vb A dialog box to select SimplePoint datasets.
OpenSimplePointDlg.Designer.vb Designer file of the OpenSimplePointDlg dialog box.
Download the VB.NET files

Download the files for all languages

See Also:

Plug-in data sources
Creating a plug-in data source
Implementing optional functionality on plug-in data sources
Adding a plug-in data source programmatically




Development licensing Deployment licensing
ArcView ArcView
ArcEditor ArcEditor
ArcInfo ArcInfo
Engine Developer Kit Engine Runtime