pe_unit_to_string_ext

Creates an extended string representation of a unit

Usage syntax

void pe_unit_to_string_ext (PE_UNIT unit, int mode, char buffer[PE_BUFFER_MAX]);

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

This function creates an extended string representation of a unit object in the format:
UNIT["name",conversion_value,AUTHORITY["name",authcode]]

The values for the mode parameter are:

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

None

Examples

UNIT["Degree",0.0174532925199433,AUTHORITY["EPSG",9102]]