Is valid GeoJSON

Supported in: Batch, Streaming

Returns true if the input is a valid GeoJSON input string. Not all GeoJSON strings are indexable by the ontology; use the "normalize geometry" expression to prepare geometry prior to Ontology use.

Expression categories: Geospatial

Declared arguments

  • Expression - GeoJSON to check. Note that not all GeoJSON strings are indexable by the Ontology; use the "normalize geometry" expression to prepare geometry prior to Ontology use.
    Expression<String>

Output type: Boolean

Examples

Example 1: Base case

Argument values:

  • Expression: geoJson
geoJsonOutput
{"type":"Point","coordinates":[3.0, 5.0, 2.0]}true
{"type":"Polygon","coordinates":[[[0.0,0.0],[1.0,0.0],[0.0,1.0],[0.0,0.0]]]}true
{"type":"LineString","coordinates":[[0.0,0.0],[1.0,0.0]]}true
not a GeoJSON stringfalse