[Script] WME Tools (WMET) v0.3.4 / 2013-12-27

Discussion for the unofficial, community-developed addons, extensions and scripts built for the Waze Map Editor.

The official index of these tools is the Community Plugins, Extensions and Tools wiki page.

Moderators: Unholy, bextein

Forum rules
Discussion for the unofficial, community-developed addons, extensions and scripts built for the Waze Map Editor.

DO NOT START a new thread unless it is about a new idea. Keep discussion of existing tools within the main thread for that tool.

The official index of these tools is the Community Plugins, Extensions and Tools wiki page.

Re: [Script] WME Mass Edit Tool (WMET)

Postby berestovskyy » Sun Sep 15, 2013 3:51 pm

petervdveen wrote:Nxxx roads should be minor for example.
Of Major roads locked at lv4, freeway at lv5.

Try the following code:
Code: Select all
if('Belgium' == segment.country)
{
    if(segment.isTypeOf('major'))
        segment.lock = 4;
    else if(segment.isTypeOf('freeway'))
        segment.lock = 5;

    if(-1 != segment.street.search(/^N\d+[a-zA-Z]?\b/))
        segment.type = 'minor';
}

It will lock and change the type in one run. If a road name starts with a capital N following by few digits and one optional letter at the end then the road type will be changed to Minor Highway if I get you correctly.

Please double check the changes.
berestovskyy
 
Posts: 844
Joined: Fri Jul 15, 2011 1:50 pm
Has thanked: 259 times
Been thanked: 711 times

Re: [Script] WME Mass Edit Tool (WMET)

Postby petervdveen » Sun Sep 15, 2013 5:28 am

mrgrumpy wrote:Its not though, is it.

Right now it isn't, but there also is no download link ;-)
petervdveen
Coordinators
Coordinators
 
Posts: 10075
Joined: Wed Mar 03, 2010 4:43 pm
Location: Netherlands
Has thanked: 602 times
Been thanked: 1459 times

Re: [Script] WME Mass Edit Tool (WMET)

Postby sketch » Sat Sep 14, 2013 9:52 pm

What it definitely shouldn't be is open source, and definitely not in here. Remove the explanations from this forum and include instructions either only in PM to champs or on the global champs forum.

And I agree that it seems too easy to mess up. Make a GUI for it and include confirmation prompts that make you type in a three-letter code before doing any big edit.


Sent from my iPhone using Tapatalk 2
sketch
Waze Global Champs
Waze Global Champs
 
Posts: 6007
Joined: Sat Aug 08, 2009 6:13 pm
Location: New Orleans, LA
Has thanked: 1479 times
Been thanked: 2024 times

Re: [Script] WME Mass Edit Tool (WMET)

Postby petervdveen » Sat Sep 14, 2013 9:46 pm

If it stays in the champs forum, then I don't see a real problem.
petervdveen
Coordinators
Coordinators
 
Posts: 10075
Joined: Wed Mar 03, 2010 4:43 pm
Location: Netherlands
Has thanked: 602 times
Been thanked: 1459 times

Re: [Script] WME Mass Edit Tool (WMET)

Postby dmcconachie » Sat Sep 14, 2013 9:31 pm

petervdveen wrote:I think it has a lot of potention.
We've done a lot of requests for database changes.

Nxxx roads should be minor for example.
Of Major roads locked at lv4, freeway at lv5.

It never happened.
Now we could do it ourselves ;-)
This isn't in question but something like this will not stay in good hands. The potential for devastation is more important than the potential for good that it has.
dmcconachie
 
Posts: 6117
Joined: Sat May 22, 2010 11:44 pm
Location: Edinburgh, UK
Has thanked: 106 times
Been thanked: 310 times

Re: [Script] WME Mass Edit Tool (WMET)

Postby petervdveen » Sat Sep 14, 2013 9:28 pm

I think it has a lot of potention.
We've done a lot of requests for database changes.

Nxxx roads should be minor for example.
Of Major roads locked at lv4, freeway at lv5.

It never happened.
Now we could do it ourselves ;-)
petervdveen
Coordinators
Coordinators
 
Posts: 10075
Joined: Wed Mar 03, 2010 4:43 pm
Location: Netherlands
Has thanked: 602 times
Been thanked: 1459 times

Re: [Script] WME Mass Edit Tool (WMET)

Postby orbitc » Sat Sep 14, 2013 9:19 pm

AlanOfTheBerg wrote:The usefulness is potentially there, but like ethics of some types of genetic engineering like cloning, for example, I think the potential for mass problems from a tool like this is simply so great, that just because it can be done, doesn't mean it should be done, even if used by only a limited group of people. The map simply doesn't need to be mass updated in this manner. Just do the work and don't worry about doing it faster or easier.

I applaud the effort and technical skill required to pull off something like this, but I would rather see it not implemented. Unfortunately, this well-thought-restricted-distribution by the OP, which is very much appreciated, thank you!, the next coder interested in amassing points and nothing else, will not be no ethical about it.


+1
orbitc
Master Raider
Master Raider
 
Posts: 5928
Joined: Mon Jun 25, 2012 1:51 pm
Location: USA
Has thanked: 2256 times
Been thanked: 4925 times

Re: [Script] WME Mass Edit Tool (WMET)

Postby AlanOfTheBerg » Sat Sep 14, 2013 9:16 pm

The usefulness is potentially there, but like ethics of some types of genetic engineering like cloning, for example, I think the potential for mass problems from a tool like this is simply so great, that just because it can be done, doesn't mean it should be done, even if used by only a limited group of people. The map simply doesn't need to be mass updated in this manner. Just do the work and don't worry about doing it faster or easier.

I applaud the effort and technical skill required to pull off something like this, but I would rather see it not implemented. Unfortunately, this well-thought-restricted-distribution by the OP, which is very much appreciated, thank you!, the next coder interested in amassing points and nothing else, will not be no ethical about it.
AlanOfTheBerg
Waze Global Champs
Waze Global Champs
 
Posts: 23613
Joined: Sat Aug 28, 2010 8:48 pm
Location: US Country Manager - Oregon, USA
Has thanked: 1126 times
Been thanked: 4791 times

Re: [Script] WME Mass Edit Tool (WMET)

Postby dmcconachie » Sat Sep 14, 2013 9:10 pm

It needs to not exist at all. The scope for accidental destruction is too great.
dmcconachie
 
Posts: 6117
Joined: Sat May 22, 2010 11:44 pm
Location: Edinburgh, UK
Has thanked: 106 times
Been thanked: 310 times

Re: [Script] WME Mass Edit Tool (WMET)

Postby orbitc » Sat Sep 14, 2013 9:06 pm

argus-cronos wrote:I've played little bit around with the script this afternoon with not saving anything at all, and i must admit that it has enormous potential and on the other hand enormous potential to harm the map. I was a little bit shocked to see what is possible with this and what would be if an editor is messing up the code and hit save after only one function i.e. abbreviations, unbeliebable what all can be screwed up in a short time. So it is definitely better to never share it to the mass. The fact that it is not fully userfriendly makes it more dangerous.
I hope it will be used wisely from those who have the code until now.


Very dangerous indeed. It should not be distributed at all until some safe guards in place. Also it needs to be user friendly at the very least to prevent accidental saves that would cause more damage than good.
orbitc
Master Raider
Master Raider
 
Posts: 5928
Joined: Mon Jun 25, 2012 1:51 pm
Location: USA
Has thanked: 2256 times
Been thanked: 4925 times

PreviousNext

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: Moquehue