Opened 16 years ago

Closed 16 years ago

#218 closed defect (fixed)

ExpressionEngine: Length2D() calculation is not accurate for arcs

Reported by: danstoica Owned by: danstoica
Priority: major Milestone: 3.3.0
Component: GenericRdbms API Version: 3.3.0
Severity: 3 Keywords:
Cc: External ID: 1012427

Description

The diffence came from the fact the arcs are tessellated and the length was computed by adding up the length of individual segments. The reason doing so is that the functionality to compute the radius of the circle and the orientation of the arc is not trivial and it lives in FdoSpatialUtilityCircularArc which is not exported.

Another approach is to avoid code duplication and compute the radius and the angle by using basic trigonometry on the circle. That is, the algorithm needs 2 equal adjacent segments on the circle which are provided by tessellation.

Change History (1)

comment:1 by danstoica, 16 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.