pe_vdatum_clone

Creates a new vertical datum from an existing one.

Usage syntax

PE_VDATUM pe_vdatum_clone (PE_VDATUM vdatum);

Parameters
vdatum The pointer to an existing vertical datum object
Description

Creates a duplicate vertical datum from an existing vertical datum object.

Returns

On success, the new datum. On failure, a null pointer.

Examples

PE_VDATUM navd88;
PE_VDATUM navd88_new;

navd88 = pe_factory_vdatum(PE_VERTD_NAVD_1988);
navd88_new = pe_vdatum_clone(navd88);
pe_vdatum_del(navd88);
pe_vdatum_del(navd88_new);