coord_transform

Luo_Suppe2026-08-15

gma.smc.query.coord_transform

function coord_transform(points, in_crs = "WGS84", out_crs = "EPSG:4490"):

Transform the coordinates of the input point to the coordinates of the target coordinate system.

Parameters:

points: list||tuple||array.

The X (longitude), Y (latitude) coordinates (and Z (elevation), if any) of the point (or multiple points) to be transformed.

For example: points = [(130.1, 45.2), (131.5, 40.2)]

Optional:

in_crs = str||int||aclassofgmaCoordinateReferenceSystem. Default 'WGS84'.

Coordinate system. Can be EPSG, WKT, Proj4, and other types of coordinate characters or CoordinateReferenceSystem class.

out_crs = str||int||aclassofgmaCoordinateReferenceSystem. Default 'WGS84'.

Coordinate system. Can be EPSG, WKT, Proj4, and other types of coordinate characters or CoordinateReferenceSystem class.

Returns:

Type: array.


Last Updated 8/15/2026, 8:42:21 AM