Create FeatureClass


Purpose
This sample shows how to create a FeatureClass in a specified location using geoprocessing. This sample assigns a spatial reference to the FeatureClass by using SpatialReferenceEnvironment to create a projected SpatialReference. By default, since it is working with an operating system (OS) folder, this sample creates a shapefile. It also adds fields to the FeatureClass using geoprocessing tools.
 
After the sample is run, the shapefile named <em>newgpshape</em> is created in the samples/output_data folder. This shapefile contains the following additional attributes:
  • textField
  • longField
  • doubleField
The main purpose of this sample is to demonstrate how to create a geographic information system (GIS) solution using coarse-grained geoprocessing tools.

How to use

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

  1. Run the CreateFeatureClass application.
  2. After execution completes, examine the output messages.

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.

geoprocessing/CreateFeatureClass.java Main class.




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