Convert 2D points to 3D


Purpose
This sample converts a point shapefile that has a z- (height) attribute to a three-dimensional (3D) shapefile. It demonstrates how to read and set feature class attributes, how to set geometries to be z-aware, and how to create a feature class.

How to use

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

  1. This is a command-line application. Do one of the following to run it: a. use Ant, b. execute its Java Archive (JAR) file from the command line, or c. use your integrated development environment (IDE) to compile and run it.
  2. No arguments are required to execute the application.
  3. As the application consumes the source shapefile, it prints the coordinates of each point feature. When the application has processed all of them, it creates the output shapefile and displays the location of that output file.

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.

analyst3d/Convert2DPointsTo3D.java Main class.




Additional Requirements
  • Shapefile that has a z-attribute.

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