0

I am using ogrinfo in Python to find out information about a shapefile

from subprocess import Popen, PIPE

args = ['ogrinfo', '-so', '-al', 'C:/test/test_shapefile.shp'] process = Popen(args, stdout=PIPE, stderr=PIPE)

stdout = process.communicate()[0].decode('utf-8').strip() print(stdout)

This obviously gives me a large summary, but I'm wondering is there any way to specify that I only want information regarding the extents or EPSG for example?

Vince
  • 20,017
  • 15
  • 45
  • 64

0 Answers0