Edit Coordinate System Formula

View and/or edit a coordinate system formula. A coordinate system defines the XY-coordinates in your maps; a coordinate system formula is based on another coordinate system and a user-defined formula.

Coordinate systems are used by polygon, segment and point maps, and by the georeference of a raster map. It is advised to use one coordinate system for all the maps in your project.

This dialog box appears:

Specify the formula that should be applied on an input coordinate system (= related coordinate system), and specify the boundary XY-coordinates for the coordinate system that you are creating (artificial coordinates).

Dialog box options:

Description:

Type a description for the coordinate system. The description is visible on the status bar of the Main window when moving the mouse pointer over the coordinate system in the Catalog.

Min X, Y:

Type the minimum X-coordinate and the minimum Y-coordinate for this coordinate system (artificial coordinates).

Max X, Y:

Type the maximum X-coordinate and the maximum Y-coordinate for this coordinate system (artificial coordinates).

Defaults:

First, fill out parameters for your formula.

Then, you can click the Defaults button and see how the coordinate boundaries of the related coordinate system map/fit with the coordinates of the current coordsys formula.

The boundary values are calculated by applying the current formula as defined by this dialog box on the related coordinate system. In this way, you can check whether your formula results in the current (artificial) boundary coordinates.

The boundary values will only be used to determine:

  • default map coordinate boundaries for vector maps, and
  • default coordinate boundaries for a georeference for raster maps.

Related coordsys:

Select the coordinate system with the correct coordinates.

Related origin:

The coordinates of the origin of the related coordinate system, i.e. the input coordinate system.

Target origin:

The coordinates of the origin of the target coordinate system, i.e. the current coord sys formula.

The text boxes for Related origin and Target origin together define a shift or translation of the origin. Example: To make an origin shift of 1000 to the right and 1000 up, specifying 0, 0 for the Related origin boxes and 1000, 1000 for the target origin.

In the formulae below, is used for the related coordinates, for the coordinates of the coordsys formula which you are editing, for the origin in the related coordsys, for the origin of the coordsys formula which you are editing.

  

Affine transformation:

Select the option affine transformation when you want to construct an affine transformation formula. You can select a method and specify various parameters to obtain a translation (shifted origin) and/or a rotation and/or a scale factor, etc.

  

  

Conformal:

A transformation which is equal for both the X-coordinates and the Y-coordinates.

Scaling:

Specify a scale factor or multiplication factor with which all coordinates will be multiplied.

A scale factor of 1 returns the same coordinates; a scale factor of 0.5 divides your coordinates by 2; a scale factor of 2 multiplies your coordinates by 2; a scale factor of -1 reflects the coordinates in the origin.

Rotation:

Specify an angle in degrees for a rotation of the coordinate system. Rotation is clockwise about the origin of the input coordinate system.

The complete formula for a conformal transformation reads:

  

  

Differential scaling:

Transformation which allows different scale / multiplication factors for the X-coordinates and for the Y-coordinates.

When you do not shift the origin, the formulas are:

Xout = k1 * Xin

Yout = k2 * Yin

X-scaling:

Specify a scale factor or multiplication factor (k1) with which all X-coordinates will be multiplied.

Y-scaling:

Specify a scale factor or multiplication factor (k2) with which all Y-coordinates will be multiplied.

The complete formula reads:

  

  

Skew along X-axis:

Transformation in which X-coordinates will be stretched, while Y-coordinates remain the same. (A square becomes a parallellogram.)

When you do not shift the origin, the formulas are:

Xout = Xin + Yin * tana

Yout = Yin

Specify a clockwise angle (-90<angle<90) in degrees.

The complete formula reads:

  

  

Skew along Y-axis:

Xout = Xin

Yout = Yin + Xin * tana

The complete formula inclusive a translation reads:

  

  

Matrix coefficients:

For advanced users: specify matrix coefficients by which the input coordinates will be multiplied.

The complete formula reads:

  

  

User-defined expression:

Select the option user-defined expression when you want to type in a formula which establish relations for XY-coordinates of the input or related coordinate system and the desired output XY-coordinates of the coordinate system formula that you are creating. Optionally, you can also specify the inverse formulae. This option to specify a user-defined expression can be used to create a coordinate system from a coordinate system projection, when you know ellipsoidal or datum formulae to go from one system to the other.

out X =

Type a formula which defines the relation between desired output X-coordinates (this coordsys formula) and input XY-coordinates (the related coordsys). The parameter for the X-coordinates is X, the parameter for the Y-coordinates is Y. Furthermore, you can use any ILWIS function just as in MapCalc or TabCalc on the command line.

out Y =

Type a formula which defines the relation between desired output Y-coordinates and input XY-coordinates.

Inverse Formulae

Select this check box when you want to specify the inverse formulae. There is no check on whether the inverse formula supplied by the user is really the inverse of the formulae above. Use with care.

inv X =

Type a formula which defines the inverse formula.

The input XY's for this formula are coordinates from this coordinate system formula (artificial coordinates).

The resulting X is a coordinate of the related coordinate system.

The parameter for the X-coordinates is X; the parameter for the Y-coordinates is Y. Furthermore, you can use any ILWIS function just as in MapCalc or TabCalc on the command line.

inv Y =

Type a formula which defines the inverse formula.

Tips:

See also: