pe_hvcoordsys_clone

Creates a new horizontal and vertical coordinate system from an existing one.

Usage syntax

PE_HVCOORDSYS pe_hvcoordsys_clone (PE_HVCOORDSYS hvcoordsys);

Parameters
hvcoordsys The pointer to an existing horizontal and vertical coordinate system object
Description

Creates a duplicate horizontal and vertical coordinate system from an existing horizontal and vertical coordinate system object.

Returns

On success, the new horizontal and vertical coordinate system. On failure, a null pointer.

Examples

PE_COORDSYS nad27;
PE_VERTCS ngvd29;
PE_HVCOORDSYS nad27_ngvd29;
PE_HVCOORDSYS nad27_navd88_new;

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

nad27_ngvd29_new = pe_hvcoordsys_clone(nad27_ngvd29);

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