-------------------------------------------------------------------------------- MODULE ITRANS
-------------------------------------------------------------------------------- REPLACES Projection computation and transformation functions of IPR
--------------------------------------------------------------------------------
ITRANS is a general map projection program. It allows changes in geodetic datum, transformation between spheroidal data (latitude and longitude) and specified map projections (and will also transform data from one map projection directly into another).
It can also be used to transform data from one coordinate space to another, where the relationship between the coordinate systems are not known, but the values of several common points in each system are. Several different formulae are available for this approach, the required parameters being empirically determined from the common points.
ITRANS is primarily intended for operation on data held in IFF files, but it can also be used to transform individual points.
--------------------------------------------------------------------------------
input-file-spec
Specifies the input IFF file to be operated on.
Any part of the file specification that is not supplied will be completed from the default of "LSL$IF:IFF.IFF;0"
output-file-spec
Specifies the name of the IFF file to be created.
Any part of the file-spec that is not specified will be completed from the parsed input file-spec (without a version number).
A version number must not be included as the user has no control of the version number of the file to be created. A new file will be created with a version number one higher than the current highest existing in the directory.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
/ABSOLUTE
/NOABSOLUTE
- controls whether the numbers used as the right hand side of the control points when doing empirical transformations are to be retained, or whether they are all to be reduced by their minimum x and minimum y values and these values used as the local origin for the input data.
By default the values are reduced to give all the final control points positive values and also, usually, to reduce their absolute size.
/CONTROL[=file-spec]
/NOCONTROL
- specifies that a file containing the control points for an empirical transformation is to be used as opposed to those in the CP entry in the IFF file.
The file can contain up to twenty lines of control points in the order
ORIGINAL X ORIGINAL Y TARGET X TARGET Y
and comments may be included either, on separate lines anywhere in the file, or at the end of a line of control points. ITRANS will read ! and ; as comment characters and anything occurring before either of these, other than the control points, will cause an error.
Each of the formulae available for empirical transformations will take up to the maximum number of lines of control points and, using the least squares method, return the best fit. Each of them also requires a minimum number of control points, as follows,
/TWO minimum 2 maximum 800 /THREE minimum 3 maximum 800 /FOUR minimum 4 maximum 800 /PROJECTIVE minimum 4 maximum 800 /SIX minimum 6 maximum 800
If /CONTROL is entered with no file-spec, or a partial one, then the missing parts of the file-spec are taken from the default specification CONTROL.DAT.
The default is /NOCONTROL.
/DATUM_SHIFT
/NODATUM_SHIFT
- specifies that ITRANS is to carry out a conversion of geodetic datum.
The default is /NODATUM_SHIFT and ITRANS carries out projection transformations, rather than geodetic datum shifts.
/DESCRIPTOR
- specifies that ITRANS is only to update the map descriptor entry in the IFF file without doing any transformations on the data.
This qualifier should precede all other qualifiers on the command line.
By default, ITRANS does not allow the existing map descriptor entry to be altered, and transforms all the coordinate values in the file.
/FOUR
/NOFOUR
- specifies that ITRANS is to carry out an empirical transformation on the data based on the the "extended four point" formulae.
See below for details of the transformation used.
The default is /NOFOUR, and ITRANS carries out a projection, rather than an empirical, transformation.
/HEIGHT_ADJUST
/NOHEIGHT_ADJUST
- specifies that ITRANS is to use the heights of points when doing geodetic datum conversion.
The default is /NOHEIGHT_ADJUST and ITRANS ignores the height of points when doing the conversion.
This command is only valid in conjunction with the /DATUM_SHIFT qualifier.
/LEARNER
/NOLEARNER
- specifies that ITRANS is to give help, before prompting for each bit of information.
The default is /NOLEARNER
/LOG
/NOLOG
- controls the number of messages that ITRANS sends to SYS$OUTPUT. E_.g_. when /LOG is specified messages are received when IFF files are successfully opened.
The default is /NOLOG
/OUTPUT[=file-spec]
/NOOUTPUT
- controls where the record of the session is to be sent.
The record of the session consists of the input and output map descriptors, any control points used for empirical transformations and either the name of the input and output IFF files or a list of the individual points that have been transformed (when the /POINT has been used).
If /OUTPUT is entered with no file-spec, or a partial one, then the missing parts of the file-spec are taken from the default specification SYS$DISK:ITRANS_.LIS.
By default this record is sent to SYS$OUTPUT.
/POINT
- allows ITRANS to be used to transform individual points.
This qualifier should precede all other qualifiers on the command line.
An ASCII file of X and Y coordinate pairs can be read by giving the command "@filename" to the prompt asking for the coordinates of a point to convert.
By default ITRANS operates on IFF files.
/PROJECTIVE
/NOPROJECTIVE
- specifies that ITRANS is to carry out an empirical transformation on the data based on the the "projective transformation" formulae.
See below for details of the transformation used.
The default is /NOPROJECTIVE, and ITRANS carries out a projection, rather than an empirical, transformation.
/RETAIN_CP
/NORETAIN_CP
- specifies that ITRANS is not to transform the CP (control point) entry while doing a geodetic datum conversion.
This qualifier is for use when the control points are graticule based, and the user wishes to move the data relative to them.
The default is /NORETAIN_CP and ITRANS transforms the control points as normal.
This command is only valid in conjunction with the /DATUM_SHIFT qualifier.
/SIX
/NOSIX
- specifies that ITRANS is to carry out an empirical transformation on the data based on the general second order transformation formulae.
See below for details of the transformation used.
The default is /NOSIX, and ITRANS carries out a projection, rather than an empirical, transformation.
/THREE
/NOTHREE
- specifies that ITRANS is to carry out an empirical transformation on the data based on the the "affine" formulae.
See below for details of the transformation used.
The default is /NOTHREE, and ITRANS carries out a projection, rather than an empirical, transformation.
/TWO
/NOTWO
- specifies that ITRANS is to carry out an empirical transformation on the data based on the the "orthogonal transformation" formulae.
See below for details of the transformation used.
The default is /NOTWO, and ITRANS carries out a projection, rather than an empirical, transformation.
--------------------------------------------------------------------------------
The MD (Map Descriptor) entry in the IFF file carries information about the projection that the coordinate data is currently held in. Each run of ITRANS will ask the operator for details of the required projection and the data in the file will be transformed into this projection in a new IFF file with a corresponding MD entry.
If however ITRANS is run in its empirical transformation mode on an IFF file without a valid or complete version 2 MD entry, then the operator will only be asked to supply the origin offset for the output IFF file. A version 2 MD entry will be created in the output file, but the other entries in it will be set to 0.0, or will be unset.
ITRANS can be used to edit an existing version 2 MD entry (or insert one, if none exists) without transforming any of the coordinate data.
The version 2 map descriptor contains the following information:-
This is an XY coordinate pair, each held as a REAL*8 (double precision)
number, that is added to any pair of coordinates in the IFF file to give
the true projection coordinates of the points.
This allows the absolute size of the coordinates in the IFF file, which
are only held as REAL*4 (single precision) numbers to be reduced, thus
avoiding problems of rounding and reduced accuracy.
This is a REAL*8 (double precision) number which when multiplied by map
(or sheet) units gives IFF units - e_.g_. 50000_.0 for a 1:50000 map.
It is used to relate IFF units to e_.g_. symbol and text sizes on the
map sheet and also as a general indication of the accuracy of the
digital data.
All geographical data is ultimately related to a particular geodetic datum. A geodetic datum is defined by the shape and size of a reference spheroid and by its orientation with respect to the earth. The data about the spheroid is held in the map descriptor; the other elements of the geodetic datum are discussed below under "Carrying out datum shifts".
The spheroid is the geometrical model of the earth that was used when the original survey was carried out.
The spheroids that ITRANS knows about, and their code numbers are as follows:-
0 Clarke 1866 1 Clarke 1880 2 Bessel 3 New International 1967 4 International 1924 (Hayford 1909) 5 World Geodetic System 72 (WGS 72) 6 Everest 7 World Geodetic System 66 (WGS 66) 8 Geodetic Reference System 1980 (GRS 1980) 9 Airy 10 Modified Everest 11 Modified Airy 12 Walbeck 13 Southeast Asia 14 Australian National 15 Krassovsky 16 Hough 17 Mercury 1960 18 Modified Mercury 1968 19 Sphere of radius 6370997 M 20 Sphere of radius 6371229.3M 21 Clarke 1880 (IGN) 22 World Geodetic System 84 (WGS 84) 101 User specified spheroid
The spheroid code is held in the map descriptor as an integer; when code 101 is specified two additional REAL*8 (double precision) values are also stored (see below).
The shape of a spheroid is determined by the relationship between the semi-major (equatorial) and semi-minor (polar) axes of the ellipsoid of revolution. This is all that is required if geographical coordinates are required as they are expressed in angular units, and are thus scaleless.
The size of the spheroid is also important, and this is determined by defining the length of one of the axes of the ellipsoid. The shape and size of the spheroid can thus be uniquely defined by specifying the length of the semi-major and semi-minor axes.
When points on the spheroid are related to a plane, i_.e_. a projection, the units of the projection are the units that the lengths of axes of the spheroid were expressed in. All the spheroids specified above are defined within ITRANS in international metres.
See Appendix A for the details of these spheroids.
When a user specified spheroid is used (code 101) then information about is stored in two REAL*8 (double precision) numbers. The first of these is the length of the semi-major axis; the second contains one of:-
1) the length of the semi-minor axis (in the same units), or
2) the eccentricity squared
If the second number is 0.0 then a sphere is defined.
2) This system works because e**2 is less than 1.0, while the
semi-minor axis is usually greater than 1.0.
If it is required to define a spheroid where the semi-minor axis is less
than 1.0 (e_.g_. a spheroid with a semi-major axis of 1.0) then the
second number must contain the eccentricity squared.
The projections that ITRANS can work with (and their codes) are:
0 Unset 1 Universal Transverse Mercator 2 State Plane Coordinates 3 Albers Conical Equal Area 4 Lambert Conformal Conic 5 Mercator 6 Polar Stereographic 7 Polyconic 8 Equidistant Conic 9 Transverse Mercator 10* Stereographic 11* Lambert Azimuthal Equal Area 12* Azimuthal Equidistant 13* Gnomonic 14* Orthographic 15* General Vertical Near-Side Perspective 16* Sinusoidal 17* Equirectangular 18* Miller Cylindrical 19* Van der Grinten 20 Oblique Mercator (Hotine) 21* Oblique Mercator (Spherical) 22 Stereographic (UKSL formulae) 23 Cassini 24 Krovak 25 Bonne 26* Mollweide 27* Hammer-Aitoff 28* Winkel III 29* Modified-Stereographic 100 Geographic (ie. Latitude and Longitude) 101 UK national grid (a special case of 9)
2) Data can be held in spheroidal, or spherical, coordinates (i_.e_. Latitude and Longitude) by specifying projection code 100
The projections listed above specify the formulae to be used in the projection, but in any particular case more data will be required, so there is provision in the map descriptor to store up to 15 additional pieces of data as REAL*8 (double precision) numbers.
See Appendix B for data about the individual projections.
When the data in the IFF file represents geographical coordinates (projection code 100) then the numbers in the IFF file can represent radians, seconds of arc, degrees of arc or 1/10's of seconds of arc.
As explained in (iii) above, the units of a projection are the units used to define the spheroid, thus for all the spheroids that are predefined in ITRANS the projection units are international metres, and these are the units that are used for the projection calculations. For these spheroids ITRANS will allow data on the projections to be stored and manipulated in feet (see below), but for user defined spheroids then the only units that can be used on a projection are the original projection units.
It is possible that the coordinates in an IFF file are in some other units (e_.g_. mm on the table). As explained, before doing any projection calculations these units must be converted to projection units and this is achieved by doing an empirical transformation.
In this case ITRANS will ask the operator for values of the control points in projection units before doing the projection calculations.
In summary, the possible units in IFF files, and their codes which are stored as an integer in the map descriptor, are:-
2) Units 102 can be converted to projection units by dividing by 1000 and multiplying by the scale. On output, projection units may be converted to units 101 (table mm) in the same way.
3) Units 104 can be converted to projection units by dividing by 39370.08 and multiplying by the scale. On output, projection units may be converted to units 103 (table thou) in the same way.
4) User units (code 105) can only be output as a result of an empirical transformation. As they are linear (not angular) units, they cannot be used in conjunction with geographicals (projection code 100).
To transform data from one projection system into another, ITRANS uses data from the map descriptor for the current IFF file and a map descriptor for the target projection. If the current IFF file has a complete version 2 map descriptor then this will be used, but if it is either not a version 2 type or it is not complete (e_.g_. the projection code or unit code are set to 0) then the user will be asked to enter the required data by a series of prompts.
If data has come from some non Laser-scan source, it is possible that geographical coordinates are in the order Latitude Longitude, and to allow for this possibility there is a flag in the map descriptor called MD2FLP, which can be set by the conversion program. If this flag is set TRUE, and the data is in geographical coordinates, ITRANS asks if the coordinates are in the order Latitude Longitude. If they are, ITRANS converts them to Longitude Latitude.
Note that if ITRANS is being used to patch the map descriptor (/DESCRIPTOR), this procedure will produce a new copy of the file with all the coordinates in the order Longitude Latitude, even in cases when normally the changes take place in situ.
ITRANS always clears MD2FLP.
If the unit code in the current map descriptor represents some non-angular, non-projection unit (i_.e_. code 101-105) then ITRANS will do an empirical transformation on the data before doing the projection calculation. This will be a "2 point" transformation. If another empirical transformation is required, then this must be done in a preprocessing run of ITRANS. See below for details of other empirical transformations.
The target map descriptor is set up by the operator responding to the relevant prompts.
When prompting for information, ITRANS tries to provide sensible default values either from the existing map descriptor or from the context of the prompt and these can be accepted by simply pressing <CR>.
Help on all but the most trivial of prompts can be obtained by replying with a "?". When run with the /LEARNER qualifier, ITRANS will output the help information automatically before asking the question.
Replying with
See Appendix C for allowable number formats to be used when replying to
prompts.
When data is surveyed it is captured relative to some geodetic datum.
One part of this datum is the spheroid used, which has been discussed
above. The other part is the orientation of the spheroid relative to the
earth. This is called the origin of the geodetic datum.
The spheroid has 7 degrees of freedom, three defining the position of
its centre in relation (say) to the earth's centre of gravity (or any
other earth fixed point), three defining rotations about three
mutually perpendicular axes to orient it in any desired way and scale
to define its size.
In practice, all geodetic datums are defined such that the minor axes
are parallel, so there are only 5 freedoms used to define the location
of the spheroid in space. These are often called the origin of the
geodetic datum and can be expressed as the cartesian coordinates X, Y
and Z of the centre of the spheroid, the rotation about the minor (or Z)
axis and the size (or scale) of the spheroid. This rotation is often
0.0, and when present is always very small (much less than 1 degree).
ITRANS is only concerned with changes of datum, so only the differences
in these values are required i.e_. DX, DY, DZ, RZ and SF for the
differences in X, Y and Z, the rotation about the Z axis and the
difference in scale of the second spheroid with respect to the first.
These values are not stored in the map descriptor, but are prompted for
when required.
ITRANS can be used to convert data from one geodetic datum to another by
using the /DATUM_SHIFT qualifier. It is only possible to carry out this
conversion if the input (and output) data are in geographical
coordinates (i.e_. projection type 100 - Latitude and Longitude).
ITRANS does this conversion by:
PLEASE NOTE THAT THERE HAS BEEN CONSIDERABLE CONFUSION ABOUT THE SENSE
OF THIS ANGLE IN PUBLISHED ARTICLES. If there is any doubt about it
apply Jensen's law - "If the correction is small, don't apply it as you
will surely apply it the wrong way".
In the general case, however, the height of a point can
be significant in the above calculations. This situation can be
accomodated in ITRANS by the use of the /HEIGHT_ADJUST qualifier in
conjunction with /DATUM_SHIFT.
However, this introduces another complication in that heights are
measured above the geoid (or mean sea level), while
the above calculation uses the height above the spheroid. This
geoid-spheroid separation is required for both datums and must be
entered by the operator. The entered value for the input datum is added
to the height before converting to cartesian coordinates in 1) above,
and the value for the target datum is subtracted from the height after
converting to geographicals in 3). It is assumed that the geoid-spheroid
separation is constant over the area of the map.
When using the /HEIGHT_ADJUST qualifier, as well as the height of the
points affecting the position (latitude and longitude) of the points,
the height is also output relative to the new datum.
This mode of ITRANS should be used with care and
where possible it is recommended that the results that it produces
are verified on known points, before mass data conversions are carried
out. This is particularly true when using the /HEIGHT_ADJUST qualifier.
ITRANS provides 5 sets of transformation formulae that may used for
these transformations, and the ability to use the coordinates of the
common points to determine the values of the coefficients to be used in
a particular case. If there are more than the minimum required number of
common points, then the best solution is found using the "principle of
least squares".
Ideally the range of the control points should be greater than, say, 10%
of the average coordinate values.
This is only available if the input data is in mm on map sheet (unit
code 102) or thousands of an inch on map sheet (unit code 104) and a
projection calculation is being carried out. The data is displayed and
the user is given the option of accepting these scaled up values or
using one of the other options.
There are five transformations that can be carried out by ITRANS.
These are:
This transformation requires a minimum of 4 control points.
This transformation will force the minimum 4 input points to fit the
output points exactly; other points in the file suffer a "saddle"
distortion. It is thought to be useful for correcting paper distortion,
as when data is digitised from a paper map based on known exact control
points such as graticule intersections.
This transformation is called the "Extended four point" transformation
in other Laser-Scan programs.
This is a case of badly distributed control points.
This transformation requires a minimum of 4 control points.
This transformation uses a projective algorithm and will force
4 input points to fit the output points exactly. It tends to fit the
outside edges of the area, while points in the middle are moved more
than with the other formulae.
This transformation requires a minimum of 6 control points, and can thus
only be used in conjunction with the /CONTROL qualifier.
This transformation is known as the "general second order" or
"quadratic" transformation.
This transformation requires a minimum of 3 control points.
This transformation is sufficient to correct for rotation, scaling,
translation and shearing. This means that shapes may be altered, but in
a predictable way (e_.g_. a square may be transformed into a
parallelogram).
This transformation is also known as the "Affine" transformation.
This transformation requires a minimum of 2 control points.
This transformation is sufficient to correct for rotation, scaling and
translation only. This means that the shapes of features will not be
altered and is the transformation that is used by default.
This transformation is called the "Orthogonal" transformation
in other Laser-Scan programs. It is also known as the "Helmert"
transformation.
By default, when doing an empirical transformation, the target coordinates
are all reduced by the minimum of their values in x and y, and this
value is used as the local origin of the current data. This ensures
that all the points will be positive, and it will also, usually, reduce
their absolute size. If it is required to transform a file onto
particular values (with no offset) then the /ABSOLUTE qualifier should
be used. The use of this qualifier is not recommended, except in
exceptional circumstances (e_.g_. when it is desired to further reduce
the size of the coordinates in the output space by choosing the "centre
of gravity" of the output coordinates as the origin). It is preferable
to use a subsequent run of ITRANS to apply the origin offset to the
coordinates in the IFF file.
ITRANS carries out empirical transformations in two circumstances:
Any scalar output units can be specified; their dimensions are taken
from the target control points.
In this case it is not possible to combine the empirical transformation with
projection calculations.
See Appendix C for allowable number formats to be used when replying to
prompts.
To transform individual points from one projection to another use ITRANS
with the /POINT qualifier.
The operator will be asked to enter data about the input projection
system and the target projection system.
When this has been achieved, the user is asked to input points in the
first system, in the appropriate units and these will be converted to
the target system and displayed.
When using the /POINT descriptor on geographical coordinates (either as
input or output) it is possible to specify unit code 200. This allows
angular values to be read/written in the format DDD MM SS.SSS.
An ASCII file of X and Y coordinate pairs can be read by giving the
command "@filename" to the prompt asking for the coordinates of a point
to convert.
Missing parts of the file-spec are taken from the default specification
SYS$DISK:ITRANS_.DAT.
See Appendix C for allowable number formats to be used when replying to
prompts.
Use
Use ITRANS with the /DESCRIPTOR qualifier to edit an existing version 2
map descriptor or to insert one in a file that has an old type.
In the second case a new version of the file is created.
--------------------------------------------------------------------------------
$ ITRANS EXAMPLE EXGEOG<CR>
%ITRANS-W-NOV2MD, map descriptor in 'DUA0:[IFF.IMP.ITRANS]EXAMPLE.IFF;1' is not version 2
Enter projection data for current IFF file
In this example ITRANS is used to transform the IFF file EXAMPLE (which is held
in metres on the UK national grid) into geographicals in a file called EXGEOG.
As EXAMPLE does not have a valid version 2 map descriptor, the user is first
asked to enter its projection data. Projection 101 (UK national grid) does not
require any additional information.
The user is next asked to enter data for the target projection. Projection 100
(geographicals) also does not required any additional information.
In reply to the prompt "Enter unit code", the user has entered "?", so a list
of possible units codes has been output.
As the /OUTPUT qualifier has not been given, the record of the transformation
is output to SYS$OUTPUT
The program finishes by outputting timing statistics. $STATUS is set to
SS$_NORMAL.
$ ITRANS/LOG/OUTPUT EXGEOG EXMERC<CR>
%LSLLIB-I-IFFOPENED, DUA0:[IFF.IMP.ITRANS]EXGEOG.IFF;1 opened for read
Existing map descriptor:
Spheroid : 9 (Airy)
Projection : 100 (Geographic (ie Lat and Long))
Scale : 2500.0
Units : 4 (degrees of arc)
Local origin : 54.347 (Latitude) 1.062 (Longitude)
Enter projection data for target IFF file
In this example ITRANS is used to transform the IFF file EXGEOG (created in the
last example) into a mercator projection in a file called EXMERC.IFF.
As the /LOG qualifier has been given, a message is given whenever files are
opened.
As the input file has a valid map descriptor the user is only asked to enter
data for the target projection. Sensible values are offered as defaults.
The Mercator projection requires four additional pieces of information. As the
input projection is different from the target system, defaults of 0.0 are
offered.
As the target system is a projection, the default units are projection units.
The local origin of the input system is transformed into the target system and
is offered as a default.
The run is terminated prematurely by entering <CTRL/Z> to the first prompt.
As the /OUTPUT qualifier has been given, the file EXPOINT.LIS has been created.
This contains the following:-
================================== ITRANS ======================================
ITRANS invoked by TIM using terminal LTA75: at 9-NOV-1986 08:52:29.05
Command line:
ITRANS/POINT/OUTPUT=EXPOINT
Input projection system
$ ITRANS/DESCR/OUTPUT=EXDESC/LOG EXMERC<CR>
%LSLLIB-I-IFFOPENED, DUA0:[IFF.IMP.ITRANS]EXMERC.IFF;1 opened for read
Existing map descriptor:
Spheroid : 9 (Airy)
Projection : 5 (Mercator)
Latitude of true scale : 49 00 00.000N
Longitude of the central meridian : 2 00 00.000W
Eastings of origin : 0.000
Northings of origin : 0.000
Scale : 2500.0
Units : 2 (metres)
Local origin : 224044.019 (Eastings) 4733264.099 (Northings)
Enter projection data for current IFF file
As the file has a valid version 2 map descriptor, the MD entry is patched
in situ.
$ ITRANS/OUTPUT/LOG EXMERC EXAMPLE1<CR>
%LSLLIB-I-IFFOPENED, DUA0:[IFF.IMP.ITRANS]EXMERC.IFF;1 opened for read
Existing map descriptor:
Spheroid : 9 (Airy)
Projection : 5 (Mercator)
Latitude of true scale : 49 00 00.000N
Longitude of the central meridian : 2 00 00.000W
Eastings of origin : 0.000
Northings of origin : 0.000
Scale : 2500.0
Units : 105 (user units)
Local origin : 0.000 (Eastings) 0.000 (Northings)
Data are not in projection units
Existing control points are:
48.876 1124.191
0.000 0.000
1124.056 -48.985
1173.176 1075.180
Do you wish to use these control points [N]? N<CR>
Enter control point values in metres on Mercator projection
Enter coordinates of NW corner: 224092.90 4734388.29
Enter coordinates of SW corner: 224044.02 4733264.10
Enter coordinates of SE corner: 225168.08 4733215.11
Enter coordinates of NE corner: 225217.20 4734339.28
Enter projection data for target IFF file
As the units in the input file are not in projection units, the user is
required to set up data for a two point transformation, before the projection
calculation can be carried out.
The user chooses not to use the values in the right hand side of the existing
CP entry, but enters full Mercator coordinates for each control point. As the
/ABS qualifier has not been given, these values are reduced by their minimum x
and y values to produce smaller absolute values, and this minimum x and y is
used as the local origin.
This point is then transformed and offered as the default local origin for the
target system, but is not accepted.
As the /OUTPUT qualifier has been given, the file ITRANS.LIS has been created.
Note that as a 2 point empirical transformation has been used, there are small
discrepancies between the target values of the control points and their final
values.
================================== ITRANS ======================================
ITRANS invoked by TIM using terminal LTA75: at 9-DEC-1986 09:12:29.05
Command line:
ITRANS/OUTPUT/LOG EXMERC EXAMPLE1
Input projection system
As the _/HEIGHT_ADJUST qualifier has been given, ITRANS prompts for the
spheroid geoid separation. In this case the heights of the points are
spheroidal heights, so the default value of 0.0 is used.
Between defining the input and output systems, ITRANS prompts for the
shifts to be applied. Note that the rotation is given in degrees minutes
and seconds format. The scale change is given as parts per million.
As the _/HEIGHT_ADJUST qualifier has been given, ITRANS requires
latitude, longitude and height for each point to convert.
$ ITRANS/FOUR/CONTROL=EXAMPLE RWR_GRID RWR_OUT<CR>
Existing map descriptor:
Spheroid : 9 (Airy)
Projection : 101 (UK national grid)
Scale : 2500.0
Units : 2 (metres)
Local origin : 499000.000 (Eastings) 599000.000 (Northings)
!
! This is an example control point file
!
! The coordinates are absolute; ie they include the local origin
!
499000.000 600000.000 499000.000 600000.000
499000.000 599000.000 499000.000 599000.000
500000.000 599000.000 500000.000 599000.000
500000.000 600000.000 500002.500 600005.000 ! this is only point in error
499250.000 599500.000 499250.000 599500.000
499750.000 599500.000 499750.000 599500.000
499500.000 599250.000 499500.000 599250.000
499500.000 599750.000 499500.000 599750.000
;
; and this is the end of it
--------------------------------------------------------------------------------
These messages give information only, and require no immediate action from the
user.
Explanation: When using ITRANS with the /DESCRIPTOR qualifier, the
specified IFF file did not have a version 2 map descriptor entry, so a
new IFF file has been created which has a MD entry of the correct
length.
User action: Delete the original IFF file on completion of this run
of ITRANS.
Explanation: When using ITRANS with the /DESCRIPTOR qualifier, the
specified IFF file had a version 2 map descriptor. The new values have
been patched into this, and the original values are lost.
User action: None.
Explanation: A spheroid has been specified, while working on a
projection that is only defined for a sphere. Under these
circumstances, ITRANS uses a sphere which has the same area as the
specified spheroid.
User action: If this is not the desired action, on completion of the
run of ITRANS, delete the transformed IFF file and re-run ITRANS,
specifying a sphere rather than a spheroid.
Explanation: When the /LOG qualifier has been given, this message is
output if no output IFF file has been specified.
User action: None.
Explanation:
User action: Reenter the last few values.
--------------------------------------------------------------------------------
These messages are output when an error has occurred that can be
corrected immediately by the user.
Explanation: ITRANS has not been able to solve the empirical
transformation using the supplied control points, perhaps because they
have been given in the wrong order, or they do not adequately control
the relationship between the input and output coordinate spaces.
User action: Reenter the target values for the control points.
Explanation: User has input two longitude or two latitude values,
rather than one of each, when transforming individual geographical
points.
User action: Enter two angles with correct hemisphere suffix.
Explanation: User has entered a number that does not correspond to a
valid projection code.
User action: Enter '?' to obtain list of valid codes, and enter one
of them.
Explanation: User has entered a number that does not correspond to a
valid projection code.
User action: Enter '?' to obtain list of valid codes, and enter one
of them.
Explanation: Certain projections are only defined for specific
spheroids. The projection code that has been specified is not valid with
the specified spheroid as it is one of these.
User action: Select another projection code or, if the spheroid is
wrong, exit from ITRANS and convert the data onto the correct spheroid
and use ITRANS with the /DESCRIPTOR qualifier to alter the spheroid
code in the map descriptor.
Explanation: Some of the projections that ITRANS operates on are
only defined for a sphere, not a spheroid. It is not sensible to
convert from one type to another.
User action: Select another (spheroidal) projection, or exit from
ITRANS, convert the data from the spheroid onto a sphere and then use
ITRANS with the /DESCRIPTOR qualifier to update the map descriptor.
Explanation: User has entered a number that does not correspond to a
valid spheroid code.
User action: Enter '?' to obtain list of valid codes, and enter one
of them.
Explanation: User has entered a number that does not correspond to a
valid state plane projection system zone.
User action: Enter '?' to obtain list of valid zones, and enter one
of them.
Explanation: User has entered a number that does not correspond to a
valid unit code.
User action: Enter '?' to obtain list of valid codes, and enter one
of them.
Explanation: User has entered a number that does not correspond to a
valid UTM zone.
User action: Enter '?' to obtain data about UTM zones and enter
another value, or if the UTM zone is unknown enter zone 0. This will
make ITRANS prompt further for the latitude and longitude of a point in
the area of interest.
Explanation: An arithmetic error has occurred while converting from
one geodetic datum to another. This is probably caused by the operator
entering the datum shift parameters incorrectly.
User action: Check the values of the datum shift parameters, and
rerun the program
Explanation: The user has entered
User action: None.
Explanation: When there are more than the minimum number of control
points required for a particular transformation, the ambiguity is
resolved by the use of a least squares solution. This leaves residuals
at the control points, and when the maximum residual in X or the maximum
residual in Y is greater that 1/1000th of the range in X and Y then this
message is output.
User action: The user can either accept these residuals and
continue, or choose to reenter the target values of the control points.
Explanation: An angle has been input with a value of one of its
components that is impossible (e_.g_. minutes greater than 60)
User action: Reenter the angle with correct value.
Explanation: An angle has been input where more than one of its
components has a decimal point.
User action: Reenter the angle with correct value.
Explanation: When using the /DATUM_SHIFT qualifier, the input
units must be angular, not linear. This message should not occur with
files that have been correctly processed.
User action: Use ITRANS/DESCRIPTOR to correct the unit code
Explanation: A latitude value has been entered with an absolute
value greater than 90 degrees.
User action: Reenter the angle with correct value.
Explanation: A longitude value has been entered with an absolute
value greater than 180 degrees.
User action: Reenter the angle with correct value.
Explanation: When using the /DATUM_SHIFT qualifier, the output
units must be angular, not linear. This message should not occur.
User action: Report problem to Laser-Scan
Explanation: Projection units for all the spheroids defined within
ITRANS are metres, and there is a known relationship between them and
feet. When using a user specified spheroid, the projection units are
unknown, and it is not possible to use FEET
User action: Use an internally defined spheroid, or specify a user
defined spheroid in feet, and specify unit code 2 (projection units).
Explanation: Unit code 200 is not possible when dealing with files.
This message should not occur.
User action: Exit from ITRANS and patch the map descriptor entry,
using ITRANS with the /DESCRIPTOR qualifier, to contain a valid unit
code.
Explanation: Using table or sheet units requires a sensible scale.
User action: Enter valid value for scale factor (a value greater
than 0)
Explanation: It is not possible to specify unit codes 101 - 105 when
dealing with points.
User action: Enter '?' to obtain list of valid codes, and enter one
of them.
Explanation: Angular units can only be used when dealing with
geographical coordinates, and scalar units can only be used when dealing
with a projection.
User action: Enter '?' to obtain list of valid codes, and enter one
of them.
Explanation: The size of user units (unit code 105) are defined by
the values of the control points that are entered when doing an
empirical transformation. This is the only way that data can be
converted into user units.
User action: Complete any required projection calculations by
selecting an acceptable target unit code and then re-run ITRANS with the
/TWO, /THREE, /FOUR or /PROJECTIVE qualifier.
Explanation: The user has entered a projection code other than 100
while using the /DATUM_SHIFT qualifier. Geodetic datum shifts can only
be carried out on Geographical coordinates (Latitude and Longitude)
User action: Enter 100 to the "Projection :" prompt
Explanation: The angle required at this point must be in the form
sDDD MM SS.SS, without a hemisphere suffix
User action: Reenter the angle in the correct format
Explanation: It is not possible to do projection calculations if the
projection code or unit code is set to 0.
User action: Enter '?' to obtain list of valid codes, and enter one
of them.
Explanation: The input IFF file does not have a version 2 map descriptor.
User action: The user will be asked to specify a map descriptor for the
current IFF file.
Explanation: An angle has been input that is both preceded by a sign and
succeeded by a hemisphere code.
User action: Reenter a valid angle.
Explanation: The map descriptor in the input IFF file is unset.
User action: The user will be asked to specify a map descriptor for the
current IFF file.
Explanation: An incomplete line has been input.
This error should not occur.
User action: Reenter complete line
Explanation: An invalid character 'character' has occurred in an input line.
User action: Reenter a valid value.
Explanation: The projection code field in the map descriptor in the
input IFF file is unset.
User action: The user will be asked to specify a map descriptor for
the current IFF file (using the fields that are set as defaults).
Explanation: The unit code field in the map descriptor in the input
IFF file is unset.
User action: The user will be asked to specify a map descriptor for the
current IFF file (using the fields that are set as defaults).
Explanation: While using ITRANS with the /POINT qualifier, an error
has occurred while carrying out the projection transformation. It will
be followed by an explanation of the error.
User action: Reenter a valid point to transform.
Explanation: A latitude value has been input when a longitude was
expected or vice versa.
User action: Reenter the angle with the correct hemisphere letter.
Explanation: The number of lines of control points in the file specified
with the /CONTROL qualifier exceeds the maximum allowed, (see above), all
lines after the maximum allowed will be ignored and ITRANS will continue
as normal
User action: The user may decided to edit the file and rerun ITRANS.
--------------------------------------------------------------------------------
After these messages have been output, ITRANS will be aborted. This may
leave an invalid IFF file that should be deleted.
Explanation: ITRANS tries to output an invalid projection code.
This should not happen.
User action: Correct the projection code field of the map descriptor
with ITRANS and the /DESCRIPTOR qualifier, and try again.
Explanation: ITRANS tries to output an invalid spheroid code.
This should not happen.
User action: Correct the spheroid code field of the map descriptor
with ITRANS and the /DESCRIPTOR qualifier, and try again.
Explanation: ITRANS tries to output an invalid unit code.
This should not happen.
User action: Correct the unit code field of the map descriptor with
ITRANS and the /DESCRIPTOR qualifier, and try again.
Explanation: An error has been encountered trying to read from the
control file.
User action: Check the control file, according to the given message.
Explanation: An error has been encountered trying to open the
control file.
User action: Check that the control file exists, according to the
given message, and rerun ITRANS with a valid control point file.
Explanation: ITRANS has tried to carry out an illegal projection
transformation on a point in the IFF file. This may be a control point.
User action: Correct the value of the point in the IFF file and
re-run ITRANS, or do not carry out this projection calculation.
Explanation: ITRANS cannot be used to change spheroids.
User action: use ITRANS/DATUM_SHIFT to change geodetic datum
Explanation: The input IFF file does not have a valid format and the
control point entry is missing.
User action: Correct the error in the data and re-run ITRANS
Explanation: The input IFF file does not have projection code 100,
but the /DATUM_SHIFT qualifier has been given.
User action: Convert the IFF file to geographicals using ITRANS in
its default mode, then change the datum
Explanation: The input IFF file does not have a valid format and the
map descriptor entry is missing.
User action: Correct the error in the data and re-run ITRANS
Explanation: It is not possible to do a empirical transformation on
geographical coordinates.
User action: Transform the geographical data onto a projection
before trying to do an empirical transformation
Explanation: A line in the control file appears to contain one,
two or three control points, where four was expected.
User action: Amend the control file so that each line containing
control points has four points - originalX originalY targetX targetY
Explanation: A file being used to input coordinates to ITRANS in
/POINT contains a "@" sign. It is not possible to have nested files
of coordinates.
User action: Correct the input file, and rerun ITRANS
Explanation: The control point entry in the input IFF file has
different left hand side and right hand side values.
User action: Correct the CP entry in the IFF file, or run ITRANS
with the /TWO, /THREE, /FOUR or /PROJECTIVE qualifier to do an empirical
transformation on the data using the existing right hand side control
point values.
Explanation: The number of lines of control points in the control file
is less than the minimum required, (see above).
User action: Add more lines of control points to the control file until
the minimum required has been reached.
In addition to the above messages which are generated by ITRANS itself,
other messages may be produced by the command line interpreter (CLI) and
by Laser-Scan libraries. In particular, messages may be generated by the
IFF library. These are introduced by '%IFF' and are documented in the
IFF library users' guide. In most cases IFF errors will be due to a
corrupt input file, and this should be the first area of investigation.
If the cause of the error cannot be traced by the user and Laser-Scan
are consulted, then the input file should be preserved to facilitate
diagnosis.
The values of these parameters will generally be obtained from published
tables or directly from Geodetic Departments, and care must be taken to
ensure that the values so obtained are in the same sense as ITRANS
expects them.
A standard 3 dimensional conformal transformation (assuming small
rotations) is used. Rotations about the X and Y axes are 0.0. This
gives:
| X | = | DX | + SF | 1 -RZ 0 | | X |
| Y | | DY | | RZ 1 0 | | Y |
| Z |new | DZ | | 0 0 1 | | Z | old
In IFF files this is only the case if the height is held as an attribute
of a point (i.e_. in a ZS or CB entry). When the height is held as
the attribute if a feature (i.e_. as an AC entry) the feature is
converted as though it lay on the spheroid, and the value of the AC is
unaffected.
While the above gives a general mechanism for conversion of
spheroid/geodetic datum, it should be noted that "real" survey data often
contains errors that render it unsuitable to the above approach.
For example, in the United Kingdom the National Grid is based on the
OSGB36 datum, which is an inhomogeneous system unsuitable for the above
conformal approach.
When carrying out these empirical transformations on data in an IFF file
ITRANS uses one of:
When more than the minimum number of control points are supplied to the
above formulae, a least squares solution is applied to resolve the
inevitable ambiguities. This means that the final coordinates of the
control points may be slightly different from the target values. Where
the maximum of these discrepancies is greater than 1/1000th of the range
of the target control point values then the operator is asked if the
transformation is to be accepted.
This transformation breaks down if a rotation of exactly 45 degrees,
a scale change and a shift are the only differences between the input
points and the output points. In this case /TWO or /THREE will give
the required results.
If a projection calculation is required, and the input data is in table,
sheet or user units anything but an orthogonal transformation is
required on the data, then two runs of ITRANS will be required. The
first to transform the data into projection units (using the appropriate
formulae) and the second to do the projection calculation.
In the first case, the entry is patched into the existing IFF file, so a copy
of the file should be taken before use.
The operator is prompted to enter the various fields of the map descriptor.
EXAMPLES
******************************************
Enter spheroid code (0): 9<CR>
(Airy)
Enter projection code (100): 101<CR>
(UK national grid)
Enter scale of map (0.0): 2500<CR>
Enter unit code (2): <CR>
(metres)
Define local origin as Eastings and Northings (0.0 0.0): 599000 499000<CR>
Enter projection data for target IFF file
*****************************************
Using spheroid : 9 (Airy)
Enter projection code (101): 100<CR>
(Geographic (ie Lat and Long))
Enter scale of map (2500.0): <CR>
Enter unit code (5): ?<CR>
Allowable Units and their codes are:-
0 Unset 1 feet
2 metres 3 seconds of arc
4 degrees of arc 5 radians
101 mm on table 102 mm on map sheet
103 thous (mils) on table 104 thous (mils) on map sheet
105 user units 110 1/10 seconds of arc
Enter unit code (5): 4<CR>
(degrees of arc)
Define local origin as Latitude and Longitude (54.347 1.062): <CR>
Longitude (1.062): <CR>
Input projection system
***********************
Spheroid : 9 (Airy)
Projection : 101 (UK national grid)
Scale : 2500.0
Units : 2 (metres)
Local origin : 599000.000 (Eastings) 499000.000 (Northings)
Output projection system
************************
Spheroid : 9 (Airy)
Projection : 100 (Geographic (ie Lat and Long))
Scale : 2500.0
Units : 4 (degrees of arc)
Local origin : 54.347 (Latitude) 1.062 (Longitude)
ELAPSED: 00:00:47.89 CPU: 0:00:05.67 BUFIO: 68 DIRIO: 55 FAULTS: 108
$
*****************************************
Using spheroid : 9 (Airy)
Enter projection code (100): 5<CR>
(Mercator)
The Mercator projection requires the following
additional information:-
Latitude that has true scale
in DDD MM SS.SS format ( 0 00 00.000N): 49N<CR>
Longitude of the central meridian
in DDD MM SS.SS format ( 0 00 00.000E): 2W<CR>
Eastings of the origin of the projection (0.0): <CR>
Northings of the origin of the projection (0.0): <CR>
Enter scale of map (2500.0): <CR>
Enter unit code (2): <CR>
(metres)
Define local origin as Eastings and Northings (224044.019 4733264.099): <CR>
Northings (4733264.099): <CR>
%LSLLIB-I-IFFOPENED, DUA0:[IFF.IMP.ITRANS]EXMERC.IFF;1 opened for write
ELAPSED: 00:00:40.70 CPU: 0:00:04.43 BUFIO: 45 DIRIO: 69 FAULTS: 280
$
$ ITRANS/POINT<CR>
Enter projection data for source system
***************************************
Enter spheroid code (0): <CTRL/Z>
%ITRANS-W-EOF, program terminated prematurely by '_^Z'
ELAPSED: 00:00:03.19 CPU: 0:00:00.34 BUFIO: 6 DIRIO: 0 FAULTS: 135
In this example ITRANS is to be used to transform individual points.
$ ITRANS/POINT/OUTPUT=EXPOINT<CR>
Enter projection data for source system
***************************************
Enter spheroid code (0): 9<CR>
(Airy)
Enter projection code (100): 101<CR>
(UK national grid)
Enter unit code (2): <CR>
(metres)
Enter projection data for target system
***************************************
Using spheroid : 9 (Airy)
Enter projection code (101): 5<CR>
(Mercator)
The Mercator projection requires the following
additional information:-
Latitude that has true scale
in DDD MM SS.SS format ( 0 00 00.000N): 49N<CR>
Longitude of the central meridian
in DDD MM SS.SS format ( 0 00 00.000E): 2W<CR>
Eastings of the origin of the projection (0.0): <CR>
Northings of the origin of the projection (0.0): <CR>
Enter unit code (2): <CR>
(metres)
Eastings and Northings: 599000 500000<CR>
Transformed point 224092.895 4734388.290
Eastings and Northings: 599000 499000<CR>
Transformed point 224044.019 4733264.099
Eastings and Northings: 600000 499000<CR>
Transformed point 225168.075 4733215.114
Eastings and Northings: 600000 500000<CR>
Transformed point 225217.195 4734339.279
Eastings and Northings: <CTRL/Z>
ELAPSED: 00:00:45.68 CPU: 0:00:00.84 BUFIO: 50 DIRIO: 15 FAULTS: 145
$
In this example ITRANS is used to convert individual points from UK National
Grid to a Mercator projection.
***********************
Spheroid : 9 (Airy)
Projection : 101 (UK national grid)
Units : 2 (metres)
Output projection system
************************
Spheroid : 9 (Airy)
Projection : 5 (Mercator)
Latitude of true scale : 49 00 00.000N
Longitude of the central meridian : 2 00 00.000W
Eastings of origin : 0.000
Northings of origin : 0.000
Units : 2 (metres)
Transformed points
******************
Input Point Output Point
Easting Northing Easting Northing
599000.000 500000.000 224092.895 4734388.290
599000.000 499000.000 224044.019 4733264.099
600000.000 499000.000 225168.075 4733215.114
600000.000 500000.000 225217.195 4734339.279
******************************************
Enter spheroid code (9): <CR>
(Airy)
Enter projection code (5): <CR>
(Mercator)
The Mercator projection requires the following
additional information:-
Latitude that has true scale
in DDD MM SS.SS format ( 49 00 00.000N): <CR>
Longitude of the central meridian
in DDD MM SS.SS format ( 2 00 00.000W): <CR>
Eastings of the origin of the projection (0.0): <CR>
Northings of the origin of the projection (0.0): <CR>
Enter scale of map (2500.0): <CR>
Enter unit code (2): 105<CR>
(user units)
Define local origin as Eastings and Northings (224044.019 4733264.099): 0<CR>
Northings (4733264.099): 0<CR>
%LSLLIB-I-IFFOPENED, DUA0:[IFF.IMP.ITRANS]EXMERC.IFF;1 opened for update
%ITRANS-I-MDPTCHED, MD entry patched into 'DUA0:[IFF.IMP.ITRANS]EXMERC.IFF;1'
ELAPSED: 00:00:26.64 CPU: 0:00:01.15 BUFIO: 52 DIRIO: 25 FAULTS: 165
In this example ITRANS is used to alter the unit code in the map descriptor of
the file EXMERC.IFF without doing any transformation.
*****************************************
Using spheroid : 9 (Airy)
Enter projection code (5): 101<CR>
(UK national grid)
Enter scale of map (2500.0): <CR>
Enter unit code (2): <CR>
(metres)
Define local origin as Eastings and Northings (599001.892 498956.5): 599000 499000<CR>
%LSLLIB-I-IFFOPENED, DUA0:[IFF.IMP.ITRANS]EXAMPLE1.IFF;1 opened for write
ELAPSED: 00:02:07.74 CPU: 0:00:08.42 BUFIO: 52 DIRIO: 72 FAULTS: 272
In this example ITRANS is used to convert EXMERC back into UK national grid.
***********************
Spheroid : 9 (Airy)
Projection : 5 (Mercator)
Latitude of true scale : 49 00 00.000N
Longitude of the central meridian : 2 00 00.000W
Eastings of origin : 0.000
Northings of origin : 0.000
Scale : 2500.0
Units : 105 (user units)
Local origin : 0.000 (Eastings) 0.000 (Northings)
Control points (from CP entry) used for 2 point transformation
**************************************************************
Input Target Final
48.876 1124.191 48.880 1173.180 48.879 1173.182
0.000 0.000 0.000 48.990 0.001 48.988
1124.056 -48.985 1124.060 0.000 1124.059 0.002
1173.176 1075.180 1173.180 1124.170 1173.181 1124.168
Default origin calculated as: 224044.020 4733215.110
Output projection system
************************
Spheroid : 9 (Airy)
Projection : 101 (UK national grid)
Scale : 2500.0
Units : 2 (metres)
Local origin : 599000.000 (Eastings) 499000.000 (Northings)
Input file : DUA0:[IFF.IMP.ITRANS]EXMERC.IFF;1
Output file: DUA0:[IFF.IMP.ITRANS]EXAMPLE1.IFF;1
$ itrans/point/datum/height<CR>
Enter projection data for source system
***************************************
Enter spheroid code (0): 5<CR>
(World Geodetic System 72 (WGS 72))
Define Geoidal - spheroidal separation (0.0): <CR>
Enter projection code (100): <CR>
(Geographic (ie Lat and Long))
Enter unit code (200): <CR>
(dd mm ss.ss format)
Define shift in X from original datum to target datum (0.0): 0.0<CR>
Define shift in Y from original datum to target datum (0.0): 0.0<CR>
Define shift in Z from original datum to target datum (0.0): 4.5<CR>
Define rotation about Z axis of the target datum from the original
datum (in DDD MM SS.SS format) (+ 0 00 00.000) : 00 00 00.554<CR>
Define scale difference between datums (in ppm) (0.0) : 0.2263<CR>
Enter projection data for target system
***************************************
Enter spheroid code (5): 22<CR>
(World Geodetic System 84 (WGS 84))
Define Geoidal - spheroidal separation (0.0): <CR>
Enter projection code (100): <CR>
(Geographic (ie Lat and Long))
Enter unit code (200): <CR>
(dd mm ss.ss format)
Input projection system
***********************
Spheroid : 5 (World Geodetic System 72 (WGS 72))
(with Geoid - Spheroid separation of 0.0)
Projection : 100 (Geographic (ie Lat and Long))
Units : 200 (dd mm ss.ss format)
Parameters used for datum conversion
************************************
DX = 0.00
DY = 0.00
DZ = 4.50
RZ = + 0 00 00.554
SF = 0.23 (parts per million)
Output projection system
************************
Spheroid : 22 (World Geodetic System 84 (WGS 84))
(with Geoid - Spheroid separation of 0.0)
Projection : 100 (Geographic (ie Lat and Long))
Units : 200 (dd mm ss.ss format)
Latitude, Longitude and Height: 39 13 26.5782n 98 32 32.2870w 570.88<CR>
Transformed point 39 13 26.698N 98 32 31.733W 573.25
Latitude, Longitude and Height: ^Z
ELAPSED: 0 00:02:07.87 CPU: 0:00:00.18 BUFIO: 66 DIRIO: 0 FAULTS: 147
$
In this example ITRANS is used to do an accurate geodetic datum shift
between WGS72 and WGS84.
%ITRANS_W_ERRCPTS, residuals in X and Y of 0.59 1.81 metres
Do you wish to continue with these residuals [N]? Y
Default origin of current IFF file has been computed
as: Easting 499000.000 Northing 599000.0
Enter projection data for target IFF file
*****************************************
Using spheroid : 9 (Airy)
Using projection: 101 (UK national grid)
Enter unit code (105): <CR>
(user units)
Define local origin as Eastings Northings (499000.0 599000.0): <CR>
(599000.0) <CR>
Input projection system
***********************
Spheroid : 9 (Airy)
Projection : 101 (UK national grid)
Scale : 2500.0
Units : 2 (metres)
Local origin : 499000.000 (Eastings) 599000.000 (Northings)
Control points (from command file) used for 4 point transformation
******************************************************************
Input Target Final
499000.000 600000.000 499000.000 600000.000 498999.688 599999.375
499000.000 599000.000 499000.000 599000.000 498999.826 598999.653
500000.000 599000.000 500000.000 599000.000 499999.688 598999.375
500000.000 600000.000 500002.500 600005.000 500002.049 600004.097
499250.000 599500.000 499250.000 599500.000 499250.035 599500.069
499750.000 599500.000 499750.000 599500.000 499750.590 599501.181
499500.000 599250.000 499500.000 599250.000 499500.035 599250.069
499500.000 599750.000 499500.000 599750.000 499500.590 599751.181
Default origin calculated as: 499000.000 599000.000
Output projection system
************************
Spheroid : 9 (Airy)
Projection : 101 (UK national grid)
Scale : 2500.0
Units : 105 (user units)
Local origin : 499000.000 (Eastings) 599000.000 (Northings)
ELAPSED: 0 00:00:39.71 CPU: 0:00:01.48 BUFIO: 67 DIRIO: 104 FAULTS: 218
In this example the /CONTROL qualifier has been given in conjunction
with the /FOUR qualifier. This has the effect of reading the control
points from a file, in this case called EXAMPLE.DAT (shown below), which
is held in the current directory and performing a four point empirical
transformation using these control points.
MESSAGES (INFORMATIONAL)
MDCOPIED, new version of IFF file created
MDPTCHED, MD entry patched into IFF file
NEWRAD, using sphere of equal area to spheroid
OUTFILEDEF, using default output file <'file-spec'>
REENTER, reenter input values
MESSAGES (WARNING)
BADCPTS, badly conditioned control points
BADHEMI, two angles are both latitude or both longitude
BADPRJCDW, invalid projection code
BADMODSTOPT, 'integer' is invalid modified-stereographic option code
BADPRJSPH, inconsistent projection and spheroid
BADPRJTYP, cannot mix spherical and spheroidal projections
If a sphere has been specified, (either spheroid code 19 or 20 or a user
specified spheroid (code 101) defined as a sphere), this error will not
occur.
BADSPHCDW, invalid spheroid code
BADSPSZON, invalid SPS zone
BADUNTCDW, invalid unit code
BADUTMZON, invalid UTM zone
DSERR, arithmetic error while shifting datum
EOF, program terminated prematurely by '_^Z'
ERRCPTS, residuals in X and Y of 'X real' and 'Y real'
ILLEGANGVAL, impossible value for component of angle
ILLEGDECPT, only last component in angle may have decimal point
ILLEGINPUT, illegal input units for datum shift
ILLEGLAT, illegal latitude value
ILLEGLONG, illegal longitude value
ILLEGOUTPUT, illegal output units for datum shift
IMPOSUNT, no FEET with user-specified spheroid
INVALANGUNT, no 'ddd mm ss.ss' format when transforming files
INVALSCL, scale of 1:'scale' is invalid when dealing with 'units'
INVALTABUNT, no table units when transforming points
INVALUNT, inconsistent unit on projection
INVALUSEUNT, no user units without an empirical transformation
NOTGEOGS, need geographical coordinates for datum shift
NOHEMI, no hemisphere allowed with angle in this context
NOTUNSET, cannot specify UNSET code
NOV2MD, map descriptor is not version 2
SGNANDHEMI, sign and hemisphere present in angle
UNSETMD, map descriptor is unset
UNEXPEOL, unexpected end of line
UNEXPCH, unexpected character 'character' found
UNSETPRJ, projection code unset
UNSETUNT, unit code unset
WGCTPERR, projection error
WRNGHEM, wrong hemisphere
2MANYLINES Too many lines of points in control file, truncating.
MESSAGES (FATAL)
BADPRJCDS, invalid projection code
BADSPHCDS, invalid spheroid code
BADUNTCDS, invalid unit code
CTRLFILERR, error reading the control file
This message will be followed by a description of the error.
ERROPNCTRL, error opening the control file 'filename'
This message will be followed by a description of the error.
FGCTPERR, projection error
This message will be followed by a description of the error.
INCONSPH, inconsistent input and output spheroids. See documentation
NOCP, no control point entry found in IFF file
NOTGEOGS, need geographical coordinates for datum shift
NOMD, no map descriptor
NOTPLANE, no empirical transformation on geographical coordinates
PREMEOL, premature end of line, four control points expected
UNEXPAT, "@" not allowed in input file
WRNGCPTS, LHS and RHS of control point entry not equal
2FEWPTS, not enough sets of control points for specified transformation
--------------------------------------------------------------------------------
MESSAGES (OTHER)