projcode, projname, sensorcode, sensorname - Earth transform name functions

SYNOPSIS

#include <etx.h>
#include <etnames.h>
#include <terrno.h>

int projcode(name)
char *name;

char *projname(code, name)
int code;
char *name;

int sensorcode(name)
char *name;

char *sensorname(code, name)
int code;
char *name;

DESCRIPTION

Earth transform projection and sensor attributes are stored in datasets as integer codes. Projection and sensor codes are listed in include/etx.h. Projection and sensor names are defined in include/etnames.h.

projcode and sensorcode return codes corresponding to given projection and sensor names, respectively.

projname and sensorname return names corresponding to given projection and sensor codes, respectively.

RETURN VALUES

If successful, projcode and sensorcode return valid non-negative codes. Otherwise, they return -1 and set terrno to the appropriate error code.

If successful, projname and sensorname return pointers to projection and sensor names, respectively. Otherwise, they return NULL and set terrno to the appropriate error code.

ERRORS

ET_UNKNOWN_PROJ, ET_UNKNOWN_SENSOR

FILES

include/etx.h, include/etnames.h, include/terrno.h, lib/libetx.a

SEE ALSO

etcoords, etmisc, etnav, etready, etxll etx


Last Update: $Date: 1999/05/10 20:56:37 $