[Script] WME Road Selector

Do you sometimes need select multiple segments based on some condition?
This script does this work for you.

WME Road Selector
https://greasyfork.org/scripts/3462-wme-road-selector
Current version: 1.50

(unavailable attachment: Road_Selector.jpg)

Description of some conditions:

I hope the other conditions are clear and they don’t need any description.

Script allows selecting segments, which are selectable manually. This means it does not select segments on lower zooms (3 or less).

3 Likes

Looks fun!

.

Great tool! Any chance of an option to save a few presets?

Sent from my SPH-L300 using Tapatalk

I plan to add this feature in next version.

Good.

Nice! I like the option to limit the selection to the visible screen, I’m missing this option in the toolbox. Is the script restricted to area managers and up? I think it should.

Toolbox has the possibility to show In Screen column but Toolbox has another philosophy for segment section. It makes grouping and you can select groups. For some task is Toolbox philosophy better for some it the Road Selector better and sometimes is sufficient the new WME functionality “Select entire street”

WME Road Selector is not restricted to some user only. The script doesn’t change anything therefore cannot make anything wrong.
I don’t like any restriction policy for scripts. I wrote the first version of the script few months ago as L2 editor this means I would disable the script for myself :-).
Additionally it is technically impossible to disable some script distributed as source code.

I too initially thought that it was limited to AM and above because when I tried to select “Unnamed” it would not select anything.

The only way I can get it to select unnamed roads is if I set it to select “Street includes (”“)” and then it selects everything on the screen.

The question is what you mean with “Unnamed”.
The condition “Unnamed segment” select segments where name was never assigned. Such segments has red color and they are reported by Validator as “Unconfirmed road”.
The selection you described selects segments with empty street name. It is different condition.

There is another usage of the condition “Unnamed segment”. In combination with “Alternate name (City or Street)” it selects segments with/without alternate name.

I would like to be able to select segments with no name, but do not appear as unconfirmed.

In this case is your condition the right one.

I don’t understand what you’re saying.

I’d like to be able to select roads that are not red, but do not have a name, so that I can, for example, change them to parking lot or private.

The right condition is in this case:
Street = “”

When I did that, it selected every segment on the screen, but I just tried it again and it seemed to work.

Meh, still not working right.
I selected the above to correct a parking lot at Zoom=5, and when I zoomed out, I found that everything on the screen without a name out to zoom-4 had been selected.
I cleared that, selected “On Screen” AND “Street=(”“)” and it would not select anything.

This is dangerous in the lands of an inexperienced editor as it is.

Yes. If you want to select only the currently visible segments you have to use the AND “On Screen” condition.
Without this condition it selects from the segments it has currently it buffer. It is not entire map :slight_smile: but it is bigger area than the screen. It depends on you zoom and previous actions. In most of cases, you don’t need take care about the area because the condition is more specific. If you want to be sure what was selected you can use the AND “On Screen” condition or zoom out after selection and check it.
I don’t think it is dangerous.

But when I selected “AND On Screen” it selected nothing.
No change other than adding “AND On Screen”

I’ve replicated the problem.
This was working before therefore I might be some change in WME. I will debug and correct it (I hope :-)).

I’ve released the new version 0.6 where the problem with the On Screen condition is corrected.

The WME function onScreen for segments I used for checking doesn’t work anymore. I had to write my own check.
It is hard live of script programmers using undocumented and unsupported API :-).