Chapter 10. Working with raster data

 

This chapter covers

  • Georeferencing with ground control points
  • Working with attributes, histograms, and color tables
  • Using the GDAL virtual format
  • Reprojecting rasters
  • Using GDAL error handling

In the last chapter you learned the basics of raster processing, such as how to read and write data and work with individual bands, and how rasters use geotransforms to orient themselves to the real world. This was a great first step, but what if you have an old aerial photograph or scanned paper map that you’d like to turn into a geographic dataset? You might want to do that because it’s fun and interesting, or you might want to do a change analysis using this data along with more current imagery. To do that, you must overlay the old data on the new. You can do this using ground control points, which are essentially a collection of points with known locations. This chapter will teach you how to use these points.

10.1. Ground control points

10.2. Converting pixel coordinates to another image

10.3. Color tables

10.4. Histograms

10.5. Attribute tables

10.6. Virtual raster format

10.7. Callback functions

10.8. Exceptions and error handlers

10.9. Summary