Difference between revisions of "Creating service area in QGIS"
From CUOSGwiki
Jump to navigationJump to search (Blanked the page) Tag: Blanking |
|||
(48 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | == '''Introduction''' == |
||
− | Network analyst tools |
||
− | comparing the in program tool to a plug in basic how they are different |
||
− | |||
− | == '''Data''' == |
||
− | '''Finding and downloading data''' |
||
− | For this tutorial we will be using only open data and open sourced programs. You will need to have QGIS installed to perform this tutorial. All data will come from [https://open.ottawa.ca/ Open Ottawa Catalogue]. The files you will need for this tutorial are: |
||
− | [https://open.ottawa.ca/datasets/ottawa::road-centrelines/about road-centerlines] |
||
− | [https://open.ottawa.ca/datasets/play-area-structures/explore play-area-structures] |
||
− | [https://open.ottawa.ca/datasets/ottawa-neighbourhood-study-ons-neighbourhood-boundaries-gen-2/explore ottawa-neighbourhood-study-ons-neighbourhood-boundaries-gen-2] |
||
− | |||
− | To download these files select down load or the symbol that looks like a cloud with a down arrow in it. This will open several options of formats to download the files in. You should select '''Shapefile''' |
||
− | |||
− | once all the data is downloaded create a folder in you computer to move all your data files to. Name this new folder something relevant to the tutorial so it is easy to find like NetworkAnalysis_ServiceAreasTutorial. This is to ensure you can easily all the files needed. |
||
− | |||
− | '''uploading data into QGIS''' |
||
− | To add the data in to QSIS go to the '''Layer''' tab at the top of the program select Add '''Layer > Add Vector Layer'''. This will open a menu called Data Source Manager| Vector. In this menu click the three dots symbol to browse your computer and find the files that were downloaded in the previous step. Select the '''Play_Area_-_Structures folder''' and then select the '''.shp''' file in that folder. '''Click Open'''. After this select '''Add''' at the bottom of the menu. Do this for the rest of the files downloaded in the previous step. |
||
− | <gallery> |
||
− | Tutorial_inputdata.PNG| |
||
− | </gallery> |
||
− | |||
− | == '''Part 1: QGIS Network analyst tool''' == |
||
− | What is the network analyst tool how does it work |
||
− | |||
− | == Creating Service Areas == |
||
− | Network data (deleting some roads) |
||
− | <gallery> |
||
− | Deleteroads.PNG| |
||
− | Deleteroads2.PNG| |
||
− | </gallery> |
||
− | Finding Network analyst tools |
||
− | <gallery> |
||
− | Networkanalyst_tool.PNG| |
||
− | </gallery> |
||
− | |||
− | setting Network analyst menus |
||
− | output |
||
− | Creating polygons around them |
||
− | ?dissolve |
||
− | output |
||
− | |||
− | |||
− | == '''Part 2: Valhalla Network Analyst tool''' == |
||
− | What is the Valhalla plug in how does it work |
||
− | |||
− | == Plugins == |
||
− | ==== Downloading the plugins ==== |
||
− | To start this section of the tutorial you will first need to install two plugins. To do this you will go to Plugins tab at the top of the QGIS program and select manage and install plugins. In the search bar of the menu that opens type in '''QucikMapServices''' and select '''install'''. This plug in will allow us to put a base map of the city into our map. Then in the same menu search for '''Valhalla''' and install this plugin as well. |
||
− | <gallery> |
||
− | basemapplugin.PNG |QuickMapServices Plugin |
||
− | ValhallaPlugin.PNG |Valhalla Plugin |
||
− | </gallery> |
||
− | == Creating Service Areas == |
||
− | ==== Creating a mapbox account and and API key ==== |
||
− | Before you will be able to use this tool you must create a mapbox account to obtain an API tool. To create an account go to [https://www.mapbox.com/ Mapbox] and select sign up at the top of the page. Once you create and account and log in it will take you to a page that at the bottom will have a box that say "Access token". Select Create a token. <br> |
||
− | In the page you are taken to you will see you must create a name for your token. You may call this whatever you like. For example call it Tutorial. <br> |
||
− | After you create your token copy it by clicking the small clipboard symbol beside it and go back to QGIS.<br> |
||
− | ==== Inputting API key ==== |
||
− | You must input your token to run any Valhalla tools. This is just to keep track of who is using the tool. To do this you must select the '''Web''' tab go to '''Valhalla''' and then '''click Valhalla'''. In the menu that opens click the gear looking symbol. This will open a menu called '''Provider Settings'''. In this menu select '''Mapbox''', which should be the second option in the menu, and past your token into the section that says '''API Key''' and click OK. You may now close the Valhalla menu you have open |
||
− | <gallery> |
||
− | API.png| |
||
− | </gallery> |
||
− | ==== Using Valhalla tools ==== |
||
− | To open the Valhalla tool go to the processing tab and select tool box (you can skip this step if you already have the tool box open). You should now be able to scroll to find Valhalla or you can search for it at the top of the processing tool box. |
||
− | <gallery> |
||
− | Findingvalhalla.PNG| |
||
− | </gallery> |
||
− | Setting up the menus |
||
− | <gallery> |
||
− | valhalla.PNG| |
||
− | </gallery> |
||
− | output |
||
− | ==== Heading text ==== |
||
− | save as |
||
− | dissolve together |
||
− | <gallery> |
||
− | Dissolve1.PNG| |
||
− | </gallery> |
||
− | trouble shoot fix geometry |
||
− | set symbology |
||
− | <gallery> |
||
− | symbology4.PNG| |
||
− | </gallery> |
||
− | output |
||
− | |||
− | == '''Conclusion''' == |
||
− | comparing out puts from both tools |
||
− | strengths and weaknesses from both tools |
||
− | uses for these tools and their outputs |