Supported in: Batch, Streaming
Convert GeoJSON string from a non-WGS 84 coordinate system to WGS 84 geometry. For GeoJSON already in WGS 84 (longitude, latitude), the "logical type cast" expression can convert directly with less overhead. Returns null for strings that fail during parsing or conversion.
Expression categories: Geospatial
Output type: Geometry
Argument values:
geojson_string| geojson_string | Output |
|---|---|
| {"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]]]} |
Argument values:
geojson_string| geojson_string | Output |
|---|---|
| null | null |
Argument values:
geojson_string| geojson_string | Output |
|---|---|
| invalid geojson string | null |