Modify ↓
#18106 closed defect (fixed)
Unexpected results from UnconnectedWays
Reported by: | GerdP | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 19.09 |
Component: | Core validator | Version: | |
Keywords: | template_report | Cc: |
Description
What steps will reproduce the problem?
- Load attached file uncon3.osm
- Run validator
- Note that you get only one warning "Way end node near other highway (1)" for the topmost node
- Revert the direction of the residential road or remove the node in the lower left or the next one or both
- Run validator again for each case, note that now no warning is produced
What is the expected result?
Same number of warnings in all cases, not sure if 0 or 2
What happens instead?
One or no warning depending on direction or nodes which are far from the problem case.
Please provide any additional information below. Attach a screenshot if possible.
Problem is caused by an error in Node.isConnectedTo() which doesn't seem to do what the comment says. The result depends on the number of ways and the direction.
URL:https://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2019-08-26 08:55:27 +0200 (Mon, 26 Aug 2019) Build-Date:2019-08-26 06:57:10 Revision:15322 Relative:URL: ^/trunk Identification: JOSM/1.5 (15322 en) Windows 10 64-Bit OS Build number: Windows 10 Home 1903 (18362) Memory Usage: 645 MB / 1820 MB (125 MB allocated, but free) Java version: 1.8.0_221-b11, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM Screen: \Display0 1920x1080 Maximum Screen Size: 1920x1080 VM arguments: [-XX:StartFlightRecording=name=MyRecording2,settings=d:\dbg\gerd.jfc, -XX:FlightRecorderOptions=defaultrecording=true,dumponexit=true,dumponexitpath=e:\ld\perf_20190903_155936.jfr] Dataset consistency test: No problems found Plugins: + OpeningHoursEditor (34977) + apache-commons (34908) + buildings_tools (34982) + continuosDownload (82) + ejml (35049) + geotools (34908) + jaxb (35014) + jts (35064) + o5m (34908) + opendata (35102) + pbf (35033) + poly (34991) + reverter (35084) + undelete (34977) + utilsplugin2 (35098) Validator rules: + c:\josm\core\data\validator\geometry.mapcss Last errors/warnings: - W: No configuration settings found. Using hardcoded default values for all pools.
Attachments (1)
Change History (6)
by , 5 years ago
Attachment: | uncon3.osm added |
---|
comment:1 by , 5 years ago
comment:2 by , 5 years ago
Component: | Core → Core validator |
---|
comment:4 by , 5 years ago
Milestone: | → 19.09 |
---|
Note:
See TracTickets
for help on using tickets.
Other problems with the current implementation:
Working on a patch, also for #18051. I am still trying to understand the code, the results of the test changed heavily over the years and I am not sure what to keep and what to throw away.