﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1580	[PATCH] Create circle action	Henry Loenwind	framm	"Some people asked about an action to create a circle. Seems someone even was willing to pay a programmer. Nonsense, here it is for free:

* New file CreateCircleAction.java

* Diff for MainMenu.java to include it

* No icon, I just copied images/aligncircle.png to images/createcircle.png locally

How it works:

(a) Select exactly 3 nodes. The tool will then create a new way that will include the selected nodes and a number of new nodes, aligned in a circle.

(b) Select a way that has exactly 3 nodes. The tool will then create a number of new nodes (aligned in a circle) and put them into the existing way. The nodes in the way will be re-ordered so you'll get a circle, not a scribble ;)

(c) Default number of nodes to add is 8. So the circle will have 11 nodes (8 new at regular intervals and the 3 existing at their current positions). This can be changed by setting the configuration value ""createcircle.nodecount"" to a number between 1 and 100.

TODO:

* There is no adjustment for projection errors. However, the circles look good in Mercator projection---and that's what we usually want, isn't it?

* The ""AlignInCircle"" action has a different idea about the center of the circle. Seems to be because it just takes the average as center. I think(!) I'm right and it is wrong, but I'm not sure. Just don't use both on the same circle."	enhancement	closed	minor		Core		fixed		
