geo:ellipse-polygon( $center as cts:point, $semi-major-axis as xs:double, $semi-minor-axis as xs:double, $azimuth as xs:double, $arc-tolerance as xs:double, [$options as xs:string*] ) as cts:region
Construct a polygon approximating an ellipse.
tolerance
, then they are considered to be the
same point. The arc-tolerance
parameter specifies the
allowable error in the polygon approximation. That is, the resulting
polygon will differ from the provided ellipse by at most
arc-tolerance
.
The arc-tolerance
parameter value should be greater than
the tolerance, and both arc-tolerance
and tolerance
should be expressed in the same units. For example, if the units
option is set to "km" and you're using a geodetic coordinate system, then
arc-tolerance
and tolerance
(if specified) should
also be in kilometers. The default tolerance is 0.05km (or the equivalent in
other units). Use the tolerance
option to override the default.
The value of the precision
option takes precedence over
that implied by the governing coordinate system name, including the
value of the coordinate-system
option. For example, if the
governing coordinate system is "wgs84/double" and the precision
option is "float", then the operation uses single precision.
geo:ellipse-polygon(cts:point(1,1),4,2,math:pi() div 2.0,1,("tolerance=0.1")) => A cts:region with the following coordinates: 1,1.0582174 0.97955137,1.0411657 0.97108173,0.99999946 0.97955191,0.95883381 1,0.94178247 1.0204481,0.95883381 1.0289183,0.99999946 1.0204486,1.0411657 1,1.0582174
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.