An application may determine the number of input and output variables used by a transformation by calling TRN_GTNV (get numbers of variables), thus:
CALL TRN_GTNV( LOCTR, NVIN, NVOUT, STATUS )
The information is returned via the NVIN and NVOUT arguments. Since TRN_GTNV first checks that the locator LOCTR is associated with a valid transformation, this also provides a convenient way of validating a transformation.
A similar routine TRN_GTNVC (get numbers of compiled variables) is provided for use with compiled mappings:
CALL TRN_GTNVC( ID, NVIN, NVOUT, STATUS )
In this case, the mapping is specified by its integer identifier ID.
TRANSFORM Coordinate Transformation Facility