<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="http://www.r-bloggers.com/qgis-open-source-gis-r/"></div></div><div><a data-url="http://www.r-bloggers.com/qgis-open-source-gis-r/" data-counturl="http://www.r-bloggers.com/qgis-open-source-gis-r/" data-count="horizontal" data-text="QGIS, Open Source GIS &amp; R" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://www.arilamstein.com/blog/2016/05/31/qgis-open-source-gis-r/"> R – AriLamstein.com</a></strong>, and kindly contributed to <a rel="nofollow" href="http://www.r-bloggers.com/">R-bloggers)</a> </div>
<p><em>Today’s post is by Kurt Menke, the owner of <a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cDovL3d3dy5iaXJkc2V5ZXZpZXdnaXMuY29tLw%3D%3D&feed-stats-url-post-id=2597">Bird’s Eye View GIS</a>, a GIS consultancy. Kurt also wrote the book <a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cDovL3d3dy5hbWF6b24uY29tL01hc3RlcmluZy1RR0lTLUt1cnQtTWVua2UtR0lTUC9kcC8xNzg0Mzk4Njgz&feed-stats-url-post-id=2597">Mastering QGIS</a>. In my latest course (<a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cDovL2NvdXJzZXMyLmFyaWxhbXN0ZWluLmNvbS9jb3Vyc2VzL3NoYXBlZmlsZXMtZm9yLXItcHJvZ3JhbW1lcnM%3D&feed-stats-url-post-id=2597">Shapefiles for R Programmers</a>) I briefly introduce people to QGIS. Kurt’s post below gives you a roadmap for learning more. </em></p>
<p>I come to this blog from a slightly different, but related, perspective. I am a GIS specialist. I run my own GIS consulting business, <a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cDovL3d3dy5iaXJkc2V5ZXZpZXdnaXMuY29tLw%3D%3D&feed-stats-url-post-id=2597">Bird’s Eye View GIS</a>, out of Albuquerque, NM. I’ve have been a user and advocate of open source GIS for a long time. I’ve long been aware of the power of R and have dabbled in it from time to time. I discovered Ari and his great <a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cDovL2FyaWxhbXN0ZWluLmNvbS9mcmVlLWNvdXJzZQ%3D%3D&feed-stats-url-post-id=2597">Learn to Map Census Data in R</a> course via Twitter back in February. When I saw his free course, I thought it would be a great opportunity to get more comfortable with R.</p>
<p><strong>QGIS</strong></p>
<p>What I want to do here, is briefly introduce all of you R users to <a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cDovL3d3dy5xZ2lzLm9yZy9lbi9zaXRlLw%3D%3D&feed-stats-url-post-id=2597">QGIS</a>, the leading free and open source (FOSS) desktop GIS.  I’ll also cover some QGIS resources. R and QGIS can be a beautiful marriage. What began in 2002 as a simple data viewer has evolved into a fully functional GIS package, with a very dedicated and active user community. Currently a new version of QGIS is released every four months! Due to this rapid release schedule, a long-term release (LTR) version is created each spring. The LTR works better for productions environments. QGIS is multi-platform, running on Windows, Mac and Linux. There is also an <a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cDovL3d3dy5vcGVuZ2lzLmNoL2FuZHJvaWQtZ2lzL3FmaWVsZC8%3D&feed-stats-url-post-id=2597">Android </a>version, and with <a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cDovL3d3dy5zdGF0c21hcHNucGl4LmNvbS8yMDE2LzAxL3J1bm5pbmctcWdpcy1vbi1jaHJvbWVib29rLmh0bWw%3D&feed-stats-url-post-id=2597">crouton </a>it can be installed on a Chromebook!</p>
<p>Under the hood, QGIS leverages several other FOSS packages. One of those (<a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cDovL3d3dy5nZGFsLm9yZy8%3D&feed-stats-url-post-id=2597">GDAL/OGR</a>), allows it to read 42 vector file formats and 88 raster formats! It can also connect to several spatial databases including: <a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cDovL3Bvc3RnaXMubmV0Lw%3D%3D&feed-stats-url-post-id=2597">PostgreSQL/PostGIS,</a> <a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cDovL3d3dy5nYWlhLWdpcy5pdC9nYWlhLXNpbnMv&feed-stats-url-post-id=2597">SpatiaLite</a>, Microsoft SQL Server and Oracle. If that weren’t enough it can connect to <a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cDovL3d3dy5vcGVuZ2Vvc3BhdGlhbC5vcmcv&feed-stats-url-post-id=2597">OGC </a>web services such as: WMS, WCS and WFS. The image below shows the basic layout and a map of total population by county. The basemap is being streamed from <a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cHM6Ly9jYXJ0b2RiLmNvbS8%3D&feed-stats-url-post-id=2597">CartoDB</a>. This particular population dataset is a shapefile. QGIS has fantastic cartographic capabilities including some that are not available in any other GIS package: <a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cDovL255YWxsZGF3c29uLm5ldC8yMDEzLzAzL2NvbWluZy1zb29uLWluLXFnaXMtMi0wLWJsZW5kLW1vZGVzLWZvci1sYXllcnMv&feed-stats-url-post-id=2597">Blending Modes</a> and <a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cDovL255YWxsZGF3c29uLm5ldC8yMDE1LzA0L2ludHJvZHVjaW5nLXFnaXMtbGl2ZS1sYXllci1lZmZlY3RzLw%3D%3D&feed-stats-url-post-id=2597">Live Layer Effects</a>.</p>
<div class="wp-caption"><a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cDovL3d3dy5hcmlsYW1zdGVpbi5jb20vd3AtY29udGVudC91cGxvYWRzLzIwMTYvMDUvUUdJU2Fubm90YXRlZC5qcGc%3D&feed-stats-url-post-id=2597"><img sizes="(max-width: 676px) 100vw, 676px" srcset="http://i2.wp.com/www.arilamstein.com/wp-content/uploads/2016/05/QGISannotated.jpg?resize=1024%2C662 1024w, http://i2.wp.com/www.arilamstein.com/wp-content/uploads/2016/05/QGISannotated.jpg?resize=300%2C194 300w, http://i2.wp.com/www.arilamstein.com/wp-content/uploads/2016/05/QGISannotated.jpg?resize=768%2C497 768w, http://i2.wp.com/www.arilamstein.com/wp-content/uploads/2016/05/QGISannotated.jpg?resize=676%2C437 676w, http://i2.wp.com/www.arilamstein.com/wp-content/uploads/2016/05/QGISannotated.jpg?w=1203 1203w" alt="QGIS Desktop" class="wp-image-2600" src="http://i2.wp.com/www.arilamstein.com/wp-content/uploads/2016/05/QGISannotated.jpg?resize=676%2C437" data-recalc-dims="1"></a>
<p class="wp-caption-text">QGIS Desktop</p>
</div>
<p><strong>Spatial Analysis with QGIS</strong></p>
<p>I know R users are a technical group, so I’m happy to say QGIS also has a robust set of geoprocessing functionality. The Processing Toolbox, (shown on the right above) has both native QGIS tools for processing spatial data, along with tools from numerous other FOSS providers, including <strong>R</strong>!</p>
<p><em>NOTE: R needs to be installed on your computer and the PATH has to be correctly set up in the Processing menu -></em><em> Processing Options settings.</em></p>
<p>The image below shows the Toolbox with the R section highlighted.</p>
<div class="wp-caption"><a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cDovL3d3dy5hcmlsYW1zdGVpbi5jb20vd3AtY29udGVudC91cGxvYWRzLzIwMTYvMDUvUHJvY2Vzc3NpbmdSLmpwZw%3D%3D&feed-stats-url-post-id=2597"><img sizes="(max-width: 302px) 100vw, 302px" srcset="http://i2.wp.com/www.arilamstein.com/wp-content/uploads/2016/05/ProcesssingR.jpg?w=302 302w, http://i2.wp.com/www.arilamstein.com/wp-content/uploads/2016/05/ProcesssingR.jpg?resize=300%2C288 300w" alt="QGIS Processing Toolbox" class="wp-image-2599" src="http://i2.wp.com/www.arilamstein.com/wp-content/uploads/2016/05/ProcesssingR.jpg?resize=302%2C290" data-recalc-dims="1"></a>
<p class="wp-caption-text">QGIS Processing Toolbox</p>
</div>
<p>You can write your own R scripts, and there is an online R scripts collection for QGIS. To access that, simply open the <strong>Get R scripts from on-line scripts collection</strong> tool. This opens the <strong>Get scripts and models</strong> dialog shown below. Here you can choose the scripts you’d like to install and click <strong>OK</strong>.</p>
<div class="wp-caption"><a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cDovL3d3dy5hcmlsYW1zdGVpbi5jb20vd3AtY29udGVudC91cGxvYWRzLzIwMTYvMDUvR2V0UlNjcmlwdHMuanBn&feed-stats-url-post-id=2597"><img sizes="(max-width: 656px) 100vw, 656px" srcset="http://i1.wp.com/www.arilamstein.com/wp-content/uploads/2016/05/GetRScripts.jpg?w=656 656w, http://i1.wp.com/www.arilamstein.com/wp-content/uploads/2016/05/GetRScripts.jpg?resize=300%2C252 300w" alt="Get R Scripts dialog" class="wp-image-2598" src="http://i1.wp.com/www.arilamstein.com/wp-content/uploads/2016/05/GetRScripts.jpg?resize=656%2C552" data-recalc-dims="1"></a>
<p class="wp-caption-text">Get R Scripts dialog</p>
</div>
<p>Once a script is loaded you can run it like any other tool, or open it in the QGIS Script Editor. Below the histogram script from the QGIS collection is open.</p>
<div class="wp-caption"><a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cDovL3d3dy5hcmlsYW1zdGVpbi5jb20vd3AtY29udGVudC91cGxvYWRzLzIwMTYvMDUvU2NyaXB0RWRpdG9yLmpwZw%3D%3D&feed-stats-url-post-id=2597"><img sizes="(max-width: 629px) 100vw, 629px" srcset="http://i2.wp.com/www.arilamstein.com/wp-content/uploads/2016/05/ScriptEditor.jpg?w=629 629w, http://i2.wp.com/www.arilamstein.com/wp-content/uploads/2016/05/ScriptEditor.jpg?resize=300%2C124 300w" alt="QGIS Script Editor" class="wp-image-2601" src="http://i2.wp.com/www.arilamstein.com/wp-content/uploads/2016/05/ScriptEditor.jpg?resize=629%2C260" data-recalc-dims="1"></a>
<p class="wp-caption-text">QGIS Script Editor</p>
</div>
<p>The Processing framework also includes a graphical modeler. This allows you to set up an entire workflow from simple to complex. A model can include any datasets and tools from any provider, including other models. The model below is a site selection model for a heliport in Corpus Christi.</p>
<div class="wp-caption"><a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cDovL3d3dy5hcmlsYW1zdGVpbi5jb20vd3AtY29udGVudC91cGxvYWRzLzIwMTYvMDUvTW9kZWxfd2l0aF9JbnRlcnNlY3RfQWRkZWQucG5n&feed-stats-url-post-id=2597"><img sizes="(max-width: 1006px) 100vw, 1006px" srcset="http://i0.wp.com/www.arilamstein.com/wp-content/uploads/2016/05/Model_with_Intersect_Added.png?w=1006 1006w, http://i0.wp.com/www.arilamstein.com/wp-content/uploads/2016/05/Model_with_Intersect_Added.png?resize=300%2C162 300w, http://i0.wp.com/www.arilamstein.com/wp-content/uploads/2016/05/Model_with_Intersect_Added.png?resize=768%2C415 768w, http://i0.wp.com/www.arilamstein.com/wp-content/uploads/2016/05/Model_with_Intersect_Added.png?resize=676%2C366 676w" alt="QGIS Graphical Modeler" class="wp-image-2603" src="http://i0.wp.com/www.arilamstein.com/wp-content/uploads/2016/05/Model_with_Intersect_Added.png?resize=676%2C366" data-recalc-dims="1"></a>
<p class="wp-caption-text">QGIS Graphical Modeler</p>
</div>
<p>Models can also be saved as Python scripts. QGIS has a Python console giving you another powerful scripting environment to work with. There’s obviously a lot to learn here.</p>
<p>Phew! There is way more to QGIS than I can do justice to in a blog post.  So below I’m going to give you some information on resources.</p>
<p><strong>QGIS Resources (#shamelessplug)</strong></p>
<p>One way I’ve become involved in the QGIS community is writing curricula and authoring two books on QGIS. Two years ago, myself and several colleagues authored the <a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cHM6Ly9mb3NzZ2VvLm9yZy8%3D&feed-stats-url-post-id=2597">GeoAcademy, </a>which is the first ever GIS curriculum based on a national standard – the U.S. Department of Labor’s <a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cDovL3d3dy5jYXJlZXJvbmVzdG9wLm9yZy9jb21wZXRlbmN5bW9kZWwvY29tcGV0ZW5jeS1tb2RlbHMvZ2Vvc3BhdGlhbC10ZWNobm9sb2d5LmFzcHg%3D&feed-stats-url-post-id=2597">Geospatial Competency Model (GTCM)</a>. The GTCM consists of the knowledge, skills and abilities needed to be a working GIS professional.  The GeoAcademy consists of 5 complete college <a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cHM6Ly9mb3NzZ2VvLm9yZy9mcmVlLXFnaXMtY291cnNlcy8%3D&feed-stats-url-post-id=2597">courses</a>.</p>
<ul>
<li>Introduction to Geospatial Technology Using QGIS</li>
<li>Spatial Analysis Using QGIS</li>
<li>Data Acquisition and Management Using QGIS</li>
<li>Cartography Using QGIS</li>
<li>Remote Sensing Using QGIS</li>
</ul>
<p>This winter I converted the curriculum to fit into a convenient workbook format with Locate Press. The book is called <a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cHM6Ly9sb2NhdGVwcmVzcy5jb20vZHF3&feed-stats-url-post-id=2597">Discover QGIS</a>. and is hot off the presses. I mentioned how fast QGIS is developing. Originally written for QGIS 2.4, the GeoAcademy material in this workbook has been updated for use with QGIS 2.14. It therefore represents the most up-to-date version of the GeoAcademy curriculum.</p>
<p>At the moment the digital version of the book is available as a <a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cHM6Ly9sb2NhdGVwcmVzcy5jb20vYnV5X3BkZi9kcXc%3D&feed-stats-url-post-id=2597">Preview Edition</a>. Purchasing this ebook, entitles you to the full version when it is released. We are just working on a few formatting issues.</p>
<div class="wp-caption"><a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cDovL3d3dy5hcmlsYW1zdGVpbi5jb20vd3AtY29udGVudC91cGxvYWRzLzIwMTYvMDUvRGlzY292ZXJRR0lTQ292ZXIuanBn&feed-stats-url-post-id=2597"><img sizes="(max-width: 258px) 100vw, 258px" srcset="http://i1.wp.com/www.arilamstein.com/wp-content/uploads/2016/05/DiscoverQGISCover.jpg?resize=258%2C300 258w, http://i1.wp.com/www.arilamstein.com/wp-content/uploads/2016/05/DiscoverQGISCover.jpg?resize=768%2C892 768w, http://i1.wp.com/www.arilamstein.com/wp-content/uploads/2016/05/DiscoverQGISCover.jpg?resize=881%2C1024 881w, http://i1.wp.com/www.arilamstein.com/wp-content/uploads/2016/05/DiscoverQGISCover.jpg?resize=676%2C785 676w" alt="Discover QGIS" class="wp-image-2602" src="http://i1.wp.com/www.arilamstein.com/wp-content/uploads/2016/05/DiscoverQGISCover.jpg?resize=258%2C300" data-recalc-dims="1"></a>
<p class="wp-caption-text">Discover QGIS</p>
</div>
<p>Prior to this I authored <a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cHM6Ly93d3cucGFja3RwdWIuY29tL2FwcGxpY2F0aW9uLWRldmVsb3BtZW50L21hc3RlcmluZy1xZ2lz&feed-stats-url-post-id=2597">Mastering QGIS</a> with Packt Publishing. This is a more thorough treatment of QGIS. Beyond these two books there are many other resources including:</p>
<ul>
<li><a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cDovL2RvY3MucWdpcy5vcmcvMi44L2VuL2RvY3MvdXNlcl9tYW51YWwv&feed-stats-url-post-id=2597">Online User Manual</a></li>
<li><a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cHM6Ly9saXN0cy5vc2dlby5vcmcvbGlzdGluZm8vcWdpcy11c2Vy&feed-stats-url-post-id=2597">ListServ</a></li>
<li>Other books such as <a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cHM6Ly9sb2NhdGVwcmVzcy5jb20vcW1k&feed-stats-url-post-id=2597">QGIS Map Design</a>, <a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cHM6Ly93d3cucGFja3RwdWIuY29tL2JpZy1kYXRhLWFuZC1idXNpbmVzcy1pbnRlbGxpZ2VuY2UvbGVhcm5pbmctcWdpcy10aGlyZC1lZGl0aW9u&feed-stats-url-post-id=2597">Learning QGIS</a> and the<a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cHM6Ly93d3cucGFja3RwdWIuY29tL2FwcGxpY2F0aW9uLWRldmVsb3BtZW50L3FnaXMtMi1jb29rYm9vaw%3D%3D&feed-stats-url-post-id=2597"> QGIS 2 Cookbook</a>.</li>
</ul>
<p>With this extremely short introduction I encourage you to <a target="_blank" href="http://www.arilamstein.com/?feed-stats-url=aHR0cDovL3d3dy5xZ2lzLm9yZy9lbi9zaXRlL2ZvcnVzZXJzL2Rvd25sb2FkLmh0bWw%3D&feed-stats-url-post-id=2597">download QGIS</a> and begin experimenting. It is fantastic software. Meanwhile I have a lot of R to learn! See you in the twittersphere (@geomenke)</p>
<p> <img height="1" width="1" src="http://www.arilamstein.com/?feed-stats-post-id=2597">
<p>The post <a target="_blank" rel="nofollow" href="http://www.arilamstein.com/blog/2016/05/31/qgis-open-source-gis-r/">QGIS, Open Source GIS &amp; R</a> appeared first on <a target="_blank" rel="nofollow" href="http://www.arilamstein.com/">AriLamstein.com</a>.</p>
<p><div><div><div><div data-width="55" data-show-faces="false" data-send="true" data-layout="box_count" data-height="62" data-href="http://www.r-bloggers.com/qgis-open-source-gis-r/"></div></div><div><a data-url="http://www.r-bloggers.com/qgis-open-source-gis-r/" data-counturl="http://www.r-bloggers.com/qgis-open-source-gis-r/" data-count="vertical" data-text="QGIS, Open Source GIS &amp; R" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://www.arilamstein.com/blog/2016/05/31/qgis-open-source-gis-r/"> R – AriLamstein.com</a></strong>.</div>
<hr>
<a rel="nofollow" href="http://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="http://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a title="The R Project for Statistical Computing" rel="nofollow" href="http://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="http://www.r-bloggers.com/?s=data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="http://www.r-bloggers.com/?s=Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="http://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="http://www.r-bloggers.com/?s=map">maps</a>, <a title="Animation in R" rel="nofollow" href="http://www.r-bloggers.com/?s=animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="http://www.r-bloggers.com/?s=RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="http://www.r-bloggers.com/?s=sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="http://www.r-bloggers.com/?s=LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="http://www.r-bloggers.com/?s=SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="http://www.r-bloggers.com/?s=eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="http://www.r-bloggers.com/?s=git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="http://www.r-bloggers.com/?s=hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="http://www.r-bloggers.com/?s=Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="http://www.r-bloggers.com/?s=PCA">PCA</a>, <a title="Time series" rel="nofollow" href="http://www.r-bloggers.com/?s=time+series">time series</a>, <a title="finance trading" rel="nofollow" href="http://www.r-bloggers.com/?s=trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/6o-PJG6EOtg"></a></div>