Transform coordinates (official datums)
transform_coordinatesConvert coordinates between CRSs as the official transformation does: GDA94 to GDA2020, MGA zones, British National Grid (OSTN15), NAD27 to NAD83 (NADCON), ITRF at an epoch, and any other EPSG pair. Uses national grids (downloaded once), refuses PROJ's ballpark approximations, and returns the operation and its stated accuracy. Use this instead of applying datum parameters yourself.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source_crs": "<source_crs>",
"target_crs": "<target_crs>",
"coordinates": "<coordinates>"
},
"name": "transform_coordinates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| epoch | No | Decimal year, for ITRF/ATRF frames | |
| source_crs | Yes | CRS name or EPSG code, e.g. 'GDA94 / MGA zone 55' or EPSG:28355 | |
| target_crs | Yes | CRS name or EPSG code, e.g. 'GDA2020 / MGA zone 55' or EPSG:7855 | |
| coordinates | Yes | [x, y] or [x, y, z]: [lon, lat] or [easting, northing] |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grids | No | Official grid files the operation used | |
| units | No | Unit of each numeric field | |
| method | Yes | The EPSG operation used | |
| status | No | ok | |
| warnings | No | Caveats to tell the user | |
| accuracy_m | Yes | The operation's stated accuracy; null for an exact conversion | |
| provenance | No | Source, licence, attribution, retrieval time and method | |
| source_crs | Yes | ||
| target_crs | Yes | ||
| area_of_use | No | ||
| coordinates | Yes | Transformed points, in the target CRS's x/y(/z) order |