Modify

Opened 4 years ago

Closed 4 years ago

#20558 closed enhancement (needinfo)

MapCSS: is it possible to find all elements that don't have a role or aren't part of a relation?

Reported by: francians Owned by: francians
Priority: normal Milestone:
Component: Core validator Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

I'd like to write something along this line:

area:closed2[landuse] ⊈ relation[type="multipolygon"]

my end goal would combine it with something like:

relation[type="multipolygon"] >[role="outer"] way

to finally find all landuses that are not part of relation (or don't have inner role) but are subset of a way with role=outer in the same multipolygon.

What do you think?
Many thanks
Cheers
Francesco

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2020-12-28 22:03:23 +0100 (Mon, 28 Dec 2020)
Revision:17428
Build-Date:2020-12-29 02:30:53
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (17428 it) Linux Arch Linux
Memory Usage: 302 MB / 3976 MB (175 MB allocated, but free)
Java version: 15.0.2+7, N/A, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: :0.0 1920×1080 (scaling 1,00×1,00)
Maximum Screen Size: 1920×1080
Best cursor sizes: 16×16→16×16, 32×32→32×32
Desktop environment: GNOME
Environment variable LANG: it_IT.UTF-8
Dataset consistency test: No problems found

Plugins:
+ OpeningHoursEditor (35640)
+ apache-commons (35524)
+ apache-http (35589)
+ buildings_tools (35669)
+ jna (35662)
+ mapwithai (1.7.1.4)
+ reverter (35688)
+ turnrestrictions (35640)
+ utilsplugin2 (35691)
+ wikipedia (1.1.4)

Tagging presets:
+ https://raw.githubusercontent.com/yopaseopor/traffic_signs_preset_JOSM/master/IT.zip
+ ${HOME}/JOSM/Presets_NewTags/Presets_NewTags-preset.xml
+ https://raw.githubusercontent.com/osmItalia/cai_josm_preset/master/cai.xml

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Streets&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/MapWithAI&zip=1

Validator rules:
- https://josm.openstreetmap.de/josmfile?page=Rules/SuspiciousSwimming_Pool&zip=1
+ ${HOME}/git/map-this-way/MapThisWay.validator.mapcss
+ https://josm.openstreetmap.de/josmfile?page=Rules/ItalySpecific&zip=1

Last errors/warnings:
- 00390,278 E: Skipping to the next rule, because of an error:
- 00390,279 E: org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.ParseException: Encountered " ">" "> "" at line 788, column 51.
- 00393,679 E: Skipping to the next rule, because of an error:
- 00393,679 E: org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.ParseException: Encountered " "<" "< "" at line 788, column 51.
- 00641,559 E: Skipping to the next rule, because of an error:
- 00641,559 E: org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.ParseException: Encountered " ">" "> "" at line 788, column 55.
- 00657,557 E: Skipping to the next rule, because of an error:
- 00657,557 E: org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.ParseException: Encountered " ">" "> "" at line 788, column 55.
- 01448,205 E: Skipping to the next rule, because of an error:
- 01448,205 E: org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.ParseException: Encountered " ">" "> "" at line 789, column 55.

Attachments (0)

Change History (2)

comment:1 by taylor.smock, 4 years ago

Owner: changed from team to francians
Status: newneedinfo

Try using role() == null. Otherwise, you can check if a parent_tag("type") != null. But I think the first option should work.

Let us know if that works for your use case.

comment:2 by Don-vip, 4 years ago

Resolution: needinfo
Status: needinfoclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain francians.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.