Ticket #218 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

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

Changed 5 years ago by danstoica

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.