pe_geogcs_from_string

Creates a geographic coordinate system object from its string representation

Usage syntax

PE_GEOGCS pe_geogcs_from_string (const char *buffer);

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

Creates a geographic coordinate system object from its string representation

Returns

On success, a geographic coordinate system object; otherwise, a null pointer

Examples

PE_GEOGCS gcs;

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

gcs = pe_geogcs_from_string(gcs_metadata);