Prototype and description of the function getcoordaxis()

(Function of the unlock requiring group "Parameter determination")

 

getcoordaxis()
Determination of a 2D Coordinate Systems axes designation.

Prototype of the DLL function in C++ syntax (attend lower case!):
extern "C" __declspec(dllimport) unsigned long __stdcall getcoordaxis(
     unsigned short wCoordSys,
     char **pszCoordAxEa,
     char **pszCoordAxNo);

Prototype of the DLL function in Visual Objects syntax:
_DLL function getcoordaxis(;
     wCoordSys AS WORD,;                   // 2 Byte
     pszCoordAxEa REF PSZ,;                // 4 Byte, char**, 30 alloc.
     pszCoordAxNo REF PSZ);                // 4 Byte, char**, 30 alloc.
as logic pascal:geodll32.getcoordaxis      // 4 Byte

The allocation of memory for "ref psz" / "char**" is necessary only if
setstringallocate(FALSE) is called before.


The function returns the 2D Coordinate Systems axes designations fitting
to wCoordSys in the variables pszCoordAxEa (east axis) and pszCoordAxNo
(north axis). The designations are returned in the language set by the
function setLanguage() before.


The parameters are passed and/or returned as follows:
wCoordSys   Coordinate System, for which the axes designations are to be
            determined. The available Coordinate Systems are specified in
            the list "Coordinate Reference Systems".

pszCoordAxEa The axis designation of the east axis of the Coordinate System
(ref)       is returned by reference.
            Note: "ref pszCoordAxEa" corresponds to "char**" in C. 30 bytes
            of memory for the zero terminated string must be allocated with
            dependence to the call of the function setstringallocate().
            Please consider the notes in the description of the function
            setstringallocate().

pszCoordAxNo The axis designation of the north axis of the coordinate
(ref)       system is returned by reference.
            Note: "ref pszCoordAxNo" corresponds to "char**" in C. 30 bytes
            of memory for the zero terminated string must be allocated with
            dependence to the call of the function setstringallocate().
            Please consider the notes in the description of the function
            setstringallocate().

ReturnVal   In case of an error the function returns FALSE, otherwise TRUE.


The returned axes designations looks dependently of the Coordinate System
e.g. like this:
  Easting    Northing
or
  Longitude  Latitude


Unlocking
This function is a component of the unlock requiring function group
"parameter determination". It is unlocked for unrestricted use together with
the other functions of the group by passing the unlock parameters, acquired
from the software distribution company, trough the function setunlockcode().
Without unlocking only a few function calls for test purposes (shareware
principle) are possible.