For Data Analysts
who want to dynamically find similarities in attributes across geographic data,
the EZTracker
is an interactive plugin in QGIS
that highlights polygons that fall within an attribute value range similar to a user-selected polygon.
Unlike a static map that displays data ranges throughout the region,
our product allows a user to click the target polygon, providing a dynamic view of similar polygons
which supports our strategy to visualize data and better inform data analysts
- Download the file eztracker.zip
- Open QGIS
- Plugins>Manage and Install Plugins
- Click on Install from ZIP tab
- Click on the “...” button and navigate to extracker.zip
- Click Install Plugin
- You will now find the plugin on the plugin toolbar
- Download the file eztracker.zip
- Extract folder to one of the options below, whereUSER_NAME is the actual account
name on the computer
a) PC:
C:\Users\USER_NAME\AppData\Roaming\QGIS\QGIS3\profiles\default\pyt
hon\plugins
b) MAC: /Users/USER_NAME/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/ - Open QGIS.
- Click on Plugins>Manage and Install Plugins>
- Click on Installed Tab.
- Select EZTracker.
- Click close.
- You will now find the plugin under the plugin toolbar.
- Click on the EZTracker plugin.
- Load one or more polygonal .shp files into the layers window and set one as active.
- Select a numerical attribute from the drop-down menu. If no attributes are listed then there are no numerical attributes for that .shpfile.
- Select a number for the bound. This number will be added and subtracted to the largest and smallest attribute values acquired from the polygon selections.
- Click one or more polygons from the active layer and all polygons containing attribute values that fall within the bound will be highlighted. When multiple polygons are selected, all polygons containing an attribute value in between the attributes of the selections will be highlighted.
- Clicking outside the layer will remove all polygon selections and highlights.
- To change the layer you are working with, set the desired layer as active.
- When you update the Attribute Value Range, the QGISmap will not display the update to the highlights until it is clicked on. It is recommended to do so using a middle mouse button as this will not affect the current selections made by the user. If you prefer, you may reselect the yellow polygons by clicking on them to see the updated result.
- Once you have the similar features that are desired, click the ‘Select Folder’ button and select the location you wish to have the file saved.
- Enter a name for the file. If left blank nothing will happen. If the file name already exists in the location, the original file will be overwritten.
- Click Save as Style.
- This output is saved as a .qml file. This is saving the rule symbology that creates the output viewed on the map. It is important to note that the .qml file needs to be saved near to the .shp file used to create it.
- First load in the .shp file that was used to create the output.
- Right-click on the layer and click Properties
- Click Symbology
- In the Symbology tab, at the bottom of the window click Style.
- Click Load Style.
- Click on the ‘...’ next to File.
- Navigate to the desired .qml file that was previously saved
- Click Load Style
- Click apply
Figure 1: One Selection with a Bound
Figure 2: Four Selections with no Bound
Figure 3: Two Selections with no Bound and AttributeList
Figure 4: Radio Button folder selection
Figure 5: The File Name and Saved Output
In Figure 1, you can see that Franklin County was selected along with the Percent of Democratic voters in the numerical attribute Combobox with a bound of .1 meaning 10% in our data. Thus, all counties containing plus or minus10% of the democratic votes as Franklin County was highlighted.
In Figure 2, you can see four counties in central Ohio were selected but no bounds, thus the bounds will be the highest and lowest attribute values(in this case percentages again) from the selection. So all highlighted counties fall within the voting percentages of the four selected counties. Giving a higher bound would highlight even more counties that fall within the natural extents plus and minus the bound.
In Figure 3, you can clearly see that all the area IDs in between the selection are highlighted. Also, the drop-down for the numerical attributes is shown.
In Figure 4, you see the result of clicking on the radio button next to the save button. This pulls up a file explorer and the user then clicks on choose folder once they find the area to save.
In Figure 5, you see that the user gave the output a valid name and hit save after choosing a folder. The output is clearly saved in the selected folder with the given name as a QML file.
Any feedback is welcome and you can send it here.