Points 2D to 3D


PurposeThis developer sample will convert a point shapefile with a designated attribute containing Z (height) values to a 3D Shapefile. This developer sample aims to demonstrate how to read and set feature class attributes, how to set geometries to be Z Aware, and how to create feature classes.

How to use

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 application. You will need to provide valid data for the following parameters:the full path to the input shapefile, the Z attribute field name (the name of a field with a Z attribute, and the values of which will be used as Z values in the resulting 3D shapefile), and the full path to the output shapefile.
  2. A new 3D shapefile will be created from your input 2D shapefile.

Points2Dto3D.h Header file
Points2Dto3D.cpp Implementation file
LicenseUtilities.h Licensing header file
LicenseUtilities.cpp Licensing implementation file
PathUtilities.h Path parsing header file
PathUtilities.cpp Path parsing implementation file
Makefile.Windows Windows Makefile
Makefile.Solaris Solaris Makefile
Makefile.Linux Linux Makefile
Download the CPP files

Download the files for all languages




Additional Requirements
  • Shapefile with a field with a Z Attribute

Development licensing Deployment licensing
Engine Developer Kit Engine: 3D Analyst