注意:以下翻译的准确性尚未经过验证。这是使用 AIP ↗ 从原始英文文本进行的机器翻译。
支持于: 批处理, 流处理
将GeoJSON字符串从非WGS 84坐标系转换为WGS 84几何。对于已经在WGS 84(经度, 纬度)的GeoJSON,“逻辑类型转换”表达式可以直接转换,开销更小。解析或转换过程中失败的字符串返回null。
表达式类别: 地理空间
输出类型: Geometry
参数值:
geojson_string
geojson_string | 输出 |
---|---|
{"type":"Point","coordinates":[320000.0,4300000.0]} | {"type":"Point","coordinates":[-77.07368071728229,38.83040844313318]} |
{"type":"LineString","coordinates":[[320000.0,4300000.0],[320100.0,4300000.0]]} | {"type":"LineString","coordinates":[[-77.07368071728229,38.83040844313318],[-77.0725293738795,38.83042888342659]]} |
{"type":"Polygon","coordinates":[[[320000.0,4300000.0],[320100.0,4300000.0],[320000.0,4300100.0],[320000.0,4300000.0]]]} | {"type":"Polygon","coordinates":[[[-77.07368071728229,38.83040844313318],[-77.0725293738795,38.83042888342659],[-77.07370685720375,38.83130901341597],[-77.07368071728229,38.83040844313318]]]} |
参数值:
geojson_string
geojson_string | 输出 |
---|---|
null | null |
参数值:
geojson_string
geojson_string | 输出 |
---|---|
invalid geojson string | null |