OGR batch commands

OGR offers a series of batch commands that can be used to describe and convert existing geospatial vector data. We've already mentioned two of them, ogrinfo and ogr2ogr, in Chapter 4, Data Types, Storage, and Conversion:

  • ogrinfo can be used for doing all sorts of reporting on vector data, such as listing supported vector formats, available layers, and summary details, and can be combined with SQL-query syntax to select features from a dataset.
  • ogr2ogr is for doing vector data translations, such as converting vector files between different formats, converting multiple layers into a new data source, and reproject vector data and filter features based on location. It can also be used with SQL-query syntax just like ogrinfo ...

Get Mastering Geospatial Analysis 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.