Geometry set z-coordinate(设置几何体 Z 坐标(Geometry set z-coordinate))¶
Supported in: Batch, Faster, Streaming
Sets the z-coordinate of a geometry. If the geometry has an existing z-coordinate it will be overwritten.
Expression categories: Geospatial
Declared arguments¶
- Geometry: Geometry.
Expression\ - Z coordinate: Z-coordinate.
Expression\
Output type: Geometry
Examples¶
Example 1: Base case¶
Argument values:
- Geometry:
geometry - Z coordinate:
zCoordinate
| geometry | zCoordinate | Output |
|---|---|---|
| {"type":"Point","coordinates":[1.0, 2.0]} | 1.0 | {"type":"Point","coordinates":[1.0, 2.0, 1.0]} |
| {"type":"Point","coordinates":[1.0, 2.0, 3.0]} | 1.0 | {"type":"Point","coordinates":[1.0, 2.0, 1.0]} |
Example 2: Null case¶
Argument values:
- Geometry:
geometry - Z coordinate:
zCoordinate
| geometry | zCoordinate | Output |
|---|---|---|
| null | 0.0 | null |
| {"type":"Point","coordinates":[1.0, 2.0]} | null | {"type":"Point","coordinates":[1.0, 2.0]} |
中文翻译¶
设置几何体 Z 坐标(Geometry set z-coordinate)¶
支持:批处理(Batch)、快速处理(Faster)、流处理(Streaming)
设置几何体的 Z 坐标。如果几何体已有 Z 坐标,则会被覆盖。
表达式类别: 地理空间(Geospatial)
声明的参数¶
- 几何体(Geometry): 几何体。
表达式\ - Z 坐标(Z coordinate): Z 坐标。
表达式\
输出类型: Geometry
示例¶
示例 1:基础情况¶
参数值:
- 几何体:
geometry - Z 坐标:
zCoordinate
| geometry | zCoordinate | 输出(Output) |
|---|---|---|
| {"type":"Point","coordinates":[1.0, 2.0]} | 1.0 | {"type":"Point","coordinates":[1.0, 2.0, 1.0]} |
| {"type":"Point","coordinates":[1.0, 2.0, 3.0]} | 1.0 | {"type":"Point","coordinates":[1.0, 2.0, 1.0]} |
示例 2:空值情况¶
参数值:
- 几何体:
geometry - Z 坐标:
zCoordinate
| geometry | zCoordinate | 输出(Output) |
|---|---|---|
| null | 0.0 | null |
| {"type":"Point","coordinates":[1.0, 2.0]} | null | {"type":"Point","coordinates":[1.0, 2.0]} |