O'Reilly logo

Geoprocessing with Python by Chris Garrard

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required