Python Geospatial Analysis Essentials
eBook - ePub

Python Geospatial Analysis Essentials

Erik Westra

Share book
  1. 200 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Python Geospatial Analysis Essentials

Erik Westra

Book details
Book preview
Table of contents
Citations

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Python Geospatial Analysis Essentials an online PDF/ePUB?
Yes, you can access Python Geospatial Analysis Essentials by Erik Westra in PDF and/or ePUB format, as well as other popular books in Informatica & Sviluppo di applicazioni. We have over one million books available in our catalogue for you to explore.

Information

Year
2015
ISBN
9781782174516

Python Geospatial Analysis Essentials


Table of Contents

Python Geospatial Analysis Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Geospatial Analysis and Techniques
About geospatial analysis
Understanding geospatial data
Setting up your Python installation
Installing GDAL
Installing Shapely
Obtaining some geospatial data
Unlocking the shapefile
Analyzing the data
A program to identify neighboring countries
Summary
2. Geospatial Data
Geospatial data quality
Types of geospatial data
Shapefiles
Well-known text
Well-known binary
Spatial databases
Geospatial microformats
GeoJSON
GML
Digital elevation models
Raster basemaps
Multiband raster files
Sources of freely available geospatial data
Natural Earth Data
OpenStreetMap
US Census Bureau
World Borders Dataset
GLOBE
National Elevation Dataset
Reading and writing geospatial data using Python
Reading vector data
Writing vector data
Reading raster data
Writing raster data
Dealing with spatial reference systems
WGS84
Universal Transverse Mercator
Describing spatial reference systems
Transforming coordinates
Calculating lengths and areas
Geospatial data errors and how to fix them
Points
LineStrings
Linear Rings
Polygons
MultiPolygons
Fixing invalid geometries
Summary
3. Spatial Databases
Spatial database concepts
Installing a spatial database
Installing PostgreSQL
Installing PostGIS
Installing psycopg2
Accessing PostGIS from Python
Setting up a spatial database
Importing spatial data
Querying spatial data
Manipulating spatial data
Exporting spatial data
Summary
4. Creating Maps
Introducing Mapnik
Installing Mapnik
A taste of Mapnik
Building a map
Styling a map
Learning Mapnik
Datasources
Symbolizers
PointSymbolizer
LineSymbolizer
PolygonSymbolizer
TextSymbolizer
RasterSymbolizer
Map rendering
A working example
Next steps
Summary
5. Analyzing Geospatial Data
Libraries for spatial analysis
PyProj
NetworkX
Spatial analysis recipes
Calculating and comparing coordinates
Calculating lengths
Calculating areas
Calculating shortest paths
Summary
6. Building a Complete Geospatial Analysis System
Matching GPS data against a map
An overview of the GPS Heatmap system
Obtaining the necessary data
Obtaining GPS data
Downloading the road data
Implementing the GPS Heatmap system
Initializing the database
Importing the road data
Splitting the road data into segments
Constructing a network of directed road segments
Implementing the map matching algorithm
Generating the GPS heatmap
Further improvements
Summary
Index

Python Geospatial Analysis Essentials

Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: June 2015
Production reference: 1150615
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78217-451-6
www.packtpub.com

Credits

Author
Erik Westra
Reviewers
Min Feng
Eric Hardin
Richard Marsden
Puneet Narula
Ryan Small
Commissioning Editor
Amarabha Banerjee
Acquisition Editor
Vinay Argekar
Content Development Editor
Mamata Walkar
Technical Editor
Pankaj Kadam
Copy Editors
Puja Lalwani
Laxmi Subramanian
Project Coordinator
Shipra Chawhan
Proofreaders
Stephen Copestake
Safis Editing
Indexer
Tejal Soni
Production Coordinator
Manu Joseph
Cover Work
Manu Joseph

About the Author

Erik Westra has been a professional software developer for over 25 years now, and he has worked almost exclusively in Python for the past decade. Erik's early interest in graphical user interface design led to the development of one of the most advanced urgent courier dispatch systems used by messenger and courier companies worldwide.
In recent years, Erik has been involved in the design and implementation of systems matching seekers and providers of goods and services across a range of geographical areas, as well as real-time messaging and payment systems. This work has included the creation of real-time geocoders and map-based views of constantly changing data. Erik is based in New Zealand, and works for companies worldwide.
Erik is also the author of the titles Python Geospatial Development and Building Mapping Applications with QGIS, both by Packt Publishing.

About the Reviewers

Min Feng completed his PhD degree in cartography and geographic information systems in 2008 and has been working at the Global Land Cover Facility (GLCF), University of Maryland, Chinese Academy of Sciences (CAS), and Global Resource Information Database (GRID) of the United Nations Environment Programme (UNEP). Dr. Feng has been engaged in global high-resolution land cover and change research and is an expert with high-performance geospatial data processing, geospatial model sharing, and integrated simulation. His work has been published in top-ranking remote sensing and GIS journals. Dr. Feng is familiar with OGC/ISO standards and open source tools and libraries, and is also capable of programming using many languages, including C/C++, Java, Python, R, and IDL. He has also reviewed Learning QGIS – Second Edition, Packt Publishing.
Eric Hardin works in the defense and aerospace industry as a software engineer with an international research and engineering company. While pursuing a PhD in physics, he used geospat...

Table of contents