Loading TOC...

geo.interiorPoint

geo.interiorPoint(
   $region as cts.region,
   [$options as String[]]
) as cts.point?

Summary

This function returns a point that is guaranteed to be inside the bounds of the given region. For a given region and set of options, the point returned should be stable from one call to the next.

Parameters
$region A cts region.
$options

Options include:

"coordinate-system=name"
Use the named coordinate system. Valid names are wgs84 for the WGS84 coordinate system and raw for the unmapped planar coordinate system
"tolerance"
A tolerance value. For the raw coordinate system, use the units of the coordinate system. For other (geodetic) coordinate systems, use the units specified by the units option. If the tolerance is too fine for the precision, inconsistencies may result and a larger tolerance should be used.
"units=miles"
Distance is measured in miles.

Example

geo.interiorPoint(cts.polygon('10,10 20,20 50,50 10,10'))

// => a cts.point with the coordinates 30,25

Comments

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