Skip to main content
deleted 195 characters in body
Source Link

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?

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?

I am using ogrinfo to find out information about a shapefile

ogrinfo -so -al 'C:/test/test_shapefile.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?

added 178 characters in body
Source Link

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

ogrinfofrom -rosubprocess import Popen, PIPE


args = ['ogrinfo', '-soso', '-alal', 'C:/test/test_shapefile.shp'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?

I am using ogrinfo to find out information about a shapefile

ogrinfo -ro, -so, -al, 'C:/test/test_shapefile.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?

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?

edited tags
Link
Source Link
Loading