pe_hvcoordsys_to_string

Creates a string representation of a horizontal and vertical coordinate system

Usage syntax

void pe_hvcoordsys_to_string (PE_HVCOORDSYS hvcoordsys, char buffer[PE_BUFFER_MAX]);

Parameters
hvcoordsys The horizontal and vertical coordinate system object
buffer The string representation of the object
Description

Creates a string representation of a horizontal and vertical coordinate system object. An example might look like:

GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM
["Greenwich",0],UNIT["Degree",0.017453292519943295]],VERTCS["NGVD_1929",VDATUM["National_Geodetic_Vertical_Datum_1929"]
,PARAMETER["Vertical_Shift",0.0],PARAMETER["Direction",1.0],UNIT["Foot_US",0.3048006096012192]]

Returns

None.

Examples

char w[PE_BUFFER_MAX];
PE_HVCOORDSYS nad27_ngvd29;
PE_COORDSYS nad27;
PE_VERTCS ngvd29;

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

pe_hvcoordsys_to_string(nad27_ngvd29, w);

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