MarkLogic 9 Product Documentation
geo:validate-wkt

geo:validate-wkt(
   $wkt as xs:string
) as xs:boolean

Summary

Returns true if the string is valid Well-Known Text for a supported region type.

Parameters
wkt A string to validate.

See Also

Example

  geo:validate-wkt("LINESTRING(-112.25 47.1,-112.3 47.1,-112.4 47.2)")

=> true
Powered by MarkLogic Server | Terms of Use | Privacy Policy