pe_hvcoordsys_coordsys

Retrieves the horizontal coordinate system from a PE_HVCOORDSYS object.

Usage syntax

PE_COORDSYS pe_hvcoordsys_coordsys (PE_HVCOORDSYS hvcoordsys);

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

Returns a horizontal coordinate system object from a combined horizontal and vertical coordinate system object.

Returns

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

Examples

PE_COORDSYS nad27;
PE_VERTCS ngvd29;
PE_HVCOORDSYS nad27_ngvd29;
PE_COORDSYS coordsys;

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

coordsys = pe_hvcoordsys_coordsys(nad27_ngvd29);

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