coord_transform_crs
Convert coordinates between any two coordinate reference systems, from national grids to Web Mercator. Get the PROJ transformation used, its accuracy, and any missing grid files.
Instructions
Transform coordinates between any two coordinate reference systems.
For national grids (EPSG:27700 British National Grid, EPSG:2154 Lambert-93, State Plane), Web Mercator (EPSG:3857) and any other EPSG-registered CRS.
Reports the transformation PROJ used for this point and its published accuracy. ballpark=true means no published transformation links the two datums, so the shift was ignored: expect tens to hundreds of metres of error. When a more accurate transformation needs a grid file that is not installed, missing_grids names it.
Inputs and outputs are always x/easting first, y/northing second, regardless of the axis order the CRS authority declares.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Easting or longitude, in the source CRS units. | |
| y | Yes | Northing or latitude, in the source CRS units. | |
| source_crs | No | Source CRS, e.g. 'EPSG:4326'. | EPSG:4326 |
| target_crs | No | Target CRS, e.g. 'EPSG:27700'. | EPSG:3857 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| meta | Yes | ||
| source | Yes | ||
| target | Yes | ||
| ballpark | Yes | ||
| pipeline | Yes | ||
| accuracy_m | Yes | ||
| source_info | Yes | ||
| target_info | Yes | ||
| missing_grids | No |