Wechat: yu389741| Email: gisdqy@163.com






ogrinfo [–help-general] [-ro] [-q] [-where restricted_where]
        [-spat xmin ymin xmax ymax] [-fid fid]
        [-sql statement] [-al] [-so] [-fields={YES/NO}]
        datasource_name [layer [layer …]]



         Open the data source in read-only mode.

List all features of all layers (used instead of having to give layer names as arguments).
Summary Only: supress listing of features, show only the summary information like projection, schema, feature count and extents.
Quiet verbose reporting of various information, including coordinate system, layer schema, extents, and feature count.
-where restricted_where:
An attribute query in a restricted form of the queries used in the SQL WHERE statement. Only features matching the attribute query will be reported.
-sql statement:
Execute the indicated SQL statement and return the result.
-spat xmin ymin xmax ymax:
The area of interest. Only features within the rectangle will be reported.
-fid fid:
If provided, only the feature with this feature id will be reported. Operates exclusive of the spatial or attribute queries. Note: if you want to select several features based on their feature id, you can also use the fact the ‘fid’ is a special field recognized by OGR SQL. So, ‘-where “fid in (1,3,5)”‘ would select features 1, 3 and 5.
(starting with GDAL 1.6.0) If set to NO, the feature dump will not display field values. Default value is YES.
(starting with GDAL 1.6.0) If set to NO, the feature dump will not display the geometry. If set to SUMMARY, only a summary of the geometry will be displayed. If set to YES, the geometry will be reported in full OGC WKT format. Default value is YES.
List the format drivers that are enabled.
The data source to open. May be a filename, directory or other virtual name. See the OGR Vector Formats list for supported datasources.
One or more layer names may be reported.

If no layer names are passed then ogrinfo will report a list of available layers (and their layerwide geometry type). If layer name(s) are given then their extents, coordinate system, feature count, geometry type, schema and all features matching query parameters will be reported to the terminal. If no query parameters are provided, all features are reported.

Geometries are reported in OGC WKT format.



D:/assignment/gdal1.6.1_runtime/bin>ogrinfo -ro -al -q US1AK90M.000



D:/assignment/gdal1.6.1_runtime/bin>ogrinfo -ro -al -q US1AK90M.000 |more