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 newly created 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. 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 application. A shapefile of the clip is created.


Download the files for Java
geometry/ClipShapefileByEnvelope.java Main class




Development licensing Deployment licensing
Engine Developer Kit Engine Runtime
ArcView ArcView