pe_geoxyzcs_from_string

Creates a geocentric coordinate system object from its string representation

Usage syntax

PE_GEOXYZCS pe_geoxyzcs_from_string (const char *buffer);

Parameters
buffer The string representation of the geocentric coordinate system object
Description

This function creates a geocentric coordinate system object from its string representation. A geocentric coordinate system is a 3D Cartesian system. The X axis lies in the plane of the equator and points in the direction of the prime meridian (usually Greenwich). The Y axis is 90 degrees away in the plane of the equator, and the Z axis points north in a right-handed system.

Note: Currently, geocentric coordinate systems are not supported by the ArcSDE or ArcGIS software.

Returns

On success, a geocentric coordinate system object. Otherwise, a null pointer.

Examples

PE_GEOXYZCS xyz;

char *xyz_metadata = “GEOXYZCS[\"GeocentricWGS84\",GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",
SPHEROID[\"WGS_1984\",6378137,298.257223563]],PRIMEM[\"Greenwich\",0],
UNIT[\"Degree\",0.0174532925199433]],UNIT["Meter",1.0]]”;

xyz = pe_geoxyzcs_from_string(xyz_metadata);