Clip a shapefile by envelope


Purpose
This sample demonstrates how to accomplish basic geoprocessing tasks using ITopologicalOperator. Applications such as this are suitable for batch driven processing. This application uses a source shapefile and the extents of a clipping envelope to export the features in the clipping envelope to a new shapefile. The following information is used in this application:
  • Path to input shapefile
  • Path to resulting shapefile
  • xmin value for clip envelope
  • ymin value for clip envelope
  • xmax value for clip envelope
  • ymax value for clip envelope

How to use

See How to use ArcGIS samples for help on running the sample.

  1. Start Visual Studio.
  2. Run the application. A shapefile of the clip is created.

If you installed the samples feature, you will find the files associated with this sample in <Your Developer Kit install location>\DeveloperKit10.4\Java\Samples\ArcObjects.

geometry/ClipShapefileByEnvelope.java Main class.




Development licensing Deployment licensing
Engine Developer Kit Engine
ArcGIS for Desktop Basic ArcGIS for Desktop Basic