Step 1: Enable the Python Console on QGIS
On the top panel of your QGIS application, select Plugins > Python Console.
Step 2: Enable the Editor
Click on the 'Show Editor' icon to view the Python editor interface.
Step 3: Load ur-scape data import tool script
Click on the 'Open Script' icon to load the ur-scape data import tool script.
Step 4: Load polygon vector data
Add your polygon shapefile by dragging it from the Browser panel to the Layers panel.
Step 5: Define output path (line 4 of script)
Define the full folder path to where you would like to save the output files in line 4 of the Python script.
If you will be handling multiple data sets in the same location, it is recommended to key in a path directory straight to where ur-scape and the files are saved - i.e. the 'Data' folder (C:/ur-scape/Application/Data).
Important Note: On copying the folder path from your Windows Explorer, the path will contain backslashes (\) by default, which is not recognised by the script. You will be required to change the backslashes to forward slashes (/).
Step 6: Define name of layer (line 5 of script)
Define the name of the data layer in line 5 of the Python script. Do note that the layer name should be in camel case (e.g. Drainage Capacity).
Step 7: Identify the field you would like to visualise.
Step 8: Define name of field (line 6 of script)
Type the name of the field you would like to visualise (identified in the above step) in line 6 of the Python script. Note that the spelling of the field must be identically spelled according to the field name in the attribute table.
Step 9: Define resolution (line 7 of script)<
ur-scape data is visualised as dots or rather cells, each containing a value. This resolution refers to the size of these cells.
The following resolution are available, and should be selected according to the scale of the data.
0 = Neighbourhood (10 x 10m)
1 = City (100 x 100m)
2 = Metropolitan (300 x 300m)
3 = National (30 seconds; equals ~1x1km)
4 = Continental (300 seconds; equals ~10x10km)
5 = Global (30 min; equals ~50x50km)
Step 10: Define metadata (lines 10-15 of script)**
Key in the units, location and date of the data layer. You may set the colour of the layer in line 14 if you set the output path you set in Step 5 to the ur-scape 'Data' folder.
Step 11: Run Script**
Click on the 'Run Script' icon to begin.