Skip to content

Commit d9629be

Browse files
authored
Add document for spatial filter (#48)
1 parent 316d245 commit d9629be

24 files changed

+131
-3
lines changed

docs/mkdocs-base.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,12 @@ nav:
110110
- Publishing layers in GeoServer: administrator/geoserver/publishing-layers-in-geoserver.md
111111
- Styling layers in GeoServer: administrator/geoserver/styling-layers-in-geoserver.md
112112
- Visualising GeoServer layers in QGIS: administrator/geoserver/visualising-geoserver-layers-in-qgis.md
113-
- Layer Upload and Styling:
113+
- Layer Upload, Styling, and Spatial Filter:
114114
- administrator/layer-upload/index.md
115115
- Upload Spatial Layer: administrator/layer-upload/upload-spatial-layers.md
116116
- Style Spatial Layer: administrator/layer-upload/style-editor.md
117117
- Publish Spatial Layer: administrator/layer-upload/publish-spatial-layer.md
118+
- Add Spatial Filter: administrator/layer-upload/add-spatial-filter.md
118119
- Park Layers:
119120
- administrator/park-layer/index.md
120121
- Adding a Park layer: administrator/park-layer/add-park-layer.md
Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
---
2+
title: BIMS Documentation
3+
summary: Central documentation site for BIMS projects
4+
- Ketab Bamniya
5+
- Jeremy Prior
6+
- Dimas Ciputra
7+
date: 20-03-2025
8+
some_url: https://github.com/kartoza/bims-website
9+
copyright: Copyright 2025, Kartoza
10+
contact:
11+
license: This program is free software; you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
12+
#context_id: 1234
13+
---
14+
15+
# Add Spatial Filter
16+
17+
Once you have uploaded a spatial layer, you can add it as a spatial filter for BIMS instance.
18+
19+
As an admin/super user, access the `Spatial Filters` page by clicking on 1️⃣ your username in the top right corner of any page and then click on 2️⃣ `Spatial Filters` on the dropdown menu.
20+
21+
![Add Spatial Filter 1](./img/add-spatial-filter-1.png)
22+
23+
## Add Spatial Filter Section
24+
25+
On the `Spatial Filters` page, you can add a new section, which will appear as a section tab in the map view.
26+
27+
![Add Spatial Filter 1](./img/add-spatial-filter-2.png)
28+
29+
To add a section, click on 1️⃣ the `Add new filter section` button.
30+
31+
![Add Spatial Filter 3](./img/add-spatial-filter-3.png)
32+
33+
To add a new filter section, fill in the following field:
34+
35+
1. Name – Enter the section name.
36+
37+
Once completed, click the Save button 2️⃣ to submit.
38+
39+
![Add Spatial Filter 4](./img/add-spatial-filter-4.png)
40+
41+
Your new filter section will then be added to the bottom of the list on the `Spatial Filters` page.
42+
43+
![Add Spatial Filter 5](./img/add-spatial-filter-5.png)
44+
45+
If you navigate back to the map on the BIMS instance, click 1️⃣ the `Search` button, and then click 2️⃣ `Spatial Filter`, you will see the newly created filter section.
46+
47+
![Add Spatial Filter 6](./img/add-spatial-filter-6.png)
48+
49+
If you need to change the position of your filter section in the list, go to the `Spatial Filters` page. Click and hold the drag icon, then move the section to your desired position.
50+
51+
![Add Spatial Filter 7](./img/add-spatial-filter-7.png)
52+
53+
## Add Spatial Filter Context
54+
55+
A spatial filter context refers to the items added under the `Spatial Filter section`. The system uses this context to retrieve data from the associated spatial layer.
56+
57+
For example, if you add `Sanpark boundaries` as a context 1️⃣, the system will extract Sanpark filter data using the provided key. These filters will then appear as selectable options 2️⃣ on the map.
58+
59+
![Add Spatial Filter 8-1](./img/add-spatial-filter-8-1.png)
60+
61+
![Add Spatial Filter 8-2](./img/add-spatial-filter-8-2.png)
62+
63+
To add a `Spatial Filter Context`, you first need to specify which attribute from the layer will be used to extract values. This requires adding a GeoContext key.
64+
65+
Click 1️⃣ the `GeoContext keys` button to proceed.
66+
67+
![Add Spatial Filter 9](./img/add-spatial-filter-9.png)
68+
69+
The `GeoContext Keys` modal will appear. Click the `Add New Key` button.
70+
71+
![Add Spatial Filter 10](./img/add-spatial-filter-10.png)
72+
73+
In the `Add New Key` modal:
74+
75+
- 1️⃣ Select a layer – Choose the layer you want to use. You can select your uploaded layer here.
76+
- 2️⃣ Choose an attribute – Select the attribute the system will use to extract data.
77+
78+
Once done, click `Save`.
79+
80+
![Add Spatial Filter 11](./img/add-spatial-filter-11.png)
81+
82+
Your new context key should appear here. If you want to use a different attribute for the layer, simply remove the key by clicking the wastebasket icon and add a new one.
83+
84+
![Add Spatial Filter 12](./img/add-spatial-filter-12.png)
85+
86+
Close the modal, and now you can add the new context to the Spatial Filter section.
87+
To do this, click the plus (+) button 1️⃣ in the section panel.
88+
89+
![Add Spatial Filter 13](./img/add-spatial-filter-13.png)
90+
91+
In the `Add New Context` modal, locate your newly added key using the input field 1️⃣. The field supports autocomplete, so you can start typing part of the title, and it will automatically search for matching keys.
92+
Once you've selected the key, click the `Add` button to proceed.
93+
94+
![Add Spatial Filter 14](./img/add-spatial-filter-14.png)
95+
96+
Your new context will be added to the bottom of the list.
97+
98+
To rearrange its position, simply drag the drag icon located to the left of the text.
99+
100+
![Add Spatial Filter 15](./img/add-spatial-filter-15.png)
101+
102+
When you return to the map view and open the `Spatial Filter` panel, you will see your newly added spatial filter context. However, no data will be available yet because the system hasn't harvested it.
103+
104+
You can wait for the system to harvest the data automatically, but for the current setup, it's better to trigger the harvester manually. Follow the next steps to do that.
105+
106+
![Add Spatial Filter 16](./img/add-spatial-filter-16.png)
107+
108+
As an admin/superuser, visit the following URL:
109+
110+
🔗 `https://[your-bims.site.com]/admin/bims/locationsite/`
111+
112+
This will open the Location Site Admin page.
113+
114+
Hover over the `Update GeoContext` button 1️⃣. A dropdown will appear with two options—select the second option 2️⃣ to avoid re-harvesting existing data.
115+
116+
![Add Spatial Filter 17](./img/add-spatial-filter-17.png)
117+
118+
Once selected, the button will change to `Harvesting GeoContext...` 1️⃣, indicating that the system is currently processing data from the layers for all location sites.
119+
120+
![Add Spatial Filter 18](./img/add-spatial-filter-18.png)
121+
122+
The harvesting process may take some time, depending on the number of sites in your BIMS instance.
123+
124+
To check if the process is complete, open the `Spatial Filter` panel on the map. If the sites now contain the context filter, it will be displayed there.
125+
126+
![Add Spatial Filter 19](./img/add-spatial-filter-19.png)
77.4 KB
Loading
681 KB
Loading
56.2 KB
Loading
60.7 KB
Loading
39.7 KB
Loading
68.3 KB
Loading
59.1 KB
Loading
110 KB
Loading

0 commit comments

Comments
 (0)