Map and Table Calculation

TRANSFORM( ) function

Transforms an (X,Y) coordinate to another coordinate system.

Syntax

TRANSFORM(Coordinate, CoordinateSystem)

Input

Coordinate is an (X,Y) coordinate
Domain type: a coordinate sytem
CoordinateSystem is a target coordinate system

Output

TRANSFORM returns: an (X,Y) coordinate
Domain: same coordinate system as CoordinateSystem

Tip:

When the definition symbol = is used, a dependent output map or dependent output column is created; when the assignment symbol := is used, the dependency link is immediately broken after the output map/column has been calculated.

Usable in

MapCalc, TabCalc, Simple calculators

Examples

Pocket line calculator examples:

? TRANSFORM (COORD(803429,8074631,Cochabamba),LATLON)

returns the (X,Y) coordinate according to the X coordinate and the Y coordinate and coordinate system LatLon, i.e. 17°23'36.51"S, 66°08'40.01"W

TabCalc example:

XYCoord = COORD(X,Y,Cochabamba)

XYLatLon = TRANSFORM(XYCoord,LATLON)

XYLatLon = TRANSFORM(COORD(X,Y,Cochabamba),LATLON)

Point data from the Cochabam area currently using coordinate system Cochabamba (Cochabamba, Bolivia) will be transformed into longitudes and latitudes (LatLon coordinate system).

 

X

Y

XYCoord

XYLatLon

803429

8074631

(803429,8074631)

17°21'30.66"S, 73°42'04.21"W

799748

8082415

(799748,8082415)

17°19'25.29"S, 66°10'48.48"W

803511

8087422

(803511,8087422)

17°16'40.76"S, 66°08'43.67"W

801281

8088967

(801281,8088967)

17°15'51.61"S, 66°09'59.87"W

802613

8080483

(802613,8080483)

17°20'26.71"S, 66°09'10.57"W

806816

8076585

(806816,8076585)

17°22'31.35"S, 66°06'46.37"W

797465

8078352

(797465,8078352)

17°21'38.43"S, 66°12'03.73"W

796346

8087736

(796346, 8087736)

17°16'33.96"S, 66°12'46.21"W

806042

8085414

(806042, 8085414)

17°17'44.79"S, 66°07'17.04"W

In words the above mentioned expressions read:

Take the X-component of a coordinate belonging to coordinate system Cochabamba and transform it to a longitude value. Take the Y-component of a coordinate belonging to coordinate system Cochabamba and transform it to a latitude value.

See also:

COORD MINCRDX MAPCRD RASVALUE
CRDX MINCRDY MAPROW DIST
CRDY MAXCRDX MAPCOL DIST2
MAXCRDY MAPVALUE