I'm trying to use ogrinfo to get some details on a shapefile I downloaded. Currently, the only way I know how to do this is to load it into QGIS and manually click around to find any information on it, like opening the attribute table.
I just want to be able to see any metadata is tagged along with the features. If I do:
ogrinfo -al USA_adm0.shp
I can see at the beginning there is a lot of useful information, but then it flies past with all the feature data.
Can someone help me out?
EDIT
This is what I get on my mac using the -ro and -so flag, doesn't seem to be much help.
->ogrinfo -ro -so USA_adm0.shp
INFO: Open of `USA_adm0.shp'
using driver `ESRI Shapefile' successful.
1: USA_adm0 (Polygon)
ogrinfo --help
where it needs you to specifyogrinfo datasource_name layer
and you forgot to add alayer
(so it listed the layers for you instead). Using-al
, it will list info on All Layers without you specifying a layer.-ro -so
doesn't do much. I am experiencing the same problem.-geom=NO
flag did the trick for meogrinfo -al -ro -so shapefile.shp
worked for me to get all the information