pe_projcs_to_string_ext

Creates an extended string representation of a projected coordinate system

Usage syntax

void pe_projcs_to_string_ext (PE_PROJCS projcs, int mode, char buffer[PE_BUFFER_MAX]);

Parameters
projcs Projected coordinate system 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 projcs 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_projcs_to_string_ext, the PROJCS is considered the top-level object. Thus, any subobjects like the GEOGCS would not include authority information if the mode is set to PE_STR_AUTH_TOP.

Returns

None

Examples

The mode is set to PE_STR_AUTH_ALL. The string has been formatted for readability.

PROJCS["NZGD_2000_New_Zealand_Transverse_Mercator",
   GEOGCS["GCS_NZGD_2000",
      DATUM["D_NZGD_2000",SPHEROID["GRS_1980",6378137.0,298.257222101,AUTHORITY["EPSG",7019]],AUTHORITY["EPSG",6167]],
      PRIMEM["Greenwich",0.0,AUTHORITY["EPSG",8901]],
      UNIT["Degree",0.0174532925199433,AUTHORITY["EPSG",9102]],AUTHORITY["EPSG",4167]],
   PROJECTION["Transverse_Mercator",AUTHORITY["ESRI",43006]],
   PARAMETER["False_Easting",1600000.0,AUTHORITY["ESRI",100001]],
   PARAMETER["False_Northing",10000000.0,AUTHORITY["ESRI",100002]],
   PARAMETER["Central_Meridian",173.0,AUTHORITY["ESRI",100010]],
   PARAMETER["Scale_Factor",0.9996,AUTHORITY["ESRI",100003]],
   PARAMETER["Latitude_Of_Origin",0.0,AUTHORITY["ESRI",100021]],
   UNIT["Meter",1.0,AUTHORITY["EPSG",9001]],
AUTHORITY["EPSG",2193]]