Buffer features


PurposeThis sample shows how to create a buffer for the selected features in the MapControl. 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

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 sample.
  2. Click on "Add Layer" to add a feature layer.
  3. Click on the select features tool and select features in the feature layer.
  4. Select a desired buffer width.
  5. Check "Save to shape" and enter the file name in the text field if you wish to persist the buffer as a shapefile.
  6. Click "Buffer" to buffer the selected features.

BufferFeatures.h Header file
BufferFeatures.cpp Implementation file
PathUtilities.h Header file
PathUtilities.cpp Implementation file
ArcEngineUtilities.h Header file
ArcEngineUtilities.cpp Implementation file
MotifUtilities.h Header file
MotifUtilities.cpp Implementation file
Makefile.SolarisMotif Solaris Project Makefile
Makefile.LinuxMotif Linux Project Makefile
Download the Motif_CPP files

Download the files for all languages




Development licensing Deployment licensing
Engine Developer Kit Engine Runtime