pe_hvcoordsys_new

Creates a combined horizontal and vertical coordinate system object

Usage syntax

PE_HVCOORDSYS pe_hvcoordsys_new(PE_COORDSYS coordsys, PE_VERTCS vertcs);

Parameters
coordsys A valid horizontal coordinate system object
vertcs A valid vertical coordinate system object
Description

Creates a combined horizontal and vertical coordinate system object from the specified horizontal and vertical coordinate system objects. PE_HVCOORDSYS is an abstract superclass for PE_COORDSYS and PE_VERTCS. PE_COORDSYS is an abstract superclass for PE_GEOGCS and PE_PROJCS.

Returns

On success, a combined horizontal and vertical coordinate system; on failure, a null pointer

Examples

PE_HVCOORDSYS nad27_ngvd29;
PE_COORDSYS nad27;
PE_VERTCS ngvd29;

nad27 = pe_factory_geogcs(PE_GCS_NAD_1927);
ngvd29 = pe_factory_vertcs(PE_VCS_NGVD_1929);
nad27_ngvd29 = pe_hvcoordsys_new(nad27, ngvd29);

pe_hvcoordsys_del(nad27_ngvd29);
pe_coordsys_del(nad27);
pe_vertcs_del(ngvd29);