SE_coordref_set_by_id

Sets the coordinate system by ID for the supplied coordinate reference object

Usage syntax

LONG SE_coordref_set_by_id (SE_COORDREF coordref, LONG coordsys_id);

Parameters
coordref A pointer to the coordinate reference object
coordsys_id The predefined Projection Engine ID
Description

Sets the coordinate system for the supplied coordinate reference object. The coordinate system is identified by the predefined Projection Engine object ID. There are over 3400 predefined coordinate systems listed in the file, pedef.h.

To set the coordinate system to UNKNOWN, call SE_coordref_set_by_description(). This function will not accept the coorsdsys_id is set to zero to designate unknown, failing with SE_coordref_set_by_description().

This function populates the coordinate system in the supplied coordinate reference object. To complete the coordinate reference, more information is required, such as the offsets and scales for each dimension, and possibly a description or vertical coordinate system.

Returns

SE_SUCCESS
SE_INVALID_COORDREF_OBJECT

SE_INVALID_COORDSYS_ID