Modify

Opened 13 years ago

Closed 12 years ago

#6400 closed enhancement (worksforme)

offer option to allign nodes in a semicircle

Reported by: flaimo Owned by: flaimo
Priority: normal Milestone:
Component: Core Version: tested
Keywords: Cc:

Description

pressing "o" orders selected nodes in a circle. it would be great so have something like that for semicircles too. the two nodes which are farthest apart are the diameter, the other nodes get aligned in a semicircle to the left or right. this would really help when drawing houses or swimming pools which aren't square at one end.

Attachments (0)

Change History (9)

comment:1 by olejorgenb, 13 years ago

You could take a look at this new plugin: http://wiki.openstreetmap.org/wiki/JOSM/Plugins/Curves

Documentation is sparse, and I'm sure there's bugs, but it's a start :)

comment:2 by flaimo, 13 years ago

seems to work fine so far. one bug i noticed is, that when selecting three nodes from a closed way and then using the plugin, the original line between the three nodes doesn't get removed after the semicircle has been drawn.

comment:3 by olejorgenb, 13 years ago

If you select the way too, the nodes should be fused with the selected way. But suggestions for behavior is welcome.

Now it works roughly like this:
The order of the selected nodes determine which arc is created.

  1. Only 3 nodes selected: A brand new way forming the arc (determined by the selection order) is created.
  2. One way selected: The arc is "fused" into the selected way. The 3 last nodes in the way are used.
  3. One way and 3 nodes (in that way) selected: The arc is "fused" into the selected way at the position of the selected nodes.

If multiple ways share the nodes in 2 or 3, these ways are modified too.

Currently the middle node is moved so the nodes in the arc are proportionally distributed.

Last edited 13 years ago by olejorgenb (previous) (diff)

comment:4 by flaimo, 13 years ago

ok, i see. maybe you should add that to the wiki page. thanks for plugin.

comment:5 by skyper, 13 years ago

Hi olejorgenb

Thanks for the plugin.
I have a problem with 3.:

If the 3 nodes are not consecetive in the selected way only new arc nodes are created but the way is not fused.

r4125, o1.6.0_24-b07, openjdk

comment:6 by skyper, 13 years ago

Tried the plugin again, but it does not work. See #6826.

I also stumbled over #2891 which has some interesting features. May you will have a look on it.

Cheers

comment:7 by olejorgenb, 13 years ago

Only needed a rebuild due to recent changes in JOSM (i18n, removed tr(String) since tr(String, Object .. args) does the same thing)

I will check out #2891. Should really try to get some JOSM work done soon. Have been slacking :)

comment:8 by skyper, 12 years ago

Owner: changed from team to flaimo
Status: newneedinfo

What is the status of this ticket ?

The original feature asked for is not mentioned any more.

Last edited 12 years ago by skyper (previous) (diff)

comment:9 by skyper, 12 years ago

Resolution: worksforme
Status: needinfoclosed

The curves plugin was depreciated. Its arc function was included to UtilsPlugin2.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain flaimo.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.