EscalVEC: Vector entities scalling and shifting
This program performs a change of scale and/or a shift of
vector files in non-structured VEC format. It also changes map coordinates
to paper coordinates as a prior step for exporting the some drawing
packages.
Scaling option is useful, for example, to convert files having m as
reference units to files having km, using a scaling factor of 0.001 and a
displacement of 0 in both X and Y axes. It is also useful to add a digit
(for ex. 4) to Y UTM coordinates coming from a program that do not support
double precision UTM coordinates and, therefore, truncate the first number.
This way, if we write Scaling=1, XDisplac=0 and YDisplac=4000000, we will
obtain number 4 append on Y UTM coordinates, expressed in m. Conversely, to
export MiraMon files to other packages not supporting double precision
coordinates, you can use Scaling=1, XDisplac=0, YDisplac=-4000000 and the
output file will have Y UTM coordinates lacking the first 4.
The change of scale option is useful as a previous step before exporting
a file to a drawing program format (for example, before converting to DXF
format).
When the file is 3D it is possible to apply and scale factor and a Z
displacement.
Syntax:
EscalVEC 1 InpFile OutFile Scaling Units XDisplac YDisplac [Precision]
EscalVEC 2 InpFile OutFile Scale Units Xmin Ymin [Precision]
- Option 1: General scaling. X and Y displacements (XDisplac and
YDisplac) are applied after the scaling. Units is the new documented
units (Indicate 'x' for leave previous units).
- Option 2: Change of scale.
- Scale is the dividend of the final scale: (for ex.: 50000)
- Units are the new units:
- mm (millimetres)
- cm (centimetres)
- inches
- Xmin and Ymin are the coordinates that will be located at the
new point 0,0. You can use numbers or use some of the extreme
coordinates of the file, writting for example, 'Xmin Ymin'
or 'Xmin Ymax'.
- InpFile is the input file name to be scaled and/or shifted.
- OutFile is the output file name.
- Precision is the number of decimal digits written in the output
file; it is 3 by default.
- /ESCALAT_Z is the Z scale factor when the file is a 3D VEC.
- /DESPLAC_Z is the Z displacements when the file is a 3D VEC.