Converting an Ellipse to Points

I see the way to add a shape using points, but is there a way to get the points of an ellipse? I'm trying to perform functions on an ellipse using turf.js, but it looks like turf requires a polygon to work.

Hi there,

The entity layer doesn’t expose the vertex positions for an ellipse, and I wouldn’t recommend trying to read them from the underlying primitive.

Fortunately, the positions of an ellipse aren’t too difficult to compute. Here’s a reference: https://math.stackexchange.com/questions/22064/calculating-a-point-that-lies-on-an-ellipse-given-an-angle

Hope that helps,

  • Rachel