ArcIMS Select Buffer tool


PurposeThis sample demonstrates how to show selected features and buffer geometry with ArcIMS data sources in the Web Application Developer Framework (ADF). Both the Select tool and Buffer tool work with the ArcIMS application programming interface (API) via ArcIMS MapFunctionality. Selections, graphics, and buffers are drawn as acetate layers on the map image generated by ArcIMS.

How to use

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.

At design time
  1. Verify that the Web ADF for the .NET Framework is installed and functioning properly. For information on installing and configuring the Web ADF, consult the installation guide.
  2. In Windows Explorer, navigate to <ArcGIS install location>\DeveloperKit10.0 \Samples\ServerNET\ArcIMS_SelectBufferTool.
  3. Open the folder of the language you're going to use—CSharp or VBNet—and copy the ArcIMS_SelectBufferTool_<language> folder to c:\inetpub\wwwroot. The <language> variable can be either CSharp or VBNet.
  4. Open the IIS Manager from Control Panel > Administrative Tools > Internet Information Services (IIS) Manager or Internet Information Services.
  5. In the console tree view on the left, navigate to Local Computer > Web Sites > Default Web Site, expand Default Web Site, right-click the ArcIMS_SelectBufferTool_<language> folder, and click Properties. The Properties dialog box opens.
  6. Click the Directory tab, click the Create button in the Application Settings section, the click OK to close the Properties dialog box.
  7. Start Microsoft Visual Studio 2008 or 2010 and open the ArcIMS_SelectBufferTool_<language><vs_version> solution (for example, ArcIMS_SelectBufferTool_CSharp2008.sln) located in c:\inetpub\wwwroot\ArcIMS_SelectBufferTool_<language>.
  8. In Solution Explorer, right-click Default.aspx and select Set As Start Page.
  9. Open the Default.aspx page in Design view, open the properties window for the MapResourceManager control, and click the ellipsis next to the ResourceItems property. The ResourceItem Collection Editor dialog box opens.
  10. Add or change a MapResourceItem associated with an ArcIMS map service.
  11. Save the project.
  12. Click the Debug drop-down menu and click Start Debugging.

At run time
  1. Browse to the viewer uniform resource locator (URL) (for example, http://localhost/ArcIMS_SelectBufferTool_CSharp).
  2. Select an active layer from the drop-down list, and use the Select tool to drag a rectangle on the map over features in the active layer. The selected features display in semi-transparent yellow.
  3. Enter a buffer distance and units in the appropriate text boxes. The selected features from the previous step will be buffered using these parameters.
  4. Select another layer from the second drop-down list (below the active layer drop-down list).
  5. Click the Buffer and Select button. The original selected features are buffered (rendered as semi-transparent green), and the buffer is used to select features in a layer (rendered as semi-transparent red).
  6. Click the Clear All button to clear all graphics from the map.
  7. To use the Buffer tool, enter an active layer to select features.
  8. Enter a buffer distance and units.
  9. Activate the Buffer tool, draw a line on the map, then double-click to finish the line. The line is buffered using the parameters provided, and the buffer is used to select features in the active layer (rendered in semi-transparent red).

Additional information

ArcIMS can only draw buffers and return buffer geometry on features in feature layers. ArcIMS cannot draw buffers or return buffer geometry on graphics. ArcIMS graphics are geometries without a dataset—for example, geometry defined in an acetate layer. ArcGIS Server map services can draw buffers and return buffer geometry on graphics.


ArcIMS_SelectBufferTool_CSharp\Default.aspx User interface for the Web application.
ArcIMS_SelectBufferTool_CSharp\Default.aspx.cs Code behind the user interface.
ArcIMS_SelectBufferTool_CSharp\App_Code\SelectionTool.cs Class library containing selection logic.
ArcIMS_SelectBufferTool_CSharp\App_Code\LayerNames.cs Stores layer names used in the sample application.
ArcIMS_SelectBufferTool_CSharp\App_Code\BufferTool.cs Class library containing buffer logic.
Download the C# files
ArcIMS_SelectBufferTool_VBNet\Default.aspx User interface for the Web application.
ArcIMS_SelectBufferTool_VBNet\Default.aspx.vb Code behind the user interface.
ArcIMS_SelectBufferTool_VBNet\App_Code\SelectionTool.vb Class library containing selection logic.
ArcIMS_SelectBufferTool_VBNet\App_Code\LayerNames.vb Stores layer names used in the sample application.
ArcIMS_SelectBufferTool_VBNet\App_Code\BufferTool.vb Class library containing buffer logic.
Download the VB.NET files

Download the files for all languages