pe_hvcoordsys_vertsys |
Retrieves the vertical coordinate system from a PE_HVCOORDSYS object.
PE_VERTCS pe_hvcoordsys_vertcs (PE_HVCOORDSYS hvcoordsys);
hvcoordsys | The pointer to an existing horizontal and vertical coordinate system object |
Returns a vertical coordinate system object from a combined horizontal and vertical coordinate system object.
On success, the vertical coordinate system. On failure, a null pointer.
PE_COORDSYS nad27;
PE_VERTCS ngvd29;
PE_HVCOORDSYS nad27_ngvd29;
PE_VERTCS vertcs;
nad27 = pe_factory_geogcs(PE_GCS_NAD_1927);
ngvd29 = pe_factory_vertcs(PE_VCS_NGVD_1929);
nad27_ngvd29 = pe_hvcoordsys_new(nad27, ngvd29);
vertcs = pe_hvcoordsys_vertcs(nad27_ngvd29);
pe_vertcs_del(ngvd29);
pe_coordsys_del(nad27);
pe_hvcoordsys_del(nad27_ngvd29);
pe_vertcs_del(vertcs);