-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
51 lines (51 loc) · 7.11 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<h1>Search Layers Plugin</h1>
<p>The Search Layers plugin features enhanced textual vector layer searching in QGIS. It provides the ability to search across all layers and all fields. It also features a Fuzzy Search algorithm.</p>
<p>Search Layers is located in the QGIS Plugins menu under <em>"Plugins->Search Layers->Search Layers"</em> or by selecting the tool bar icon. <img src="icon.png" width="24" height="24"></p>
<p>The following dialog box is displayed when "Search Layers" is first launched.</p>
<p><img alt="Search Layers Dialog" src="doc/layersearch.jpg" /></p>
<h2>Search criteria options</h2>
<p>Under <strong>Search criteria</strong>, you can enter up to two search strings. The <strong>NOT</strong> check box will negate the search results for the applicable string.</p>
<p>Under each search string text box a drop down menu specifies how the search string is to match the contents in the attribute table. The options are: </p>
<ul>
<li><strong>equals</strong> - This requires an exact match.</li>
<li><strong>contains</strong> - This looks for a field that contains the search string.</li>
<li><strong>begins with</strong> - This search finds any field that begins with the search string.</li>
<li><strong>ends with</strong> - This search finds any field that ends with the search string.</li>
</ul>
<p><strong>Case sensitive</strong> - When checked the search string must match that of the attribute text case. by default it is unchecked and does a case independent search.</p>
<p><strong>Constrain two search strings to match within an attribute field rather than across attribute fields</strong> - This will constrain the search criteria when two search strings are used to match within an attribute field; otherwise, one string may match one attribute field and the other string may match another attribute field. The results are either <strong>AND</strong>ed or <strong>OR</strong>ed together. Here is an example of a two string search.</p>
<p><img alt="Search Layers Dialog" src="doc/layersearch2.jpg" /></p>
<h2>Additional options</h2>
<p><strong>Search Layers</strong> specifies what layers will be in the search.</p>
<ul>
<li><em><All Layers></em> - All vector layers will be searched whether they are visible or not.</li>
<li><em><Selected layers></em> - All the selected layers in the Layers panel will be searched whether they are visible or not.</li>
<li><em><Visible layers></em> - All visible layers will be searched.</li>
<li><em><Project layers></em> - All layers specified through the project variable <strong>searchlayers-plugin</strong> will be searched (see below). Defaults to <em><All Layers></em> if the project variable is not set. </li>
<li><em>A specific layer</em> - Any of the vector layers in the QGIS project can be selected. When one is selected, then <strong>Search Fields</strong> will be enabled and by default <em><All Fields></em> will be displayed, but any field can be chosen from the layer and the search will only search on that layer and field. The list of selectable layers can be constrained via the project variable <strong>searchlayers-plugin</strong> (see below).</li>
</ul>
<p><strong>Constrain searchable layers via project variable</strong>
You can constrain the list of selectable layers via the project variable <strong>searchlayers-plugin</strong>. The <strong><em>Value</em></strong> of the variable is specified as 'layer-name,layer-name,... '. Layer names that do not exist will be ignored.</p>
<p><img alt="Specify by variable" src="doc/variable.png" /></p>
<p>You can add the project variable by selecting <strong><em>Settings->Options...</em></strong> from the QGIS menu and then selecting the <strong><em>Variables</em></strong> tab on the left. You click on the bottom right green plus sign to add a new variable. Type in <strong>searchlayers-plugin</strong> in the first column and then the comma separated layer list in the second column.</p>
<p><strong>Constrain search to canvas extent</strong> - Checking this box will constrain the search to look for features that are within the current canvas window view. If you are only interested in the features in the canvas view, this will greatly speed up the search.</p>
<p><strong>Report one result per feature</strong> - It is possible that a search string could match the contents in one or more attribute fields. By checking this, only the first match per feature will be reported.</p>
<p><strong>Only search selected features</strong> - When checked, the features that are selected in QGIS will be the only ones searched. This is one way to limit a search to a particular area. Note that with this checked, the normal interaction of clicking on a found feature in the list will not select the feature for obvious reasons; however, the zoom or pan to actions will still apply.</p>
<p><strong>Zoom action when selecting features below</strong> - When matches are found and are clicked on this affects that action that takes place.</p>
<ul>
<li><strong>Do nothing</strong> - No action takes place.</li>
<li><strong>Zoom to selected features</strong> - QGIS will zoom in on the selected features.</li>
<li><strong>Pan to selected features</strong> - QGIS will pan to the selected features.</li>
</ul>
<p>The selected feature(s) will be highlighted unless <strong>Only search selected features</strong> has been checked. Shift->Click will highlight a range of features. Use Ctrl->Click to toggle whether a feature is selected or not. </p>
<p><strong>Results -> Layers</strong> - Clicking on this button will export all the found results into new virtual layer. It is advised to install the <strong><em>Memory Saver Plugin</em></strong> to prevent these layers from disappearing after closing the project.</p>
<p><strong>Search</strong> - Clicking on this button will begin the search. In the case of a large data set, clicking on <strong>Abort</strong> will halt the process. The search will stop after finding 2000 matches.</p>
<p>Note that the search is very quick when selecting a single vector layer under <strong>Search Layers</strong> and a single field under <strong>Search Fields</strong>. If this is not the case, regular expression searches are used and are slow. In the future this may change.</p>
<h2>Open the search results feature's attribute form</h2>
<p>If you right-mouse click on a search results entry, a context menu titled <strong>Open Record Form</strong> will be displayed.</p>
<p><img alt="Search Layers Dialog" src="doc/layersearch4.jpg" /></p>
<p>Clicking on <strong>Open Record Form</strong> will display the feature's attributes. If the layer is in edit mode, then you can modify the feature's attributes and save them. If it is not in edit mode, you will be able to view them but not edit them.</p>
<p><img alt="Search Layers Dialog" src="doc/featureform.jpg" /></p>
<h2>Fuzzy search</h2>
<p>This QGIS plugin makes use of two fuzzy search algorithms. One is based off of the <strong><em>Levenshtein</em></strong> algorithm and the other is a <strong><em>Soundex</em></strong> algorithm. The soundex is really only useful for matching single words that sound the same. This is a screen shot.</p>
<p><img alt="Search Layers Dialog" src="doc/layersearch3.jpg" /></p>