Is valid MGRS

Supported in: Batch, Streaming

Returns true if the input is a valid MGRS (military grid reference system) string.

Expression categories: Geospatial

Declared arguments

  • Expression - String following an MGRS (military grid reference system) format.
    Expression<String>

Output type: Boolean

Examples

Example 1: Base case

Argument values:

  • Expression: mgrs
mgrsOutput
not an mgrs valuefalse
4Q FJfalse
1 6false
4Qfalse
4Q FJ 1false

Example 2: Base case

Argument values:

  • Expression: mgrs
mgrsOutput
4Q FJ 1 6true
4Q FJ 12345 67890true

Example 3: Null case

Argument values:

  • Expression: mgrs
mgrsOutput
nullfalse