Chapter 6. Manipulating geometries with OGR

This chapter covers

  • Creating points, lines, and polygons from scratch
  • Editing existing geometries

Thus far we’ve talked about using OGR to read and write vector datasets and how to edit attribute values, but you haven’t manipulated the geometries in any way. If you want to create your own data and not use someone else’s, you’ll need to know how to work with the actual geometries. For example, if you have a time series of GPS coordinates from a hiking or bicycling trip, you can create a line that represents the route you took. You can even compare the timestamps from the GPS locations to the timestamps on the photos you took to create a point dataset showing where you stopped to take pictures. ...

Get Geoprocessing with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.