pe_coordsys_from_string

Creates a coordinate system object from its string representation

Usage syntax

PE_COORDSYS pe_coordsys_from_string (const char *buffer);

Parameters
buffer The string representation of the coordinate system object
Description

PE_coordsys_from_string creates a coordinate system object from its string representation.

Returns

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

Examples

PE_COORDSYS cs;

char *cs_metadata = “PROJCS[\"Test\",GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID
[\"WGS_1984\",6378137,298.257223563]],PRIMEM[\"Greenwich\",0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION
[\"Mercator\"],PARAMETER[\"false_easting\",1000000],UNIT[\"Foot\",0.3048]]”;

cs = pe_coordsys_from_string(cs_metadata);