Changes between Version 19 and Version 82 of Help/Dialog/Filter

(multiple changes)
(multiple changes)
(multiple changes)


  • Help/Dialog/Filter

    v19 v82  
    1 [[TranslatedPages]]
     1[[TranslatedPages(outdated= This page is incomplete. See "TODO"s. Screenshot is outdated.)]]
     2[[PageOutline(2-9,Table of Contents)]]
    3 = Filter dialog =
     4= Filter panel =
    5 [[Image(source:/trunk/images/dialogs/filter.png)]] ''Keyboard shortcut:''''' {{{Alt+Shift+F}}}'''
     6[[JOSMImage(dialogs/filter,middle,48,link=,margin-right=20)]] ''Keyboard shortcut:'' '''{{{Alt+Shift+F}}}''' — one of the [wikitr:/Help/ToggleDialogs#Toactivateawindow JOSM panels]
     8The filter panel allows the user to temporarily disable and optionally hide certain types of [wikitr:/Help/Concepts/Object objects] based on one (or multiple) filters.
     11== Filtered objects ==
     12* not selectable using [wikitr:/Help/Action/Select selection tools] (with few minor exceptions in #4929, see [ticket:4929#comment:14 comment 14])
     13* not returned during [wikitr:/Help/Action/Search Search] action
     14* will disappear from several menus until filters are disabled ([wikitr:/Help/Dialog/SelectionList#SmalltriangleinSelectbutton example])
    9 The filter dialog allows the user to temporarily hide from display certain types of objects on the JOSM screen. The usage is to enter any property or just text in the text box. Objects complying with that text or property will be hidden on your JOSM screen. This allows for easier editing in crowded areas. The 4 selection options are used when multiple filter lines are active. The filter lines are evaluated from top down, using the selection properties that are active for the appropriate filter line. A filter with mode ''R'' will effectively disable all filters above, while a filter with mode ''D'' will un-filter all elements matched, but only those that has been filtered by the ''above'' filters. You most likely want mode ''A''. Filters with this mode are independent of each other. (I'm not sure how ''F'' works?)
    11 If any filter is active, a transparent message box will appear so you don't forget.
     17== Use cases ==
     18Simple usage is to enter single tag (or more complex expression similar to search) in "Text" column: objects complying with that text will be disabled.
    13 === How to activate ===
    14 Click on the [[Image(source:/trunk/images/dialogs/filter.png)]] symbol on the lower left of the main window. If the symbol is not there, check if your JOSM version is >= 3189. If it is still not visible, you can try setting {{{displayfilter=true}}} in the advanced preferences (and restart).
     20More complex scenarios include filters as quick way to develop and test custom [wikitr:/Rules validator rules].
    16 === Options ===
     22=== Usability ===
     23* De-clutter main view by (de-)activating features only when you need them. This allows for easier editing in areas with densely located objects or infrastructure.
     24* Completely hide features you don't use.
     25* Avoid unnecessary or accidental edits.
     27=== Productivity ===
     28* Disable/separate objects that were fully tagged (using tag count and custom filters) from incomplete objects
     29* Disable recently modified objects (and it is irrelevant: if it modified by you or another person)
     30* Untagged objects {{{untagged}}} can be used instead of Notes at [osmwww:]. It is faster than to set/remove {{{fixme=resurvey}}} - please don't overuse this principle
     32=== Overview ===
     33The filter lines are evaluated from top down, with respect to values in [#Columns Columns].
     37=== Columns ===#Columns
    1838 * '''E''' (''Enable''): Enable or disable this filter line.
    19  * '''H''' (''Hide elements''): If this option is ticked, the chosen objects are completely hidden. Otherwise they are disabled and shown in a shade of gray.
    20  * '''Text''': The search term or property that defines the objects that are filtered.
     39 * '''H''' (''Hide elements'' from [wikitr:/Help/MapView main view]): normally, all matched objects are disabled, but you can completely hide them:
     40  * disabled - visible and displayed as grey
     41  * hidden - the chosen objects are completely hidden
     42 * '''Text''': The search term or property that defines the objects that are filtered. Every search query from [wikitr:/Help/Action/Search Search] action is supported:
     43  * standard substring search (or exact search with "quotes")
     44  * Regular expressions ([ Java Regex])
     45  * MapCSS syntax
    2146 * '''I''' (''Inverse Filter''): Normally, the specified objects are hidden and the rest is shown. If this option is activated, only the specified objects are shown and the rest is hidden.
    22  * '''M''' (''Filter Mode''): One of the following: ''R: replace selection'', ''A: add to selection'', ''D: remove from selection'', ''F: find in selection''. This mode selector defines how a filter is combined with the previous filter.
    23 The filter '''Mode''' options are set in the pop-up window, where you will also enter the search text. A number of examples is provided. The ''E'' till ''I'' options are selected in the Filter box (normally at the right of your screen) by ticking the appropriate box. Note that the text line above the click boxes may contain dots in your particular version of JOSM. This will probably be fixed.
    24 The order of the ticks from left to right means: Enable this filter line / Hide the filtered items / Your search-filter text / The inverse filter / Mode letter.
     47 * '''M''' (''Filter Mode'') - how a ''filter line'' is combined with ''filter lines'' above ''filter line'' in question:
     48  * R (''replace selection'') - effectively disable all ''filter lines'' above
     49  * A (''add to selection'') - most users want this, ''filter lines'' with this mode are independent of each other
     50  * D (''remove from selection'') - un-filter all elements matched
     51  * F (''find in selection'') - TODO
    26 === Examples ===
    27 ||Filter text                                                                  ||Description||
    28 ||{{{ ((landuse:|natural:|leisure:|building:) | (role:outer|role:inner))}}}    ||De-clutter the map. Doesn't handle relations perfectly||
    29 ||{{{ -highway: | type:node }}}                                                ||De-clutters map||
    30 ||{{{ type:node & untagged }}}                                                 ||Make it easier to select ways||
    31 ||{{{ modified }}}                                                             ||Quickly see your changes||
    32 ||{{{ child (type:way & highway:) }}}                                          ||All nodes that's part of a highway||
    33 ||{{{ child (type:relation & (natural:|landuse:)) }}}                          ||All natural and landuse areas formed by relations||
    34 ||{{{ -((highway | child highway | untagged | public_transport) & -(highway=footway | highway=path | highway=steps | highway=track)) }}} || Only roads for public transport. Good for mapping bus networks.||
     53The list can by ordered by clicking on the table headers.
    36 If you have some clever filters, add them here.
     55=== Control buttons ===
     56TODO explain 7 buttons.
    38 == Regular Expressions ==
     58=== Keyboard shortcuts ===
     59Additional to the checkbox in the filter panel, enabling or disabling filters is possible with keyboard shortcuts. `Ctrl+Alt+E` plus `[1-9,0,A-Z]` toggles the corresponding filter on or off, counting from the top of the list. If unsure, `Ctrl+Alt+E` only, without addition, will show a list of available shortcuts.
    40 The filter supports Java Regex. For detailed Information see
     62== Filter warning ==
     63[[Image(filters warning.png,link=,right,margin-left=20,margin-right=100)]]
     65If any filter is active, and at least one object was filtered, a transparent message box will appear in the top right corner of [wikitr:/Help/MapView main view].
     66 The message has the title **Filter active** and displays the number of disabled objects.
     69== Examples ==#Examples
     70||= Filter text =||= Description or note =||
     71|| `((landuse: | natural: | leisure: | building:) | (role:outer | role:inner))` || Doesn't handle relations perfectly ||
     72|| `shop=* opening_hours=*` || shop= + opening_hours= tagged objects ||
     73|| `shop=* name=*` || shop= + name= tagged objects ||
     74|| `type:node -shop=*` || All nodes except shops. Geometry modification using mouse move disabled, but possible using other modes (ex. - [wikitr:/Help/Action/ImproveWayAccuracy Improve Way Accuracy mode] (`W`)) ||
     75|| `(type:node | type:way | type:relation) (modified | user:Steve)` || Hide objects if you are the latest editor (useful during mass re-tagging and semi-mechanical edits) ||
     76|| `-highway:` || Everything except highway= tagged objects ||
     77|| `man_made=pipeline` || Pipelines ||
     78|| `natural=water` || Water objects ||
     79|| `admin_level:` || Admin boundaries ||
     80|| `boundary: | leisure: | landuse: | waterway: | amenity: | natural: | building:` || De-clutters map, aggressive (sometimes you may want to keep buildings or amenity key) ||
     81|| `type:node & untagged` || Make it easier to select ways ||
     82|| `modified` || Quickly see your changes ||
     83|| `child (type:way & highway:)` || All nodes that's part of a highway ||
     84|| `child (type:relation & (natural: | landuse:))` || All natural and landuse areas formed by relations ||
     85|| `-((highway | child highway | untagged | public_transport) & -(highway=footway | highway=path | highway=steps | highway=track))` || Only roads for public transport. Good for mapping bus networks. ||
     87See also other [wikitr:/Help/Action/Search#Examples examples]. If you have some clever filters, add them here.
     90== Auto filters ==#Autofilters
     91Auto filters automatically adds filter buttons in the top left corner of the [wikitr:/Help/MapView map view] for special keys. This needs to be enabled in the [wikitr:/Help/Preferences/Display#OSMData Display settings]. These buttons only appear if there is at least one object tagged with the respective tag within the mapview. See the following screencast on how to enable and use the filter buttons. Above the filter buttons the key which is currently used for the autofilter is displayed (not yet shown in the screencast). A click on that button leads to the preferences where you can change the key.
    43 Back to [wiki:/Help/ToggleDialogs Toggle Dialogs][[BR]]
    44 Back to [wiki:/Help Main Help]
     97Back to [wikitr:/Help/ToggleDialogs Sidebar] \\
     98Back to [wikitr:/Help/Menu/Windows Windows menu] \\
     99Back to [wikitr:/Help Main Help]