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
- 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.
- In Windows Explorer, navigate to <ArcGIS install location>\DeveloperKit10.0 \Samples\ServerNET\ArcIMS_SelectBufferTool.
- 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.
- Open the IIS Manager from Control Panel > Administrative Tools > Internet Information Services (IIS) Manager or Internet Information Services.
- 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.
- Click the Directory tab, click the Create button in the Application Settings section, the click OK to close the Properties dialog box.
- 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>.
- In Solution Explorer, right-click Default.aspx and select Set As Start Page.
- 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.
- Add or change a MapResourceItem associated with an ArcIMS map service.
- Save the project.
- Click the Debug drop-down menu and click Start Debugging.
At run time
- Browse to the viewer uniform resource locator (URL) (for example, http://localhost/ArcIMS_SelectBufferTool_CSharp).
- 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.
- Enter a buffer distance and units in the appropriate text boxes. The selected features from the previous step will be buffered using these parameters.
- Select another layer from the second drop-down list (below the active layer drop-down list).
- 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).
- Click the Clear All button to clear all graphics from the map.
- To use the Buffer tool, enter an active layer to select features.
- Enter a buffer distance and units.
- 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. |
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 files for all languages