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 new feature class.

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. This is a command-line application. To run it, do one of the following: 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.


Download the files for Java
analyst3d/Convert2DPointsTo3D.java Main class




Additional Requirements
  • Shapefile that has a Z attribute.

Development licensing Deployment licensing
Engine Developer Kit Engine Runtime
ArcView