Modify

Opened 2 months ago

Last modified 2 months ago

#24526 new enhancement

Adding line segments at a fixed interval.

Reported by: solenoid_jam Owned by: team
Priority: normal Milestone:
Component: Plugin utilsplugin2 Version:
Keywords: Cc:

Description

To accurately work with geometry, you need to create a function for adding segments of a specified length. This is similar to how the Fast Draw plugin splits a line, but with the difference that the split length must be specified with exact numeric values. For example, 1 meter (feet), 12.4 meters (feet), 150 meters (feet). The exact segment length is specified as a number in the value input field. When this mode is enabled, all subsequent segments will have a length multiple of the specified length until it is disabled. For example, 1m, 2m, 3m, 15m, 141m, or if the segment is a multiple of 9.5m, then 19m, 28.5m, 133m, 636.5m, etc.
This feature should be a great addition to the snap-line drawing feature, as cities have many similarly sized elements, from the dimensions of typical buildings to the regular grid of streets or park paths.

Attachments (2)

1.png (7.3 KB ) - added by solenoid_jam 2 months ago.
2.png (110.4 KB ) - added by solenoid_jam 2 months ago.

Download all attachments as: .zip

Change History (9)

by solenoid_jam, 2 months ago

Attachment: 1.png added

comment:1 by GerdP, 2 months ago

I probably don't understand what you need. Can you give a real world example were you first draw a line and then decide to add a nodes with exactly the same distance? I only do this with straight lines and only to distribute n nodes equally (Shift+B)

comment:2 by GerdP, 2 months ago

Component: CorePlugin utilsplugin2

comment:3 by GerdP, 2 months ago

Or do you want to set the offset first and then, while drawing a line, the cursor will always snap to next multiple of the given length?

by solenoid_jam, 2 months ago

Attachment: 2.png added

in reply to:  2 comment:4 by solenoid_jam, 2 months ago

Replying to GerdP:
I want the line segment length to be a multiple of a specified value. When we move the cursor, the next point can be added within a specified radius at a certain step. This is similar to snapping angles (AA mode), but it affects lengths rather than angles. Both modes should work separately and together.

Imagine you need to draw a building that is 75 meters long and 15 meters wide. No more, no less. Then you could set the divisions to 1 meter, or 5 meters, or 15 meters to achieve the appropriate size. Or you could create intersections for 17 paths in a park, every 27.6 meters (or the distance you specified).
Please see the second attachment.

comment:5 by GerdP, 2 months ago

I think I understand what you want. I just never know the length or width of an object unless I draw the line and check the value in the status line. I assume you have a source that gives the distances and you want to use this knowledge as precise as possible?

comment:6 by GerdP, 2 months ago

OK, I know one use case for me: I sometimes map pipeline markers and those give one or two distances to locate a place where I want to draw a node of the pipeline. These distances are given in multiples of 10cm, so I can imagine that it could help to draw the help line(s) that I need to find the exact place relative to the marker node.

in reply to:  5 comment:7 by solenoid_jam, 2 months ago

Replying to GerdP:

Yes, this will allow us to use precise values ​​if they are known. It will also help with the placement of typical buildings or in marking out blocks if we know the distance between adjacent streets is the same.

Below are examples of places that can be improved using this tool.

https://www.openstreetmap.org/#map=18/25.168980/55.420918
https://www.openstreetmap.org/#map=18/32.130741/112.262067
https://www.openstreetmap.org/#map=15/-5.17326/-36.73926
https://www.openstreetmap.org/#map=18/48.806344/2.114165

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to solenoid_jam.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


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