Table of Contents

 

Copyright

Brief Table of Contents

Table of Contents

Preface

Acknowledgments

About this Book

About the Author

About the Cover Illustration

Chapter 1. Introduction

1.1. Why use Python and open source?

1.2. Types of spatial data

1.3. What is geoprocessing?

1.4. Exploring your data

1.5. Summary

Chapter 2. Python basics

2.1. Writing and executing code

2.2. Basic structure of a script

2.3. Variables

2.4. Data types

2.4.1. Booleans

2.4.2. Numeric types

2.4.3. Strings

2.4.4. Lists and tuples

2.4.5. Sets

2.4.6. Dictionaries

2.5. Control flow

2.5.1. If statements

2.5.2. While statements

2.5.3. For statements

2.5.4. break, continue, and else

2.6. Functions

2.7. Classes

2.8. Summary

Chapter 3. Reading and writing vector data

3.1. Introduction to vector data

3.2. Introduction to OGR

3.3. Reading vector data

3.3.1. Accessing specific features

3.3.2. Viewing your data

3.4. Getting metadata about the data

3.5. Writing vector data

3.5.1. Creating new data sources

3.5.2. Creating new fields

3.6. Updating existing data

3.6.1. Changing the layer definition

3.7. Summary