Read OpenAir File using Python GDAL

Since you’re dealing with vector data, you need to use ogr instead of gdal (it’s normally packaged along with gdal)

So you can do:

from osgeo import ogr

ds = ogr.Open('export.txt')
layer = ds.GetLayer(0)
featureCount = layer.GetFeatureCount()


There’s plenty of info out there on using ogr, but this cookbook might be helpful.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top