How can I detect round objects with JOSM? If necessary I would even write my own plugin. Let's say that round buildings normally have > 15 edges, but other buildings can have this too. Is there any trick how to detect buildings with many identical angles near 180 °?
asked
Druzhba |

Maybe this ticket is related: https://josm.openstreetmap.de/ticket/16283
answered
qeef |

One neat fact about circles is that they have the smallest possible perimeter (circumference) for their area of any shape. The area of a circle = (perimeter ^ 2) / (4 * pi). So if you find the area and perimeter of a given shape, you can calculate the following ratio: (perimeter ^ 2) / (4 * area). For a circle, this ratio will be pi. For a square, it will be 4. For approximate circles like those in OSM, it will be somewhere between. The more circular the shape, the closer to pi. If you do write a plugin, you could configure it for a range, say between pi and 3.25, and find shapes within that range. ...However, calculating the area of a shape defined by an arbitrary set of node coordinates can be a little complex, so if you don't have a built in routine for this calculation you might want to do something simpler. You could find the maximum distance between any two points in the shape and compare Note that, depending on the range of ratio values you decide to consider circular, these techniques will
answered
jmapb |

Not sure I have understood your question. Do you mean draw a true circular shape? Not used JOSM much but thought it must have a tool for it. I searched and found this https://learnosm.org/en/josm/josm-tools/
answered
andy mackey |

This seems interesting.

+1

Maybe this ticket is related: https://josm.openstreetmap.de/ticket/16283