{"id":109,"date":"2014-02-02T10:59:01","date_gmt":"2014-02-02T15:59:01","guid":{"rendered":"http:\/\/brian.digitalmaddox.com\/blog\/?p=109"},"modified":"2014-07-08T16:45:20","modified_gmt":"2014-07-08T20:45:20","slug":"using-free-geospatial-tools-and-data-part-6-qgis","status":"publish","type":"post","link":"https:\/\/brian.digitalmaddox.com\/blog\/?p=109","title":{"rendered":"Using Free Geospatial Tools and Data Part 6: QGIS"},"content":{"rendered":"<p>I took a brief vacation so have not updated this in a while. Switched distributions from <a title=\"Fedora KDE Spin\" href=\"http:\/\/spins.fedoraproject.org\/kde\/\" target=\"_blank\">Fedora KDE Spin<\/a> back to <a title=\"Kubuntu\" href=\"http:\/\/www.kubuntu.org\/\" target=\"_blank\">Kubuntu<\/a> and had the holidays hit. Then ended up finding out Kubuntu 13.10 did not have the latest QGIS so had to compile the packages for it myself. But now it is time to get back into the swing of things.<\/p>\n<p>We last left off with setting up a geospatial database and putting a small sample <a title=\"ESRI Shapefile from Wikipedia\" href=\"http:\/\/en.wikipedia.org\/wiki\/Shapefile\" target=\"_blank\">Shapefile<\/a> with a few points so you could get some experience with creating and storing data. However, now that the data is in the database, it would be handy to actually display it instead of just looking at the metadata about it.<\/p>\n<p><strong>Installing QGIS<\/strong><\/p>\n<p><a title=\"QGIS Homepage\" href=\"http:\/\/www.qgis.org\/en\/site\/\" target=\"_blank\">QGIS<\/a> is one of the leading open source GIS tools in existence. It can call functions from <a title=\"GRASS GIS Homepage\" href=\"http:\/\/grass.osgeo.org\/\" target=\"_blank\">GRASS<\/a> to use advanced functionality that is not built-in. It has a Python-based plug-in system with an extensive set of plug ins that perform raster and vector operations in addition to allowing one to use data from Google and Bing as a base map. Put this all together, and you have something that these days can actually take on and surpass the commercial GIS offerings out there.<\/p>\n<p>Installing QGIS is very straight-forward these days. Windows installers can be found at the QGIS website that make use of <a title=\"Cygwin Homepage\" href=\"http:\/\/www.cygwin.com\/\" target=\"_blank\">Cygwin<\/a>. Most Linux distributions have packages pre-built in their repositories. If you are on Ubuntu, I would recommend that you ignore my previous post on this blog, as the <a title=\"Ubuntu GIS\" href=\"https:\/\/wiki.ubuntu.com\/UbuntuGIS\" target=\"_blank\">Ubuntu-GIS<\/a> team has built packages and placed them into the <a title=\"UbuntuGIS-Unstable PPA\" href=\"https:\/\/launchpad.net\/~ubuntugis\/+archive\/ubuntugis-unstable\" target=\"_blank\">ubuntugis-unstable<\/a> repository. Do not be fooled by the unstable moniker. I have been using packages from there over the years and have never had any issues with them. Check your distribution repositories and package search tools to find version 2.x for your system.<\/p>\n<p><strong>Using QGIS<\/strong><\/p>\n<p>Once installed, you will find two different application shortcuts in your Windows\/window manager&#8217;s menu: QGIS Desktop and QGIS Browser. QGIS Browser is a tool dedicated to making it easy to browse through your geospatial database holdings, be it an ESRI geodatabase or <a title=\"PostGiS\" href=\"http:\/\/postgis.net\/\" target=\"_blank\">PostGIS<\/a>. For each layer or data file, you can examine the metadata, preview the file, or examine the attributes stored in the data. The browser was introduced around the QGIS 1.8 time line and is similar to <a title=\"ArcCatalog from ESRI\" href=\"http:\/\/help.arcgis.com\/en\/arcgisdesktop\/10.0\/help..\/index.html#\/\/006m00000069000000.htm\" target=\"_blank\">ArcCatalog<\/a> for the <a title=\"ESRI\" href=\"http:\/\/www.esri.com\/\" target=\"_blank\">ESRI<\/a> users in the crowd. The main use for it is to quickly browse and examine your data without having to load it into QGIS proper.<\/p>\n<div id=\"attachment_110\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/QGIS_Browser.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-110\" class=\"size-medium wp-image-110\" alt=\"QGIS_Browser\" src=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/QGIS_Browser-300x182.png\" width=\"300\" height=\"182\" srcset=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/QGIS_Browser-300x182.png 300w, https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/QGIS_Browser-1024x621.png 1024w, https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/QGIS_Browser.png 1920w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-110\" class=\"wp-caption-text\">QGIS Browser<\/p><\/div>\n<p>QGIS Desktop is the traditional GIS application that allows you to perform processing on your data in addition to visualizing and examining metadata. The default layout of QGIS is show below.<\/p>\n<div id=\"attachment_111\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/QGIS_Desktop.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-111\" class=\"size-medium wp-image-111\" alt=\"QGIS Desktop\" src=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/QGIS_Desktop-300x182.png\" width=\"300\" height=\"182\" srcset=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/QGIS_Desktop-300x182.png 300w, https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/QGIS_Desktop-1024x621.png 1024w, https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/QGIS_Desktop.png 1920w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-111\" class=\"wp-caption-text\">QGIS Desktop<\/p><\/div>\n<p>The QGIS 2.x layout differs slightly from the version 1.x layout. By default, along the left side of the window you will find the toolbar containing the add layers buttons for various types of data sources.<\/p>\n<div id=\"attachment_112\" style=\"width: 45px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/qgis_layers_toolbar.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-112\" class=\"size-medium wp-image-112\" alt=\"QGIS Layers Toolbar\" src=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/qgis_layers_toolbar-35x300.png\" width=\"35\" height=\"300\" \/><\/a><p id=\"caption-attachment-112\" class=\"wp-caption-text\">QGIS Layers Toolbar<\/p><\/div>\n<p>Next to that you will find a tabbed box that displays either the layers window or the browser built-in to QGIS Desktop. The browser here allows you to quickly find data that you can then click and add as a layer into the desktop application.<\/p>\n<div id=\"attachment_113\" style=\"width: 157px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/qgis_layers_browser_window.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-113\" class=\"size-medium wp-image-113\" alt=\"QGIS Layers and Browser Window\" src=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/qgis_layers_browser_window-147x300.png\" width=\"147\" height=\"300\" srcset=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/qgis_layers_browser_window-147x300.png 147w, https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/qgis_layers_browser_window.png 341w\" sizes=\"auto, (max-width: 147px) 100vw, 147px\" \/><\/a><p id=\"caption-attachment-113\" class=\"wp-caption-text\">QGIS Layers and Browser Window<\/p><\/div>\n<p>Along the top of the window, you will find the application menus and toolbars for functions such as opening\/saving files, zooming, measuring, and other functions. Depending on what plug-ins you have installed an activated, there could be additional menus and toolbars such as the GRASS layers and functions bar.<\/p>\n<div id=\"attachment_114\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/qgis_toolbar_menus.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-114\" class=\"size-medium wp-image-114\" alt=\"QGIS Toolbars and Menus\" src=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/qgis_toolbar_menus-300x56.png\" width=\"300\" height=\"56\" srcset=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/qgis_toolbar_menus-300x56.png 300w, https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/qgis_toolbar_menus-1024x192.png 1024w, https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/qgis_toolbar_menus.png 1100w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-114\" class=\"wp-caption-text\">QGIS Toolbars and Menus<\/p><\/div>\n<p><strong>GIS Layers<\/strong><\/p>\n<p>To use tools such as QGIS, you have to understand how such system work. GISs allow you to manipulate data based on the concept of a layer. Each layer represents a data set, be it raster (think aerial imagery) or vector (think points and lines that represent roads). At a minimum, these data sets are related to each other by their geographic area and temporal parameters. Inside the GIS, you can overlay the different data sets (layers) on top of each other. Usually, you will start with what is called a base map (think of the streets version of Google Maps) and then add more specific data sets on top of that. In the example below (which demonstrates my lack of artistic skills), you can see a Google Roads layer as the base map. Added to that is a river and then a road layer. Inside the GIS, all of these layers would overlay on to the base map so that everything lines up (assuming it has been georeferenced properly).<\/p>\n<div id=\"attachment_115\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/layersexample.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-115\" class=\"size-medium wp-image-115\" alt=\"Layers Visualization\" src=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/layersexample-300x223.jpg\" width=\"300\" height=\"223\" srcset=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/layersexample-300x223.jpg 300w, https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/layersexample-1024x762.jpg 1024w, https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/layersexample.jpg 1333w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-115\" class=\"wp-caption-text\">Layers Visualization<\/p><\/div>\n<p><strong>Loading Data into QGIS<\/strong><\/p>\n<p>Now we will use QGIS with a base map and overlay the points that you put into your own geospatial database from the last installment. If you did not put the Shapefile into the geodatabase, you can also simply add it as I will illustrate below.<\/p>\n<p>If you set up PostGIS and imported the file into it, start by clicking on the elephant-face icon as shown below.<\/p>\n<div id=\"attachment_116\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/postgis_import_button.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-116\" class=\"size-medium wp-image-116\" alt=\"PostGIS Import Button\" src=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/postgis_import_button-300x280.png\" width=\"300\" height=\"280\" srcset=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/postgis_import_button-300x280.png 300w, https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/postgis_import_button.png 360w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-116\" class=\"wp-caption-text\">PostGiS Import Button<\/p><\/div>\n<p>You will then be presented with the following dialog box.<\/p>\n<div id=\"attachment_117\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/add_postgis_table.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-117\" class=\"size-medium wp-image-117\" alt=\"Add PostGIS Table Dialog\" src=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/add_postgis_table-300x261.png\" width=\"300\" height=\"261\" srcset=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/add_postgis_table-300x261.png 300w, https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/add_postgis_table.png 670w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-117\" class=\"wp-caption-text\">Add PostGIS Table Dialog<\/p><\/div>\n<p>Click on the <strong>New<\/strong> button and fill out the information similar to the below figure but use your specific host, user, and database names.<\/p>\n<p>&nbsp;<\/p>\n<div id=\"attachment_119\" style=\"width: 255px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/postgis_connection_settings.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-119\" class=\"size-medium wp-image-119\" alt=\"PostGIS Connection Settings\" src=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/postgis_connection_settings-245x300.png\" width=\"245\" height=\"300\" srcset=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/postgis_connection_settings-245x300.png 245w, https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/postgis_connection_settings.png 577w\" sizes=\"auto, (max-width: 245px) 100vw, 245px\" \/><\/a><p id=\"caption-attachment-119\" class=\"wp-caption-text\">PostGIS Connection Settings<\/p><\/div>\n<p>Click <strong>OK<\/strong> and then <strong>OK<\/strong> again if you chose to save your password like I did. Then, with the VA_Points layer selected in the drop-down, click the <strong>Connect<\/strong> button. You should then see an entry under Schema called public. Click on it and you will then see your table name similar to the below figure. Select the points layer and then click the <strong>Add<\/strong> button to add this layer to QGIS.<\/p>\n<div id=\"attachment_120\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/postgis_add_layer.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-120\" class=\"size-medium wp-image-120\" alt=\"PostGIS Add Layer Dialog\" src=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/postgis_add_layer-300x261.png\" width=\"300\" height=\"261\" srcset=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/postgis_add_layer-300x261.png 300w, https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/postgis_add_layer.png 670w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-120\" class=\"wp-caption-text\">PostGIS Add Layer Dialog<\/p><\/div>\n<p>Your QGIS window should look similar to the below. If not, recheck your connection settings and try again.<\/p>\n<p>&nbsp;<\/p>\n<div id=\"attachment_111-2\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/QGIS_Desktop.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-111-2\" class=\"size-medium wp-image-111\" alt=\"QGIS Desktop\" src=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/QGIS_Desktop-300x182.png\" width=\"300\" height=\"182\" srcset=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/QGIS_Desktop-300x182.png 300w, https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/QGIS_Desktop-1024x621.png 1024w, https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/QGIS_Desktop.png 1920w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-111-2\" class=\"wp-caption-text\">QGIS after adding the VA_Points layer<\/p><\/div>\n<p>Note that if you just download the points layer, click on the <strong>Add Vector Layer<\/strong> button which looks similar to a V and is shown below.<\/p>\n<div id=\"attachment_121\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/qgis_add_vector_layer.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-121\" class=\"size-medium wp-image-121\" alt=\"QGIS Add Vector Layer Button\" src=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/qgis_add_vector_layer-300x260.png\" width=\"300\" height=\"260\" srcset=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/qgis_add_vector_layer-300x260.png 300w, https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/qgis_add_vector_layer.png 384w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-121\" class=\"wp-caption-text\">QGIS Add Vector Layer Button<\/p><\/div>\n<p>Click the browse button and select the va_points.shp file from the zip archive you downloaded and then click OK. Your screen should look the same as the above.<\/p>\n<p><strong>\u00a0Adding a Base Map<\/strong><\/p>\n<p>Now that we have the points layer added, it is time to add a base map so that you can see how the data overlays.\u00a0 To do this, we will use the OpenLayers Plugin in QGIS to add a Google Maps satellite image.\u00a0 First click on the <strong>Plugins<\/strong> menu item and select <strong>Manage and Install Plugins<\/strong>.\u00a0 You will see a window similar to this one.<\/p>\n<div id=\"attachment_122\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/qgis_plugin_manager.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-122\" class=\"size-medium wp-image-122\" alt=\"QGIS Plug-in Manager\" src=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/qgis_plugin_manager-300x221.png\" width=\"300\" height=\"221\" srcset=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/qgis_plugin_manager-300x221.png 300w, https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/qgis_plugin_manager-1024x756.png 1024w, https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/qgis_plugin_manager.png 1099w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-122\" class=\"wp-caption-text\">QGIS Plug-in Manager<\/p><\/div>\n<p>If you see the OpenLayers Plugin listed in the <strong>Installed<\/strong> plug-ins section, click the check box next to it to enable it.\u00a0 If not, click on <strong>Get More <\/strong>tab and type OpenLayers in the <strong>Search<\/strong> box.\u00a0 Click on OpenLayers and then click <strong>Install<\/strong> to put it on your system.<\/p>\n<p>Now that OpenLayers is installed, click on <strong>Plugins<\/strong> again, click <strong>OpenLayers<\/strong>, and click <strong>Add Google Satellite Layer<\/strong> to add it to a new layer in QGIS.<\/p>\n<div id=\"attachment_123\" style=\"width: 223px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/OpenLayersMenu.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-123\" class=\"size-medium wp-image-123\" alt=\"OpenLayers Plug-in Menu\" src=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/OpenLayersMenu-213x300.png\" width=\"213\" height=\"300\" srcset=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/OpenLayersMenu-213x300.png 213w, https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/OpenLayersMenu.png 349w\" sizes=\"auto, (max-width: 213px) 100vw, 213px\" \/><\/a><p id=\"caption-attachment-123\" class=\"wp-caption-text\">OpenLayers Plug-in Menu<\/p><\/div>\n<p>Once done, QGIS will look similar to below.\u00a0 Do not panic, we will fix it shortly.<\/p>\n<div id=\"attachment_125\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/qgis_with_satellite.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-125\" class=\"size-medium wp-image-125\" alt=\"QGIS With Satellite Added\" src=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/qgis_with_satellite-300x182.png\" width=\"300\" height=\"182\" srcset=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/qgis_with_satellite-300x182.png 300w, https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/qgis_with_satellite-1024x621.png 1024w, https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/qgis_with_satellite.png 1920w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-125\" class=\"wp-caption-text\">QGIS with the Satellite Layer Added<\/p><\/div>\n<p><strong>Geographic Extents<\/strong><\/p>\n<p>I specifically uses this sequence of steps in a work flow to demonstrate another GIS concept &#8211; the geographic extent.\u00a0 Geospatial data has an extent an a time associate with them.\u00a0 We first loaded the VA Points layer to set the geospatial extent to the area surrounding roughly the middle of Virginia.\u00a0 The extent on the screen is then based on how much you zoom in or out of the image.\u00a0 If you zoom in on a point, you are decreasing the geographic area (or extent) that is displayed on the screen.\u00a0 If you zoom out, you then increase it.<\/p>\n<p>If I had started with just the Google Satellite View, your extent would be as demonstrated in the image.\u00a0 You then would have had to add the points and then zoom down to where the points are located.\u00a0 However, as you can see from the above screen shot, when you add a layer using the OpenLayers plugin, it will default to a view such as above.\u00a0 It appears to be zoomed way out and you see multiple side-by-side images of the Earth.\u00a0 Plus, it is on top of your image.<\/p>\n<p><strong>Fixing OpenLayers Layers<\/strong><\/p>\n<p>Fixing this is a very easy task.\u00a0 First, on the layers side window, notice that the Google Satellite layer is on top of the VA_Points layer.<\/p>\n<div id=\"attachment_126\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/openlayers_on_top.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-126\" class=\"size-medium wp-image-126\" alt=\"OpenLayers on Top\" src=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/openlayers_on_top-300x238.png\" width=\"300\" height=\"238\" srcset=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/openlayers_on_top-300x238.png 300w, https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/openlayers_on_top.png 359w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-126\" class=\"wp-caption-text\">OpenLayers on Top of the Points<\/p><\/div>\n<p>Click on the Google Satellite layer and drag it so that it is below the VA_points layer.\u00a0 Your screen will then look like this.<\/p>\n<div id=\"attachment_127\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/satellite_below_points.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-127\" class=\"size-medium wp-image-127\" alt=\"Satellite Layer Below the Points\" src=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/satellite_below_points-300x182.png\" width=\"300\" height=\"182\" srcset=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/satellite_below_points-300x182.png 300w, https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/satellite_below_points-1024x621.png 1024w, https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/satellite_below_points.png 1920w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-127\" class=\"wp-caption-text\">Satellite Layer Below the Points<\/p><\/div>\n<p>Now click on the VA_points layer and select <strong>Zoom to Layer Extent<\/strong>.\u00a0 This will redisplay all of the data so that it fits into the geographic area that the points layer covers.\u00a0 As you can see below, this also sets the Google Satellite layer to the same extent as the points layer so that the points and satellite layer are both referenced together.<\/p>\n<div id=\"attachment_128\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/corrected_geospatial_extent.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-128\" class=\"size-medium wp-image-128\" alt=\"Satellite Layer with the Proper Extent\" src=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/corrected_geospatial_extent-300x182.png\" width=\"300\" height=\"182\" srcset=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/corrected_geospatial_extent-300x182.png 300w, https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/corrected_geospatial_extent-1024x621.png 1024w, https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/corrected_geospatial_extent.png 1920w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-128\" class=\"wp-caption-text\">Satellite Layer with the Proper Extent<\/p><\/div>\n<p><strong>Changing the Points Color<\/strong><\/p>\n<p>QGIS will select a random color for your points when you first add the layer.\u00a0 As you can see from the above screen shot, it choose a green on my system which does not stand out that well over the satellite image.\u00a0 You can double click on the green dot under the VA_points layer name to change the color.\u00a0 Double-clicking brings up the properties for the vector layer.\u00a0 The default should be to display the Style tab.<\/p>\n<div id=\"attachment_130\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/layer_style_properties.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-130\" class=\"size-medium wp-image-130\" alt=\"Vector Style Properties\" src=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/layer_style_properties-300x281.png\" width=\"300\" height=\"281\" srcset=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/layer_style_properties-300x281.png 300w, https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/layer_style_properties-1024x961.png 1024w, https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/layer_style_properties.png 1050w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-130\" class=\"wp-caption-text\">Vector Style Properties<\/p><\/div>\n<p>From here you can change various properties to alter how the layer appears on the screen.\u00a0 You can select different symbol types, sizes, and other properties for each point.\u00a0 We will just be changing the color for this example.\u00a0 Click the color button to bring up the <strong>Select Color<\/strong> pop up.\u00a0 I selected a bright red from the Forty Colors drop-down for the points in this example.<\/p>\n<div id=\"attachment_131\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/style_location_color_button.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-131\" class=\"size-medium wp-image-131\" alt=\"Color Button Location\" src=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/style_location_color_button-300x281.png\" width=\"300\" height=\"281\" srcset=\"https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/style_location_color_button-300x281.png 300w, https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/style_location_color_button-1024x961.png 1024w, https:\/\/brian.digitalmaddox.com\/blog\/wp-content\/uploads\/2014\/02\/style_location_color_button.png 1050w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-131\" class=\"wp-caption-text\">Color Button Location<\/p><\/div>\n<p>That&#8217;s it.\u00a0 You now have successfully loaded two different data sets into QGIS.\u00a0 As homework, find the zoom button in the top menu bar and zoom in to the areas around each point.\u00a0 You will see that you get more detail from the Satellite layer as you decrease the geographic area around each point.\u00a0 This is similar to how things would look if you were sitting on your roof looking at the ground versus looking at your house from the International Space Station.<\/p>\n<p><strong>Next Time<\/strong><\/p>\n<p>Since this post has already gotten very long, next time we will go through some of the other tools that exist inside QGIS, such as viewing metadata for a point and making measurements.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I took a brief vacation so have not updated this in a while. Switched distributions from Fedora KDE Spin back to Kubuntu and had the holidays hit. Then ended up finding out Kubuntu 13.10 did not have the latest QGIS &hellip; <a href=\"https:\/\/brian.digitalmaddox.com\/blog\/?p=109\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-109","post","type-post","status-publish","format-standard","hentry","category-gis"],"_links":{"self":[{"href":"https:\/\/brian.digitalmaddox.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/brian.digitalmaddox.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/brian.digitalmaddox.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/brian.digitalmaddox.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/brian.digitalmaddox.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=109"}],"version-history":[{"count":4,"href":"https:\/\/brian.digitalmaddox.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/109\/revisions"}],"predecessor-version":[{"id":132,"href":"https:\/\/brian.digitalmaddox.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/109\/revisions\/132"}],"wp:attachment":[{"href":"https:\/\/brian.digitalmaddox.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/brian.digitalmaddox.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/brian.digitalmaddox.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}