Encode GeoJSON as Geobuf(将 GeoJSON 编码为 Geobuf)¶
Supported in: Batch, Faster, Streaming
Encodes GeoJSON geometry as Geobuf.
Expression categories: Geospatial
Declared arguments¶
- Geometry: Geometry to convert to Geobuf.
Expression\ - optional Dimensions: Number of dimensions per coordinate encoded in the Geobuf.
Expression\ - optional Precision: Number of preserved decimals after the decimal point.
Expression\
Output type: Geobuf
Examples¶
Example 1: Base case¶
Argument values:
- Geometry:
geojson - Dimensions: null
- Precision: null
| geojson | Output |
|---|---|
| {"type":"Point","coordinates": [32.0, 58.0]} | MgwIABoIgKDCHoCKqDc= |
| null | null |
| {"type":"Point","coordinates": [-73.989015, 40.753206]} | MgwIABoIre7HRuzg7iY= |
中文翻译¶
将 GeoJSON 编码为 Geobuf¶
支持:批处理(Batch)、快速处理(Faster)、流处理(Streaming)
将 GeoJSON 几何图形编码为 Geobuf。
表达式类别: 地理空间(Geospatial)
声明的参数¶
- 几何图形(Geometry): 要转换为 Geobuf 的几何图形。
表达式\ - 可选 维度(Dimensions): Geobuf 中每个坐标编码的维度数量。
表达式\ - 可选 精度(Precision): 小数点后保留的位数。
表达式\
输出类型: Geobuf
示例¶
示例 1:基本情况¶
参数值:
- 几何图形:
geojson - 维度: null
- 精度: null
| geojson | 输出 |
|---|---|
| {"type":"Point","coordinates": [32.0, 58.0]} | MgwIABoIgKDCHoCKqDc= |
| null | null |
| {"type":"Point","coordinates": [-73.989015, 40.753206]} | MgwIABoIre7HRuzg7iY= |