Modifying a polygon


Purpose
The following code demonstrates how to modify a polygon geometry object using a user input point. The modifyOneVertexOfAPolygon() method shows how to modify a polygon vertex using Hittest. The modifyOneSegmentOfAPolygon() shows how to modify a polygon segment using Hittest.

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.

Running this sample
  1. Run the application in the Eclipse integrated development environment (IDE) or command line. The application requires full path to a shapefile containing polygon data as argument.
  2. Examine the output.


Download the files for Java
ModifyPolygon.java Main class.




Development licensing Deployment licensing
Engine Developer Kit Engine