Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
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)

Product type Book
Published in Jul 2017
Publisher Packt
ISBN-13 9781787120730
Pages 378 pages
Edition 1st Edition
Languages
Author (1):
Andrew Minteer Andrew Minteer
Profile icon Andrew Minteer
Toc

Table of Contents (20) Chapters close

Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
1. Defining IoT Analytics and Challenges 2. IoT Devices and Networking Protocols 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 €14.99/month. Cancel anytime