I am using ogrinfo in python to find out information about a shapefile
from subprocess import Popen, PIPE
args = ['ogrinfo',ogrinfo '-so',so '-al',al 'C:/test/test_shapefile.shp']
process = Popen(args, stdout=PIPE, stderr=PIPE)
stdout = process.communicate()[0].decode('utf-8').strip()
print(stdout)
shp'
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?