You are previewing QGIS By Example.
O'Reilly logo
QGIS By Example

Book Description

Leverage the power of QGIS in real-world applications to become a powerful user in cartography and GIS analysis

In Detail

QGIS is a leading user-friendly, cross-platform, open source, desktop geographic information system (GIS). It provides many useful capabilities and features and their number is continuously growing. More and more private users and companies choose QGIS as their primary GIS software because it is very easy to use, feature-rich, extensible, and has a big and constantly growing community.

This book guides you from QGIS installation through data loading, and preparation to performing most common GIS analyses. You will perform different types of GIS analyses including density, visibility, and suitability analysis on practical, real-world data. Finally, you will learn how to become more productive and automate your everyday work with the help of the QGIS Processing framework and by developing your own Python plugins.

By the end of this book, you will have all the necessary knowledge about handling and analyzing spatial data.

What You Will Learn

  • Install QGIS and integrate your data into a spatial database to improve data management, speedup access, and processing

  • Design beautiful and informative print maps for a better representation of your data and analysis results

  • Publish your maps on the Internet with the QGIS Cloud hosting

  • Use the Heatmap plugin and hexagonal grids to find hot regions by density analysis

  • Visualize your data in 3D and check object visibility to find the most scenic views

  • Perform suitability analysis to find places that meet your requirements and learn how to use spatial operations

  • Become more productive with the Processing framework by using models and scripts to automate repetitive and complex tasks

  • Develop your own Python plugin to extend QGIS's functionality

  • Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

    Table of Contents

    1. QGIS By Example
      1. Table of Contents
      2. QGIS By Example
      3. Credits
      4. About the Authors
      5. About the Reviewers
      6. www.PacktPub.com
        1. Support files, eBooks, discount offers, and more
          1. Why subscribe?
          2. Free access for Packt account holders
      7. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Downloading the example code
          2. Downloading the color images of this book
          3. Errata
          4. Piracy
          5. Questions
      8. 1. Handling Your Data
        1. Installing QGIS
        2. GUI elements and customization
        3. Extending functionality through plugins
          1. Managing plugins
        4. Loading data into QGIS
          1. Loading shapefiles
          2. Loading rasters
          3. Loading data from the Personal GeoDatabase
          4. Importing CSV files
          5. Loading GPS data
          6. Getting OpenStreetMap data
        5. Dealing with projections
          1. Data source projection
          2. Project projection
        6. Loading layers to a spatial database
        7. Summary
      9. 2. Visualizing and Styling the Data
        1. Loading layers from the spatial database
        2. Grouping and reordering layers
        3. Developing your own styles
          1. Developing styles for vector layers
            1. Styling a layer with the Single Symbol renderer
            2. Styling a layer with the Categorized renderer
            3. Styling a layer with the Graduated renderer
            4. Styling a layer with the Rule-based renderer
            5. Styling a layer with the Point displacement renderer
            6. Styling a layer with the Inverted polygons renderer
            7. Styling a layer with the Heatmap renderer
            8. Layer rendering
          2. Developing styles for raster layers
        4. Adding labels
          1. Labeling a point layer
          2. Labeling a line layer
          3. Labeling a polygon layer
          4. Advanced labeling
        5. Managing styles
          1. Using several styles for the same layer
        6. Adding base maps
          1. The OpenLayers plugin
            1. Adding WMS/WMTS layers
          2. Adding TMS layers
        7. Summary
      10. 3. Presenting Data on a Print Map
        1. Print composer
        2. The initial setup – page format and other essentials
        3. Adding and customizing a map
        4. Adding and customizing a legend
        5. Other map items
          1. Scale bar
          2. North arrow
          3. Other items
        6. Working with multiple maps and overviews
          1. Combining several maps within a single print composer
          2. Working with map overviews
          3. Creating atlases
        7. Managing print composers
        8. Summary
      11. 4. Publishing the Map Online
        1. Registering for the QGIS Cloud service
        2. The QGIS Cloud plugin
        3. Creating a database
        4. Publishing the map
          1. General settings
          2. WMS settings
          3. WFS settings
        5. Viewing your map in QGIS and a browser
          1. Working with a map from a browser
          2. Working with a map in QGIS
        6. Deleting unused maps
          1. Deleting layers with DB Manager
          2. Deleting databases from the QGIS Cloud plugin
          3. Deleting maps from the web interface
        7. Summary
      12. 5. Answering Questions with Density Analysis
        1. Density analysis and heatmaps
        2. Creating heat maps with the Heatmap plugin
          1. Detecting the "hottest" regions
          2. Looking for distribution patterns with contour lines
        3. Mapping density with a hexagonal grid
          1. Creating a hexagonal grid
          2. Counting points in grid cells
          3. Removing redundant data
        4. Summary
      13. 6. Answering Questions with Visibility Analysis
        1. The basics of visibility analysis
        2. Step 1 – converting a buildings' vector layer to raster
        3. Step 2 – combining the DEM and buildings layers
        4. Step 3 – defining observation points
          1. Creating an empty vector layer
          2. Populating a layer with points
          3. Providing points with height values
        5. Step 4 – creating viewshed coverages
        6. Step 5 – finding scenic points
        7. Step 6 – styling the results in 3D
          1. Working on the general settings of a 3D scene
          2. Adjusting 3D visualization of the observation points
          3. Adjusting 3D visualization of building footprints
        8. Summary
      14. 7. Answering Questions with Suitability Analysis
        1. Basics of suitability analysis
        2. Step 1 – define the goal and objectives of our analysis
        3. Step 2 – analyze the available data and define its relevance
        4. Step 3 – define the criteria of analysis
        5. Step 4 – Analyze and prepare the data
          1. Rasterizing and ranking categorized vector layers
          2. Ranking density rasters
          3. Generating and ranking proximity rasters
        6. Step 5 – overlay the data and interpret the results
        7. Summary
      15. 8. Automating Analysis with Processing Models
        1. The QGIS Processing framework
        2. Graphical Modeler
        3. Adding inputs
        4. Implementing the workflow
        5. Filling model metadata and saving
        6. Editing models
        7. Sharing models
        8. Summary
      16. 9. Automating Analysis with Processing Scripts
        1. Python scripts in Processing
          1. Listing the available algorithms
          2. Getting information about an algorithm
          3. Executing the algorithm and loading the results
        2. Defining inputs and outputs
        3. Implementing the algorithm
        4. Writing help and saving
        5. Sharing scripts
        6. Summary
      17. 10. Developing a Python Plugin – Select by Radius
        1. QGIS plugins
        2. Creating the plugin's skeleton
        3. Designing the plugin's GUI
          1. Designing the About dialog
          2. Designing the main plugin dialog
        4. Using Designer UI files in the plugin
          1. Adding the About dialog to the plugin
          2. Adding the main plugin dialog
        5. Implementing feature selection
        6. Adding translations
        7. Preparing the plugin for publishing
        8. Summary
      18. Index