Alexander Bruy 2655f3125f update bearing and transform expression functions to accept either string
representing CRS authid or CRS object
2025-02-14 08:48:38 +10:00

22 lines
698 B
Plaintext

{
"name": "transform",
"type": "function",
"groups": ["GeometryGroup"],
"description": "Returns the geometry transformed from a source CRS to a destination CRS.",
"arguments": [{
"arg": "geometry",
"description": "a geometry"
}, {
"arg": "source_auth_id",
"description": "the source CRS definition or CRS object"
}, {
"arg": "dest_auth_id",
"description": "the destination CRS definition or CRS object"
}],
"examples": [{
"expression": "geom_to_wkt( transform( make_point(488995.53240249, 7104473.38600835), 'EPSG:2154', 'EPSG:4326' ) )",
"returns": "'POINT(0 51)'"
}],
"tags": ["crs", "source", "transformed", "destination", "reprojection"]
}