Create FeatureClass


Purpose
This sample application demonstrates 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 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. 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 CreateFeatureClass application.
  2. After execution is complete, examine the output messages.


Download the files for Java
geoprocessing/CreateFeatureClass.java Main class




Development licensing Deployment licensing
Engine Developer Kit Engine Runtime
ArcView