Difference between revisions of "QGIS/C2/Coordinate-Reference-Systems/English"
Snehalathak (Talk | contribs) (Created page with "{|border=1 ||'''Visual Cue''' ||'''Narration''' |- || '''Slide Number 1''' '''Title Slide''' || Welcome to this tutorial on '''Coordinate Reference System '''in''' QGIS'''....") |
Nancyvarkey (Talk | contribs) m (Nancyvarkey moved page QGIS/C2/Co-ordinate-Reference-Systems/English to QGIS/C2/Coordinate-Reference-Systems/English without leaving a redirect) |
||
(9 intermediate revisions by 3 users not shown) | |||
Line 6: | Line 6: | ||
'''Title Slide''' | '''Title Slide''' | ||
− | || Welcome to this tutorial on '''Coordinate Reference System '''in''' QGIS'''. | + | || Welcome to this tutorial on '''Coordinate Reference System''' in ''' QGIS'''. |
|- | |- | ||
Line 14: | Line 14: | ||
|| In this tutorial, we will learn to, | || In this tutorial, we will learn to, | ||
− | Add layers to '''projections''' in '''QGIS'''. | + | * Add layers to '''projections''' in '''QGIS'''. |
− | View '''metadata''' information for layers. | + | * View '''metadata''' information for '''layers'''. |
− | Save selected features from a '''layer''' to a new '''layer''' | + | * Save selected features from a '''layer''' to a new '''layer'''. |
− | + | ||
− | + | ||
+ | * Re-project and overlay '''data layers''' of different '''projections''' together. | ||
|- | |- | ||
Line 29: | Line 28: | ||
|| To record this tutorial I am using, | || To record this tutorial I am using, | ||
− | '''Ubuntu Linux OS '''version | + | * '''Ubuntu Linux OS''' version 16.04 |
− | '''QGIS''' version 2.18 | + | * '''QGIS''' version 2.18 |
|- | |- | ||
Line 38: | Line 37: | ||
'''Pre-requisites''' | '''Pre-requisites''' | ||
− | + | * '''Basic knowledge about GIS'''. | |
− | '''Basic knowledge about GIS | + | * Please view pre-requisite tutorial in this series. |
− | + | || To follow this tutorial you should have basic knowledge about '''GIS'''. | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | || To follow this tutorial you should have basic knowledge about '''GIS | + | |
− | + | ||
Please view previous tutorial in this series. | Please view previous tutorial in this series. | ||
− | |||
− | |||
− | |||
|- | |- | ||
Line 60: | Line 49: | ||
|| About '''Coordinate Reference Systems''', | || About '''Coordinate Reference Systems''', | ||
+ | '''Coordinate Reference Systems''' are of two types, | ||
− | + | * '''Geographic coordinate system''', and | |
− | + | * '''Projected Coordinate System''' | |
− | + | ||
− | '''Geographic coordinate system''' | + | |
− | + | ||
− | + | ||
− | '''Projected Coordinate System''' | + | |
− | + | ||
− | + | ||
− | + | ||
|- | |- | ||
Line 76: | Line 58: | ||
'''Coordinate Reference systems''' | '''Coordinate Reference systems''' | ||
− | ||Most widely used geographic coordinate system | + | ||Most widely used '''geographic coordinate system''' is '''WGS 84'''. |
− | + | ||
− | + | ||
− | + | ||
+ | Most widely used '''projected coordinate system''' is '''UTM'''. | ||
|- | |- | ||
|| Click on '''QGIS''' icon to open the interface. | || Click on '''QGIS''' icon to open the interface. | ||
− | |||
Cursor on Canvas. | Cursor on Canvas. | ||
|| Here I have opened '''QGIS''' interface. | || Here I have opened '''QGIS''' interface. | ||
− | + | On the '''canvas''', world map with country administration boundaries is displayed. | |
− | On the canvas world map with country administration boundaries is displayed. | + | |
|- | |- | ||
Line 96: | Line 74: | ||
'''World Map File''' | '''World Map File''' | ||
− | || Demonstration on how to download the map | + | || Demonstration on how to download the map and display in '''QGIS''' is explained in the prerequisite tutorial. |
− | + | ||
− | + | ||
− | and display in QGIS is explained in the prerequisite tutorial. | + | |
− | + | ||
Please view the pre-requisite tutorial. | Please view the pre-requisite tutorial. | ||
− | + | This file can also be downloaded from the '''Code files''' link. | |
− | This file can also be downloaded from the | + | |
|- | |- | ||
|| Cursor on '''layers panel on '''name of the map file. | || Cursor on '''layers panel on '''name of the map file. | ||
− | || On the left-side of the canvas,you will see '''Layers Panel''', | + | || On the left-side of the '''canvas''', you will see '''Layers Panel''', with file name of the world map as a '''layer'''. |
− | + | ||
− | with file name of the world map as a layer. | + | |
− | + | ||
|- | |- | ||
Line 118: | Line 88: | ||
|| By default '''Layers Panel''' is enabled here. | || By default '''Layers Panel''' is enabled here. | ||
− | + | If not, we can enable or disable the '''Layers Panel''' using '''View''' menu. | |
− | If not, we can enable or disable the '''Layers Panel '''using '''View''' menu. | + | |
|- | |- | ||
|| Click on '''View''' tool on the Tool bar. | || Click on '''View''' tool on the Tool bar. | ||
− | |||
− | |||
− | |||
|| Click on '''View''' menu on the '''menu''' bar. | || Click on '''View''' menu on the '''menu''' bar. | ||
− | |||
Scroll down and select '''Panels '''option. | Scroll down and select '''Panels '''option. | ||
|- | |- | ||
− | || Scroll down and select '''Panels '''option. | + | || Scroll down and select '''Panels''' option. |
From the sub-menu, click on '''Layer Panel'''. | From the sub-menu, click on '''Layer Panel'''. | ||
− | || Sub-menu shows a list of panel names. | + | || Sub-menu shows a list of '''panel''' names. |
− | + | Click on '''Layer Panel''' option to enable or disable the '''panel'''. | |
− | Click on '''Layer Panel''' option to enable or disable the panel. | + | |
|- | |- | ||
|| Drag the boundary with the mouse. | || Drag the boundary with the mouse. | ||
− | || We can adjust the size of the panel by dragging the boundary. | + | || We can adjust the size of the '''panel''' by dragging the boundary. |
|- | |- | ||
|| Right-click on the layer name in''' Layers Panel.''' | || Right-click on the layer name in''' Layers Panel.''' | ||
− | + | || If you wish to change the color of the map, right-click on the '''layer''' name in the '''Layers Panel.''' | |
− | + | ||
− | + | ||
− | || If you wish to change the color of the map, | + | |
− | + | ||
− | + | ||
− | + | ||
|- | |- | ||
+ | || Scroll-down the '''context menu''' >> select '''Styles''' option. | ||
|| Scroll-down the '''context menu''' and select '''Styles''' option. | || Scroll-down the '''context menu''' and select '''Styles''' option. | ||
− | + | |- | |
− | Rotate the vertex of the color triangle to choose the color. | + | ||Rotate the vertex of the color triangle to choose the color. |
− | || | + | ||Sub-menu shows a color triangle . |
− | + | ||
− | + | ||
− | Sub-menu shows a color triangle . | + | |
− | + | ||
Choose the color by rotating the vertex of the color triangle. | Choose the color by rotating the vertex of the color triangle. | ||
Line 169: | Line 124: | ||
|- | |- | ||
|| Click anywhere on the canvas. | || Click anywhere on the canvas. | ||
− | || Click anywhere on the canvas to close the context menu. | + | || Click anywhere on the '''canvas''' to close the context menu. |
|- | |- | ||
− | || Cursor on''' Coordinate label '''and text box. | + | || Cursor on''' Coordinate label ''' and text box. |
− | + | || At the bottom-left corner, on the '''status''' bar of '''QGIS''' window, you will notice the label '''Coordinate ''' and a text box with numbers. | |
− | + | ||
− | + | ||
− | || At the bottom-left corner, on the status bar | + | |
− | + | ||
− | + | ||
− | you will notice the label '''Coordinate '''and a text box with numbers. | + | |
|- | |- | ||
|| Highlight X and Y coordinates. (Editing stage) | || Highlight X and Y coordinates. (Editing stage) | ||
− | || Values of '''X ''' and '''Y''' | + | || Values of '''X ''' and '''Y coordinates''' for a particular location are shown in this text box. |
|- | |- | ||
|| Move the cursor over the map. | || Move the cursor over the map. | ||
− | |||
− | |||
− | |||
|| Move the cursor over the map. | || Move the cursor over the map. | ||
− | + | Observe, that the values of '''X''' and '''Y coordinates''' change with location of the cursor. | |
− | Observe, that the values of X and Y coordinates change with | + | |
|- | |- | ||
Line 203: | Line 148: | ||
|- | |- | ||
− | || Point towards '''EPSG:4326(OTF) ''' | + | || Point towards '''EPSG:4326(OTF)''' at the bottom-right corner of the status bar. |
− | || On the '''status bar''', at the bottom-right corner, | + | || On the '''status bar''', at the bottom-right corner, you will see another label, '''Current CRS''' |
− | + | ||
− | + | ||
− | you will see another label, '''Current CRS | + | |
Line 218: | Line 160: | ||
|- | |- | ||
|| Right click on the Layers Panel, '''ne_10m_admin_0_countries''' | || Right click on the Layers Panel, '''ne_10m_admin_0_countries''' | ||
− | + | || On the '''Layers Panel''', right-click on the '''layer''' name. | |
− | + | ||
− | + | ||
− | || On the '''Layers Panel''', | + | |
− | + | ||
− | + | ||
− | right-click on the layer name. | + | |
|- | |- | ||
|| From the context menu, select '''Properties'''. | || From the context menu, select '''Properties'''. | ||
− | |||
− | |||
− | |||
|| From the context menu, select '''Properties'''. | || From the context menu, select '''Properties'''. | ||
Line 237: | Line 170: | ||
|- | |- | ||
− | || Click on '''Metadata''' option in Layer dialog-box. | + | || Click on '''Metadata''' option in '''Layer''' dialog-box. |
− | Click on | + | Click on back arrow next to properties. |
Scroll down. | Scroll down. | ||
Line 247: | Line 180: | ||
Under '''Properties '''section, scroll down the slider. | Under '''Properties '''section, scroll down the slider. | ||
− | |||
− | |||
− | |||
|- | |- | ||
|| Point to heading, '''Layer Spatial Reference System.''' | || Point to heading, '''Layer Spatial Reference System.''' | ||
− | |||
Point to '''WGS84'''. | Point to '''WGS84'''. | ||
− | |||
− | |||
− | |||
|| At the bottom, | || At the bottom, | ||
− | + | under heading, '''Layer Spatial Reference System,''' | |
− | + | ||
− | + | ||
− | + | ||
you will see the definition for this projection. | you will see the definition for this projection. | ||
− | |||
It shows '''WGS84 '''as '''geographic coordinate system.''' | It shows '''WGS84 '''as '''geographic coordinate system.''' | ||
Line 272: | Line 194: | ||
|- | |- | ||
|| Click '''Ok''' button | || Click '''Ok''' button | ||
− | || Click on '''Ok''' button, to close the dialog box. | + | || Click on '''Ok''' button at the bottom, to close the dialog box. |
|- | |- | ||
|| | || | ||
− | || Let us now add layers to the map and change the '''projection'''. | + | || Let us now add '''layers''' to the map and change the '''projection'''. |
|- | |- | ||
Line 284: | Line 206: | ||
|| About '''data layers'''. | || About '''data layers'''. | ||
− | + | * Usually '''geographical data''' is stored in '''layers''' in a '''GIS''' workspace. | |
− | + | ||
− | Usually geographical data is stored in layers in a '''GIS''' workspace. | + | * Each '''layer''' has '''data''' stored in its '''attribute table'''. |
− | + | ||
− | Each layer has data stored in its '''attribute table'''. | + | * Many '''layers''' can represent '''data''' of the same geographical location. |
− | + | ||
− | Many layers can represent data of the same geographical location. | + | |
− | + | ||
− | + | ||
|- | |- | ||
Line 303: | Line 221: | ||
− | This operation is called '''Re-Projection | + | This operation is called '''Re-Projection'''. |
+ | Instead of re-projecting the entire '''layer''', we will re-project some features. | ||
− | + | |- | |
+ | || On top-right corner of the tool bar >> click on '''Select features by area or single click '''tool. | ||
+ | || On top-right corner of the tool bar, click on '''Select features by area or single click '''tool. | ||
|- | |- | ||
− | || | + | ||Click on the black triangle next to this tool. |
− | + | ||Click on the black triangle next to this tool. | |
− | + | ||
− | + | ||
− | + | ||
− | Click on the black triangle next to this tool | + | |
− | + | ||
− | + | ||
− | + | ||
− | || | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | Click on the black triangle next to this tool. | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
+ | |- | ||
+ | ||Drop down >> choose '''Select features'''. | ||
+ | ||From the drop down choose '''Select features'''. | ||
|- | |- | ||
|| On the canvas, on the world map, click on '''United States of America.''' | || On the canvas, on the world map, click on '''United States of America.''' | ||
− | || On the world map displayed on canvas, | + | || On the world map displayed on '''canvas''', click on the '''United States of America''' feature to select it. |
− | + | Note that, the '''United States of America''' is shown in a different color. | |
− | + | ||
− | + | ||
− | Note that, | + | |
− | + | ||
− | + | ||
|- | |- | ||
|| Cursor on the map. | || Cursor on the map. | ||
− | || We will now change the '''projected coordinate system''' of this layer and save. | + | || We will now change the '''projected coordinate system''' of this '''layer''' and save. |
+ | |- | ||
+ | || Right click on, | ||
− | + | '''ne_10m_admin_0_countries''' | |
− | + | || Right-click on the '''layer''' name in the '''Layers Panel'''. | |
− | + | ||
− | + | ||
− | || Right-click on the layer name in the '''Layers Panel'''. | + | |
|- | |- | ||
|| Click on '''Save As''' option | || Click on '''Save As''' option | ||
− | || Scroll down, | + | || Scroll down, select '''Save As''' option. |
|- | |- | ||
− | || '''Save Vector Layer as ''' | + | || '''Save Vector Layer as '''dialog box opens. |
+ | || '''Save Vector Layer as... '''dialog box opens. | ||
+ | The default '''format '''option is '''ESRI Shapefile.''' | ||
− | + | Leave it as such. | |
− | + | ||
− | + | ||
− | + | ||
|- | |- | ||
|| Click on '''Browse''' button. | || Click on '''Browse''' button. | ||
− | || Click on '''Browse button '''next to '''File name '''text box. | + | || Click on '''Browse button''' next to '''File name '''text box. |
|- | |- | ||
|| '''Save layer as... '''dialog-box opens. | || '''Save layer as... '''dialog-box opens. | ||
− | In the name text box type the layer as '''USA-1.shp.''' | + | In the name text box, type the '''layer''' as '''USA-1.shp.''' |
|| '''Save layer as... '''dialog-box opens. | || '''Save layer as... '''dialog-box opens. | ||
− | Name the output layer as '''USA-1.shp.''' | + | Name the output '''layer''' as '''USA-1.shp.''' |
− | + | ||
− | + | ||
− | + | ||
|- | |- | ||
Line 391: | Line 286: | ||
Click on '''Save''' button. | Click on '''Save''' button. | ||
|| Find a suitable location to save. | || Find a suitable location to save. | ||
− | |||
I will save it on '''Desktop''' | I will save it on '''Desktop''' | ||
− | + | Click on '''Save''' button at the bottom. | |
− | Click on '''Save''' button. | + | |
|- | |- | ||
Line 403: | Line 296: | ||
Point to '''File name '''text box. | Point to '''File name '''text box. | ||
− | || In the '''Save Vector Layer | + | || In the '''Save Vector Layer as....''' dialog-box, the '''file path''' appears in the '''File name''' text box. |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|- | |- | ||
− | || Click select CRS button next to CRS text box. | + | || Click select '''CRS''' button next to '''CRS''' text box. |
− | + | || We will choose the new '''projection''' for this '''layer'''. | |
− | + | ||
− | + | ||
− | || We will choose the new projection for this layer. | + | |
Line 422: | Line 306: | ||
|- | |- | ||
− | || In the '''Coordinate Reference System Selector''' dialog box, | + | || In the '''Coordinate Reference System Selector''' dialog box, type '''North America''' |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|| In the '''Coordinate Reference System Selector''', | || In the '''Coordinate Reference System Selector''', | ||
− | + | in the '''Filter search box''', enter '''North America''' | |
− | + | ||
− | + | ||
|- | |- | ||
− | || Click | + | || Click |
− | + | '''North_America_Albers_Equal_Area_Conic''' | |
− | + | || Under '''Coordinate reference systems''' of the world, | |
− | + | under heading '''Projected Coordinate System, ''' | |
− | + | scroll through the results. | |
− | || Under '''Coordinate reference systems''' of the world, | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
+ | Select, | ||
+ | '''North_America_Albers_Equal_Area_Conic (EPSG:102008) projection'''. | ||
|- | |- | ||
|| Click on '''OK''' button. | || Click on '''OK''' button. | ||
− | || Click on '''OK''' button. | + | || Click on '''OK''' button at the bottom. |
|- | |- | ||
− | || In the Save vector layer as... dialog-box, cursor on '''CRS''' drop down box. | + | || In the '''Save vector layer as...''' dialog-box, cursor on '''CRS''' drop down box. |
|| In the '''CRS''' drop down box, the newly selected '''CRS''' is shown. | || In the '''CRS''' drop down box, the newly selected '''CRS''' is shown. | ||
|- | |- | ||
− | || In the '''Save Vector Layer''' '''as | + | || In the '''Save Vector Layer''' '''as dialog-box, |
Click on the check box next to '''Save only selected features.''' | Click on the check box next to '''Save only selected features.''' | ||
− | || Click on the check box to check '''Save only selected features '''option | + | || Click on the check box to check '''Save only selected features '''option. |
− | This will ensure that only the selected feature gets re-projected and exported. | + | This will ensure that only the selected '''feature''' gets '''re-projected''' and '''exported'''. |
|- | |- | ||
− | || Cursor on , '''Add saved file to map | + | || Cursor on , '''Add saved file to map'''. |
|| Here, by default, '''Add saved file to map '''option is checked. | || Here, by default, '''Add saved file to map '''option is checked. | ||
Line 479: | Line 350: | ||
|- | |- | ||
|| In the '''Save Vector Layer''' '''as...''' dialog-box, click on '''OK '''button | || In the '''Save Vector Layer''' '''as...''' dialog-box, click on '''OK '''button | ||
− | || Click on '''OK '''button | + | || Click on '''OK '''button. |
|- | |- | ||
Line 486: | Line 357: | ||
Cursor on '''Layers panel'''. | Cursor on '''Layers panel'''. | ||
− | || The re-projected layer gets loaded, | + | || The '''re-projected layer''' gets loaded, in a different color. |
− | |||
+ | These two '''layers''' are now in different '''projections'''. | ||
− | |||
− | + | Observe that, on '''Layers Panel,''' you can now see 2 entries. | |
− | Observe that, on '''Layers Panel''' you can now see 2 entries. | + | |
|- | |- | ||
− | || | + | || uncheck enable '''on the fly CRS transformation''' |
'''Point to OTF next to EPSG:4326.''' | '''Point to OTF next to EPSG:4326.''' | ||
− | || Notice that the new ''' | + | || Notice that the new '''United States layer''' overlays perfectly on top of the '''world map layer'''. |
− | This is because '''QGIS''' has a feature called '''On-the-fly CRS transformation.''' | + | This is because '''QGIS''' has a '''feature''' called '''On-the-fly CRS transformation.''' |
− | The projection text at the bottom-right of '''QGIS''' window has the words, | + | The '''projection''' text at the bottom-right corner of '''QGIS''' window has the words, '''OTF''' next to '''EPSG:4326'''. |
− | + | ||
− | + | ||
− | '''OTF '''next to '''EPSG:4326'''. | + | |
|- | |- | ||
− | || At the bottom-right corner, click on EPSG:4326. | + | || At the bottom-right corner, click on '''EPSG:4326'''. |
− | + | || Select the '''United-States''' layer in the '''Layers Panel '''by clicking on it. | |
− | + | ||
− | + | ||
− | || Select '''United-States''' layer in the '''Layers Panel '''by clicking on it. | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
+ | Click on the '''Current CRS''' text, '''EPSG:4326,''' at the bottom-right corner of the '''status''' bar. | ||
|- | |- | ||
Line 534: | Line 393: | ||
|- | |- | ||
|| Uncheck '''Enable on the fly CRS transformation '''check box, | || Uncheck '''Enable on the fly CRS transformation '''check box, | ||
+ | || Uncheck the '''Enable on the fly CRS transformation '''check box, by clicking on it. | ||
− | + | Click on '''OK '''button at the bottom. | |
− | + | ||
− | + | ||
− | + | ||
− | Click on '''OK '''button. | + | |
|- | |- | ||
|| Cursor on the map. | || Cursor on the map. | ||
− | || Back in the main QGIS window, you will see the world map disappear. | + | || Back in the '''main QGIS''' window, you will see the world map disappear. |
− | You can see only United | + | You can see only the '''United States''' map on the '''canvas'''. |
− | This is because the Projected CRS for this layer changed to '''Albers Projection.''' | + | This is because the '''Projected CRS''' for this '''layer''' changed to '''Albers Projection.''' |
|- | |- | ||
Line 557: | Line 413: | ||
Select zoom to layer | Select zoom to layer | ||
− | || The coordinates and scale are different now. | + | || The '''coordinates''' and scale are different now. |
− | Right-click the''' | + | Right-click the '''United States layer''' in the '''Layers Panel'''. |
− | Select''' Zoom to Layer '''option. | + | Select '''Zoom to Layer''' option. |
− | Now you will see the '''United States''' in the selected projection. | + | Now you will see the '''United States''' in the selected '''projection'''. |
|- | |- | ||
Line 577: | Line 433: | ||
Turn-on the''' Enable ‘on the fly’ CRS transformation''' option. | Turn-on the''' Enable ‘on the fly’ CRS transformation''' option. | ||
− | |||
− | |||
− | |||
|- | |- | ||
− | || Under the heading '''Recently used Coordinate Reference Systems,''' | + | || Under the heading '''Recently used Coordinate Reference Systems,''' select '''WGS 84.''' |
− | + | ||
− | + | ||
− | + | ||
Click on''' OK '''button. | Click on''' OK '''button. | ||
− | || Under the heading '''Recently used Coordinate Reference Systems,''' | + | || Under the heading '''Recently used Coordinate Reference Systems,''' select '''WGS 84'''. |
+ | At the bottom, click on '''OK '''button. | ||
− | |||
− | + | The display on the '''canvas''' will return to its previous state with world map. | |
− | The display on the canvas will return to its previous state with world map. | + | |
|- | |- | ||
|| Right-click on USA-1.shp in Layers panel. | || Right-click on USA-1.shp in Layers panel. | ||
− | + | || To delete the '''vector layer''' from the '''dataset''', right-click on the name in the '''Layers panel'''. | |
− | + | ||
− | + | ||
− | || To delete the vector layer from the dataset, | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|- | |- | ||
|| Click on '''Remove''' option from the context menu. | || Click on '''Remove''' option from the context menu. | ||
− | |||
Click on '''OK''' button in the dialog-box '''(Remove Layers or Groups)''' | Click on '''OK''' button in the dialog-box '''(Remove Layers or Groups)''' | ||
Line 618: | Line 457: | ||
− | A prompt appears to | + | A '''prompt''' appears to confirm the action. |
+ | |||
+ | Click on '''OK''' button. | ||
|- | |- | ||
|| Cursor on the layers panel. | || Cursor on the layers panel. | ||
− | || Observe that the layer is removed from the dataset. | + | || Observe that the '''layer''' is removed from the '''dataset'''. |
|- | |- | ||
− | || '''Slide Number | + | || '''Slide Number 8''' |
Summary | Summary | ||
Line 632: | Line 473: | ||
In this tutorial we have learnt to | In this tutorial we have learnt to | ||
− | * Add layers to '''projections''' in QGIS | + | * Add '''layers''' to '''projections''' in '''QGIS'''. |
− | + | ||
− | * | + | * View '''metadata''' information for '''layers'''. |
− | + | ||
+ | * Save selected '''features''' from a '''layer''' to a new '''layer'''. | ||
+ | * '''Re-project''' and '''overlay data layers''' of different '''projections''' together. | ||
|- | |- | ||
− | || '''Slide Number | + | || '''Slide Number 9''' |
Assignment | Assignment | ||
− | || As an Assignment | + | || As an Assignment: |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
+ | * '''Project''' The '''United States '''with '''North_America_Lambert_Conformal_Conic projection''' | ||
+ | * and observe the difference. | ||
+ | * '''Re-project''' the entire world map '''layer''' into '''World Mercator projection''' system. | ||
|- | |- | ||
Line 657: | Line 497: | ||
|- | |- | ||
− | || '''Slide Number | + | || '''Slide Number 10''' |
'''About Spoken Tutorial project''' | '''About Spoken Tutorial project''' | ||
||The video at the following link summarizes the Spoken Tutorial project. | ||The video at the following link summarizes the Spoken Tutorial project. | ||
Please download and watch it. | Please download and watch it. | ||
− | |||
− | |||
− | |||
|- | |- | ||
− | || '''Slide Number | + | || '''Slide Number 11''' |
'''Spoken Tutorial workshops''' | '''Spoken Tutorial workshops''' | ||
|| The Spoken Tutorial Project team: | || The Spoken Tutorial Project team: | ||
− | conducts workshops | + | conducts workshops and |
gives certificates on passing online tests. | gives certificates on passing online tests. | ||
Line 678: | Line 515: | ||
|- | |- | ||
− | || '''Slide number | + | || '''Slide number 12''' |
'''Forum for specific questions:''' | '''Forum for specific questions:''' | ||
− | Do you have questions in THIS Spoken Tutorial? | + | * Do you have questions in THIS Spoken Tutorial? |
− | + | * Please visit this site | |
− | + | * Choose the minute and second where you have the question | |
− | + | * Explain your question briefly | |
− | + | * Someone from our team will answer them | |
Line 698: | Line 535: | ||
|- | |- | ||
− | || '''Slide Number | + | || '''Slide Number 13:''' |
'''Acknowledgement''' | '''Acknowledgement''' | ||
Line 710: | Line 547: | ||
Thank you for joining | Thank you for joining | ||
− | + | |- | |
|} | |} |
Latest revision as of 11:12, 31 August 2018
Visual Cue | Narration |
Slide Number 1
Title Slide |
Welcome to this tutorial on Coordinate Reference System in QGIS. |
Slide Number 2
Learning Objectives |
In this tutorial, we will learn to,
|
Slide Number 3
System Requirement |
To record this tutorial I am using,
|
Slide Number 4
Pre-requisites
|
To follow this tutorial you should have basic knowledge about GIS.
Please view previous tutorial in this series. |
Slide Number 5
Coordinate Reference systems |
About Coordinate Reference Systems,
Coordinate Reference Systems are of two types,
|
Slide Number 5
Coordinate Reference systems |
Most widely used geographic coordinate system is WGS 84.
Most widely used projected coordinate system is UTM. |
Click on QGIS icon to open the interface.
Cursor on Canvas. |
Here I have opened QGIS interface.
On the canvas, world map with country administration boundaries is displayed. |
Slide Number 6
World Map File |
Demonstration on how to download the map and display in QGIS is explained in the prerequisite tutorial.
Please view the pre-requisite tutorial. This file can also be downloaded from the Code files link. |
Cursor on layers panel on name of the map file. | On the left-side of the canvas, you will see Layers Panel, with file name of the world map as a layer. |
Cursor on the canvas. | By default Layers Panel is enabled here.
If not, we can enable or disable the Layers Panel using View menu. |
Click on View tool on the Tool bar. | Click on View menu on the menu bar.
Scroll down and select Panels option. |
Scroll down and select Panels option.
From the sub-menu, click on Layer Panel. |
Sub-menu shows a list of panel names.
Click on Layer Panel option to enable or disable the panel. |
Drag the boundary with the mouse. | We can adjust the size of the panel by dragging the boundary. |
Right-click on the layer name in Layers Panel. | If you wish to change the color of the map, right-click on the layer name in the Layers Panel. |
Scroll-down the context menu >> select Styles option. | Scroll-down the context menu and select Styles option. |
Rotate the vertex of the color triangle to choose the color. | Sub-menu shows a color triangle .
Choose the color by rotating the vertex of the color triangle. |
Click anywhere on the canvas. | Click anywhere on the canvas to close the context menu. |
Cursor on Coordinate label and text box. | At the bottom-left corner, on the status bar of QGIS window, you will notice the label Coordinate and a text box with numbers. |
Highlight X and Y coordinates. (Editing stage) | Values of X and Y coordinates for a particular location are shown in this text box. |
Move the cursor over the map. | Move the cursor over the map.
Observe, that the values of X and Y coordinates change with location of the cursor. |
Cursor on Render option. | By default Render option is checked on the status bar.
|
Point towards EPSG:4326(OTF) at the bottom-right corner of the status bar. | On the status bar, at the bottom-right corner, you will see another label, Current CRS
|
To determine a layer’s projection, we can look into the metadata. | |
Right click on the Layers Panel, ne_10m_admin_0_countries | On the Layers Panel, right-click on the layer name. |
From the context menu, select Properties. | From the context menu, select Properties.
|
Click on Metadata option in Layer dialog-box.
Scroll down. |
In the dialog-box, on the left-side panel, click on Metadata option.
|
Point to heading, Layer Spatial Reference System.
Point to WGS84. |
At the bottom,
under heading, Layer Spatial Reference System, you will see the definition for this projection. It shows WGS84 as geographic coordinate system. |
Click Ok button | Click on Ok button at the bottom, to close the dialog box. |
Let us now add layers to the map and change the projection. | |
Slide Number 7
Data layers |
About data layers.
|
Back to the QGIS interface. | |
Cursor on the QGIS canvas. | Now let us see how we can change the layer’s projection.
Instead of re-projecting the entire layer, we will re-project some features. |
On top-right corner of the tool bar >> click on Select features by area or single click tool. | On top-right corner of the tool bar, click on Select features by area or single click tool. |
Click on the black triangle next to this tool. | Click on the black triangle next to this tool. |
Drop down >> choose Select features. | From the drop down choose Select features. |
On the canvas, on the world map, click on United States of America. | On the world map displayed on canvas, click on the United States of America feature to select it.
|
Cursor on the map. | We will now change the projected coordinate system of this layer and save. |
Right click on,
ne_10m_admin_0_countries |
Right-click on the layer name in the Layers Panel. |
Click on Save As option | Scroll down, select Save As option. |
Save Vector Layer as dialog box opens. | Save Vector Layer as... dialog box opens.
Leave it as such. |
Click on Browse button. | Click on Browse button next to File name text box. |
Save layer as... dialog-box opens.
In the name text box, type the layer as USA-1.shp. |
Save layer as... dialog-box opens.
|
Click on Desktop option.
|
Find a suitable location to save.
I will save it on Desktop Click on Save button at the bottom. |
In the Save Vector Layer as... dialog-box.
|
In the Save Vector Layer as.... dialog-box, the file path appears in the File name text box. |
Click select CRS button next to CRS text box. | We will choose the new projection for this layer.
|
In the Coordinate Reference System Selector dialog box, type North America | In the Coordinate Reference System Selector,
in the Filter search box, enter North America |
Click
North_America_Albers_Equal_Area_Conic |
Under Coordinate reference systems of the world,
under heading Projected Coordinate System, scroll through the results.
North_America_Albers_Equal_Area_Conic (EPSG:102008) projection. |
Click on OK button. | Click on OK button at the bottom. |
In the Save vector layer as... dialog-box, cursor on CRS drop down box. | In the CRS drop down box, the newly selected CRS is shown. |
In the Save Vector Layer as dialog-box,
|
Click on the check box to check Save only selected features option.
|
Cursor on , Add saved file to map. | Here, by default, Add saved file to map option is checked.
|
In the Save Vector Layer as... dialog-box, click on OK button | Click on OK button. |
Point on united states outline.
|
The re-projected layer gets loaded, in a different color.
|
uncheck enable on the fly CRS transformation
|
Notice that the new United States layer overlays perfectly on top of the world map layer.
|
At the bottom-right corner, click on EPSG:4326. | Select the United-States layer in the Layers Panel by clicking on it.
Click on the Current CRS text, EPSG:4326, at the bottom-right corner of the status bar. |
Cursor on Project Properties CRS dialog-box. | Project Properties CRS dialog-box opens.
|
Uncheck Enable on the fly CRS transformation check box, | Uncheck the Enable on the fly CRS transformation check box, by clicking on it.
|
Cursor on the map. | Back in the main QGIS window, you will see the world map disappear.
|
Right click on USA-1.shp layer.
|
The coordinates and scale are different now.
|
Click on EPSG
|
Again, click on the Current CRS text to open Project Properties dialog-box.
|
Under the heading Recently used Coordinate Reference Systems, select WGS 84.
|
Under the heading Recently used Coordinate Reference Systems, select WGS 84.
At the bottom, click on OK button.
|
Right-click on USA-1.shp in Layers panel. | To delete the vector layer from the dataset, right-click on the name in the Layers panel. |
Click on Remove option from the context menu.
Click on OK button in the dialog-box (Remove Layers or Groups) |
From the context menu, click on Remove option.
Click on OK button. |
Cursor on the layers panel. | Observe that the layer is removed from the dataset. |
Slide Number 8
Summary |
Let us summarize,
In this tutorial we have learnt to
|
Slide Number 9
Assignment |
As an Assignment:
|
Show completed assignments. | Your completed assignment should look like this. |
Slide Number 10
About Spoken Tutorial project |
The video at the following link summarizes the Spoken Tutorial project.
Please download and watch it. |
Slide Number 11
Spoken Tutorial workshops |
The Spoken Tutorial Project team:
conducts workshops and gives certificates on passing online tests. For more details, please write to us. |
Slide number 12
Forum for specific questions:
|
Please post your timed queries on this forum. |
Slide Number 13:
Acknowledgement |
Spoken Tutorial Project is funded by NMEICT, MHRD, Government of India.
More information on this mission is available at this link. |
This tutorial is contributed by Prajwal. M from Sahyadri college of Engineering and Snehalatha from IIT Bombay.
Thank you for joining |