Buffer features


Purpose
This sample shows how to create a buffer for selected features in the Map control. The buffer size can be controlled using a scale, and the buffer can be created as a graphic or persisted as a shapefile.

How to use

See How to use ArcGIS samples for help on running the sample. 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. Run the BufferFeatures application.
  2. Click Add Layer to add a feature layer.
  3. Click the Select Features tool and select features in the feature layer.
  4. Select a desired buffer width.
  5. Optionally, check the Save to shape check box and type the file name in the text field to persist the buffer as a shapefile.
  6. Click Buffer to buffer the selected features.


Download the files for Java
mapbean/BufferFeatures.java Main class




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