Modify

Opened 2 years ago

Last modified 2 years ago

#20103 new enhancement

Warn about short ways

Reported by: skyper Owned by: team
Priority: normal Milestone:
Component: Core validator Version:
Keywords: template_report short way length Cc:

Description

See my comment 4 and follow-ups on #20057 for the origin.

What steps will reproduce the problem?

  1. Have a highway=motorway with total way length of less than one meter
  2. Run validator

What is the expected result?

A (info) warning about a uncommen short way

What happens instead?

No warning

Please provide any additional information below. Attach a screenshot if possible.

MapCSS java eval expression waylength() can be used.
Can JOSM_pref(key, default) be used to set a minimum allowed length and maybe even tags to check on or tags to ignore?
I think of at least two levels as user might want to set a tiny default (0.01 meter) to not get warnings about highway=steps or waterway=stream but still handle major highways and other waterways with length below one meter.

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2020-11-17 02:38:27 +0100 (Tue, 17 Nov 2020)
Revision:17322
Build-Date:2020-11-17 02:31:05
URL:https://josm.openstreetmap.de/svn/trunk

Attachments (0)

Change History (3)

comment:1 Changed 2 years ago by GerdP

Can JOSM_pref(key, default) be used to set a minimum allowed length and maybe even tags to check on or tags to ignore?

I don't know this feature. Did you try it with validator rules?

comment:2 Changed 2 years ago by skyper

No, sorry, did not find time coding.

All these bug hunts and reproducing plus the wiki updates took time. Just found more major problems with update and conflicts, yesterday, I have to find time to report them (tomorrow). Considering the wiki, Help/Concepts/Object and missing core actions are my primary goals, before I take a look at #19504.

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

comment:3 Changed 2 years ago by Famlam

Did you try it with validator rules?

If it helps:

way[highway][waylength()<0.33] {
  throwWarning: tr("Microroad");
}

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set.
to The owner will be changed from team to the specified user.
The owner will change to skyper
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from team to anonymous.

Add Comment


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

 
Note: See TracTickets for help on using tickets.