I'm trying to use ogrinfo to get some details on a shapefile.Now, the only way that I know is using orginfo:
ogrinfo -ro -so -al BRA_001.shpBut its display all information about the shape:
INFO: Open of `.\BRA_001.shp' using driver `ESRI Shapefile' successful.Layer name: BRA_001Geometry: 3D PolygonFeature Count: 273Extent: (-42.645514, -22.360532) - (-42.321728, -22.198300)Layer SRS WKT:GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], TOWGS84[0,0,0,0,0,0,0], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.0174532925199433, AUTHORITY["EPSG","9108"]], AUTHORITY["EPSG","4326"]]Name: String (0.0)description: String (0.0)timestamp: String (0.0)begin: String (0.0)end: String (0.0)altitudeMode: String (0.0)tessellate: Integer (0.0)extrude: Integer (0.0)visibility: Integer (0.0)drawOrder: String (0.0)icon: String (0.0)It's very useful by the way, but what I need is get only metadata names with types, e.g.:
Name: String (0.0)description: String (0.0)timestamp: String (0.0)begin: String (0.0)end: String (0.0)altitudeMode: String (0.0)tessellate: Integer (0.0)extrude: Integer (0.0)visibility: Integer (0.0)drawOrder: String (0.0)icon: String (0.0)Can someone help me out?
أكثر...
ogrinfo -ro -so -al BRA_001.shpBut its display all information about the shape:
INFO: Open of `.\BRA_001.shp' using driver `ESRI Shapefile' successful.Layer name: BRA_001Geometry: 3D PolygonFeature Count: 273Extent: (-42.645514, -22.360532) - (-42.321728, -22.198300)Layer SRS WKT:GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], TOWGS84[0,0,0,0,0,0,0], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.0174532925199433, AUTHORITY["EPSG","9108"]], AUTHORITY["EPSG","4326"]]Name: String (0.0)description: String (0.0)timestamp: String (0.0)begin: String (0.0)end: String (0.0)altitudeMode: String (0.0)tessellate: Integer (0.0)extrude: Integer (0.0)visibility: Integer (0.0)drawOrder: String (0.0)icon: String (0.0)It's very useful by the way, but what I need is get only metadata names with types, e.g.:
Name: String (0.0)description: String (0.0)timestamp: String (0.0)begin: String (0.0)end: String (0.0)altitudeMode: String (0.0)tessellate: Integer (0.0)extrude: Integer (0.0)visibility: Integer (0.0)drawOrder: String (0.0)icon: String (0.0)Can someone help me out?
أكثر...