pe_projcs_new

Creates a new projected coordinate system.

Usage syntax

PE_PROJCS pe_projcs_new (const char *name, PE_GEOGCS geogcs, PE_PROJECTION projection, PE_PARAMETER parameters[PE_PARM_MAX], PE_UNIT unit);

Parameters
name Name of the projected coordinate system
geogcs Geographic coordinate system upon which the projected coordinate system is based
projection Map projection
parameters The array of map projection parameters
unit Projected coordinate system units
Description

Returns the projected coordinate system object. When creating the parameter array object, initialize all elements as null pointers. See pe_parameter_new for a sample.

Returns

On success, the new projected coordinate system object with the attributes equal to the corresponding arguments. On failure, a null pointer.

Examples

PE_PROJCS pcs = pe_projcs_new("my_pcs",gcs,mercator,par,ft);