Simplify feature geometry for a shapefile

This sample simplifies the geometry for each feature in a shapefile and writes the shapefile's features with their simplified geometry to a new shapefile. Simplifying geometry permanently alters the input geometry so that the geometry becomes topologically consistent.
For point collections, duplicate points (points with the same x,y coordinates) are removed (unless they are attribute aware and have different attributes).
For segment collections, duplicate segments are removed, crossing segments are split into non-crossing segments (the crossing point becomes a vertex for the connected segments), overlapping segments are broken into non-overlapping segments (the overlap becomes a new segment), and non-connected paths are connected.
For polygons, overlapping rings are split into non-overlapping rings, exterior and interior rings have the proper orientation, and non-closed rings are closed.
It is not valid to simplify a point shapefile.

How to use

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

  1. Start Visual Studio.
  2. Run the application. Results are written to the console.

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.

geodatabase/ Main class.

Additional Requirements
  • US States and Counties data (recommended).

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