Supported in: Batch, Streaming
Applies a translation to a geometry. Two dimensional geometries are only converted to three dimensional geometries if a z offset is supplied.
Expression categories: Geospatial
Output type: Geometry
Argument values:
geometry
geometry | Output |
---|---|
{"type":"Point","coordinates":[0.0, 0.0]} | {"type":"Point","coordinates":[1.0, -1.0]} |
{"type":"LineString","coordinates":[[0.0, 0.0], [1.0, 1.0]]} | {"type":"LineString","coordinates":[[1.0, -1.0], [2.0, 0.0]]} |
{"type":"Polygon","coordinates":[[[0.0, 0.0],[1.0, 0.0],[1.0, 1.0],[0.0, 1.0], [0.0, 0.0]]]} | {"type":"Polygon","coordinates":[[[1.0, -1.0],[2.0, -1.0],[2.0, 0.0],[1.0, 0.0],[1.0, -1.0]]]} |
Argument values:
geometry
geometry | Output |
---|---|
{"type":"Point","coordinates":[0.0, 0.0]} | {"type":"Point","coordinates":[1.0, -1.0, 1.0]} |
{"type":"LineString","coordinates":[[0.0, 0.0], [1.0, 1.0]]} | {"type":"LineString","coordinates":[[1.0, -1.0, 1.0], [2.0, 0.0, 1.0]]} |
{"type":"Polygon","coordinates":[[[0.0, 0.0],[1.0, 0.0],[1.0, 1.0],[0.0, 1.0], [0.0, 0.0]]]} | {"type":"Polygon","coordinates":[[[1.0, -1.0, 1.0],[2.0, -1.0, 1.0],[2.0, 0.0, 1.0],[1.0, 0.0, 1.0],[1.0, -1.0, 1.0]]]} |
Argument values:
geometry
geometry | Output |
---|---|
{"type":"Point","coordinates":[0.0, 0.0, -1.0]} | {"type":"Point","coordinates":[1.0, -1.0, 0.0]} |
{"type":"LineString","coordinates":[[0.0, 0.0, -1.0], [1.0, 1.0, -1.0]]} | {"type":"LineString","coordinates":[[1.0, -1.0, 0.0], [2.0, 0.0, 0.0]]} |
{"type":"Polygon","coordinates":[[[0.0, 0.0, -1.0],[1.0, 0.0, -1.0],[1.0, 1.0, -1.0],[0.0, 1.0, -1.0],[0.0, 0.0, -1.0]]]} | {"type":"Polygon","coordinates":[[[1.0, -1.0, 0.0],[2.0, -1.0, 0.0],[2.0, 0.0, 0.0],[1.0, 0.0, 0.0],[1.0, -1.0, 0.0]]]} |
Argument values:
geometry
geometry | Output |
---|---|
{"type":"Point","coordinates":[-77.0, 20.0]} | {"type":"Point","coordinates":[-76.99902180032066, 19.99820455178219]} |
Argument values:
geometry
geometry | Output |
---|---|
null | null |