| 1 | = The `ogrinfo` utility = |
| 2 | ''The official documentation for the `ogrinfo` utility is http://www.gdal.org/ogr/ogrinfo.html'' |
| 3 | |
| 4 | == -so Summary Only == |
| 5 | ''supress listing of features, show only the summary information like projection, schema, feature count and extents.'' |
| 6 | |
| 7 | To get this info with shapefiles you must also provide the ``layer`` name, else not much useful is returned, `ogrinfo -so contours.shp`: |
| 8 | {{{ |
| 9 | INFO: Open of `contours.shp' |
| 10 | using driver `ESRI Shapefile' successful. |
| 11 | 1: contours (Line String) |
| 12 | }}} |
| 13 | |
| 14 | Likely what is really wanted is `ogrinfo -so contours.shp` '''`contours`''' |
| 15 | |
| 16 | {{{ |
| 17 | INFO: Open of `contours.shp' |
| 18 | using driver `ESRI Shapefile' successful. |
| 19 | |
| 20 | Layer name: contours |
| 21 | Geometry: Line String |
| 22 | Feature Count: 3393 |
| 23 | Extent: (57537.995662, 663561.802226) - (88297.082026, 694443.881449) |
| 24 | Layer SRS WKT: |
| 25 | PROJCS["Albers", |
| 26 | ...etc. |
| 27 | }}} |