pe_hvcoordsys_eq

Tests whether two horizontal and vertical coordinate system objects are equivalent.

Usage syntax

int pe_hvcoordsys_eq (PE_HVCOORDSYS hvcoordsys1, PE_HVCOORDSYS hvcoordsys2);

Parameters
hvcoordsys1 The first horizontal and vertical coordinate system object
hvcoordsys2 The second horizontal and vertical coordinate system object
Description

Tests whether two horizontal and vertical coordinate system objects are equivalent.

Returns

On success, one. On failure, zero.

Examples

int hvcoordsys_test;
PE_COORDSYS nad27;
PE_VERTCS ngvd29;
PE_VERTCS navd88;
PE_HVCOORDSYS nad27_ngvd29;
PE_HVCOORDSYS nad27_navd88;

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

hvcoordsys_test = pe_hvcoordsys_eq(nad27_ngvd29,nad27_navd88);

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