Modify

Opened 2 years ago

Closed 11 months ago

#6400 closed enhancement (worksforme)

offer option to allign nodes in a semicircle

Reported by: flaimo Owned by: flaimo
Priority: normal 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 Changed 2 years ago by olejorgenb

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 Changed 2 years ago by flaimo

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 Changed 2 years ago by olejorgenb

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 2 years ago by olejorgenb (previous) (diff)

comment:4 Changed 2 years ago by flaimo

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

comment:5 Changed 2 years ago by skyper

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 Changed 20 months ago by skyper

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 Changed 20 months ago by olejorgenb

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 Changed 12 months ago by skyper

  • Owner changed from team to flaimo
  • Status changed from new to needinfo

What is the status of this ticket ?

The original feature asked for is not mentioned any more.

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

comment:9 Changed 11 months ago by skyper

  • Resolution set to worksforme
  • Status changed from needinfo to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.