Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Analytics for the Internet of Things (IoT)

You're reading from   Analytics for the Internet of Things (IoT) Intelligent analytics for your intelligent devices

Arrow left icon
Product type Paperback
Published in Jul 2017
Publisher Packt
ISBN-13 9781787120730
Length 378 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Andrew Minteer Andrew Minteer
Author Profile Icon Andrew Minteer
Andrew Minteer
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Defining IoT Analytics and Challenges 2. IoT Devices and Networking Protocols FREE CHAPTER 3. IoT Analytics for the Cloud 4. Creating an AWS Cloud Analytics Environment 5. Collecting All That Data - Strategies and Techniques 6. Getting to Know Your Data - Exploring IoT Data 7. Decorating Your Data - Adding External Datasets to Innovate 8. Communicating with Others - Visualization and Dashboarding 9. Applying Geospatial Analytics to IoT Data 10. Data Science for IoT Analytics 11. Strategies to Organize Data for Analytics 12. The Economics of IoT Analytics 13. Bringing It All Together

Solving the pollution reporting problem


From what you have learned in this chapter, you can now solve the IoT pollution sensor data by congressional districts problem introduced earlier. Follow these general steps using either Python code or spatial query functions in a database such as PostGIS:

  1. Download a shapefile for U.S. Interstates such as the U.S. National Transportation Atlas Interstate Highways shapefile available from the University of Iowa (ftp://ftp.igsb.uiowa.edu/gis_library/USA/us_interstates.htm).
  2. Download a shapefile for US congressional districts such as the TIGER/Line Shapefile available from the US Census (https://www.census.gov/cgi-bin/geo/shapefiles/index.php?year=2016&layergroup=Congressional+Districts+%28115%29).
  3. Load the shapefiles into a geospatial database using ogr2ogr or into Python using the fiona package.
  4. Add a 1 km buffer to the Interstates MultiLineString using the shapely package or ST_Buffer in PostGIS.
  5. Use a mapping API such as Google Maps to geocode each...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime