Modify

Opened 3 years ago

Last modified 3 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 by GerdP, 3 years ago

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 by skyper, 3 years ago

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 (tomorrow). Considering the wiki Help/Concepts/Object and missing core actions are my primary goals, before I talk a look at #19504.

Version 0, edited 3 years ago by skyper (next)

comment:3 by Famlam, 3 years ago

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. 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 skyper.
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.