Loading TOC...

geo.validateWkt

geo.validateWkt(
   $wkt as String
) as Boolean

Summary

Test a WKT string for validity in a MarkLogic context. Returns true if the input string is valid Well-Known Text for a supported region type.

Parameters
$wkt A string containing the WKT (Well Known Text) representation of geospatial data.

Usage Notes

This function returns false if the WKT input is invalid or cannot be parsed into regions supported by MarkLogic.

See Also

Example

var geo = require("/MarkLogic/geospatial/geospatial");

geo.validateWkt('LINESTRING(-112.25 47.1,-112.3 47.1,-112.4 47.2)')

==> true
  

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy