You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/field/filtering/index.md
+13-10Lines changed: 13 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,15 @@
2
2
description: Add custom filters to sort and display only those features that you need during your field survey.
3
3
---
4
4
5
-
# Filtering Features in Mergin Maps mobile app
5
+
# Feature Filtering in Mergin Maps Mobile App
6
6
[[toc]]
7
7
8
8
Custom filters can be added to the <MobileAppNameShort /> to easily filter features displayed on the map as well as in the [survey layers](../layers/#browsing-features).
9
9
10
+
::: tip Feature filtering blog
11
+
You can read about this feature also on our blog <MainDomainNameLinkid="blog/from-wishlist-to-app-feature-filtering-is-live"desc="From wishlist to app: Feature filtering is live"/>.
12
+
:::
13
+
10
14
## Enable and define filtering in QGIS
11
15
Filters can be enabled and defined in QGIS in **Project Properties**.
12
16
@@ -29,13 +33,12 @@ You can add as many filters as you need by using the **Add filter** button.
29
33
The order of filters can be changed by selecting a filter and using the **Up** and **Down** buttons. To remove a filter, select it and click the **Remove** button.
30
34

31
35
32
-
qgis-filtering.webp
33
36
Don't forget to save your project and synchronise changes so that you can use the filters in the <MobileAppNameShort />.
34
37
35
38
36
39
### Filter types
37
40
38
-
**Text** filter uses simple text input. Results are filtered based the SQL expression `"field" ILIKE '%input%'`. Available for text and number field types.
41
+
**Text** filter uses simple text input. Results are filtered based on the SQL expression `"field" ILIKE '%input%'`. Available for text and number field types.
39
42
40
43
**Number** filter provides *from* and *to* number inputs. Results are filtered based on SQL expression `"field" >= 'input_from' AND "field" <= 'input_to'`. Available for text and number field types.
41
44
@@ -54,23 +57,23 @@ In the <MobileAppNameShort />, the filter types looks as follows:
54
57
## Filtering features in the mobile app
55
58
Filters defined in [<MainPlatformName /> project in QGIS](#enable-and-define-filtering-in-qgis) can be used in the <MobileAppNameShort />. You can filter features across multiple layers by entering or selecting values in corresponding filters. The filtering affects both the map display and the feature browsing list.
56
59
57
-
:::warning Filters reset
58
-
Filters are reset when the project is synced. Also, they do not stay saved when the app is restarted.
59
-
:::
60
+
Filters do not stay saved when the app is restarted.
60
61
61
62
Here is an example of how filtering works:
62
63
63
-
1. Tap the **Filters** button to open filters defined in the project
64
+
1. Tap the **More** button to open **Filters** defined in the project
65
+
66
+
Filtering has to be enabled in the [QGIS project](#enable-and-define-filtering-in-qgis), otherwise this option is not displayed.
64
67

65
68
66
-
2. Enter or select values in the filters. Here, we will use a *Single select* filter on the *trees* layer and select a *tree species* value from the list.
69
+
2. Enter or select values in the filters. You can use more filters at once.
67
70
68
-
You can use more filters at once.
71
+
Here, we will use a *Single select* filter on the *trees* layer and select a *tree species* value from the list.
69
72
70
73
Tap on the **Apply filters** button to confirm the filtering.
71
74

72
75
73
76
3. With active filters, only features that match the criteria are displayed on the map as well as when [browsing features](../layers/#layers-legend-and-features).
74
77
75
-
If filters are applied
78
+
You can use the active **Filters** button to quickly access filters.
76
79

0 commit comments