pe_hvcoordsys_to_string_ext

Creates an extended string representation of an hvcoordsys

Usage syntax

void pe_hvcoordsys_to_string_ext (PE_HVCOORDSYS hvcoordsys, int mode, char buffer[PE_BUFFER_MAX]);

Parameters
hvcoordsys The hvcoordsys object
mode The mode of the string representation
buffer The string representation of the object
Description

This function creates an extended string representation of an hvcoordsys object.

The values for the mode parameter are:

   PE_STR_AUTH_NONE   0  /* No authority information */
   PE_STR_AUTH_TOP    1  /* Only include authority information for the top-level object */
   PE_STR_AUTH_ALL    2  /* Include authority information for all objects */

In pe_hvcoordsys_to_string_ext, the PROJCS or GEOGCS (as the horizontal coordinate system) and the vertical coordinate system are considered top-level objects. Any subobjects like the DATUM and SPHEROID would not include authority information if the mode is set to PE_STR_AUTH_TOP.

Returns

None

Examples

Mode is set to PE_STR_AUTH_TOP and the string is formatted for readability.

GEOGCS["GCS_Deutsches_Hauptdreiecksnetz",DATUM["D_Deutsches_Hauptdreiecksnetz",SPHEROID["Bessel_1841",6377397.155,299.1528128]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433],AUTHORITY["EPSG",4314]],
VERTCS["MSL_Depth",VDATUM["Mean_Sea_Level"],PARAMETER["Vertical_Shift",0.0],PARAMETER["Direction",-1.0],UNIT["Meter",1.0],AUTHORITY["EPSG",5715]]