pe_factory_authority

Creates the authority object for the specified object

Usage syntax

PE_AUTHORITY pe_factory_authority (struct pe_struct_t *p);

Parameters
p The pointer to an object
Description

Pe_factory_authority creates the authority object for the specified object. The authority describes the source and version of a particular object. For example, for the WGS 1984 geographic coordinate reference system, the authority name is EPSG and the version might be 6.15.

Returns

On success, returns the new authority object; on failure, returns a null pointer

Examples

PE_COORDSYS cs;

PE_AUTHORITY cs_auth;

PE_COORDSYS cs = pe_factory(PE_GCS_WGS_1984);

PE_AUTHORITY cs_auth = pe_factory_authority(cs);