I have been having a go at drawing a regular polygon, in this example a hexagon, on a map. Not a big one, only 400m radius. I am using the haversine (great circle) formula to generate the points of the polygon from a centre point of coordinates.

The use of the haversine formula seems to be causing a problem in that the polygon is stretched/squashed, and not regular.

RegularPolygon.aia (4.9 KB)

I have tried modifying the distance for each point, but this just produces an oddly shaped polygon, or exacerbates the squashing.

I have either missed something, or work is needed either on the formula or elsewhere ? Do I really need a flat earth solution ?

Any help or suggestions much appreciated.