Usage
ogrinfo(datasource_name, layer, ro, q, where, spat, geomfield, fid, sql,
dialect, al, so, fields, geom, formats, additional_commands,
verbose = FALSE)
Arguments
datasource_name
Character. The data source to
open. May be a filename, directory or other virtual name.
See the OGR Vector Formats list for supported
datasources.
layer
Character. One or more layer names may be
reported.
ro
Logical. Open the data source in read-only
mode.
al
Logical. List all features of all layers (used
instead of having to give layer names as arguments).
so
Logical. Summary Only: supress listing of
features, show only the summary information like
projection, schema, feature count and extents.
q
Logical. Quiet verbose reporting of various
information, including coordinate system, layer schema,
extents, and feature count.
where
Character. 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
Character. Execute the indicated SQL statement
and return the result.
dialect
Character. SQL dialect. In some cases can
be used to use (unoptimized) OGR SQL instead of the
native SQL of an RDBMS by passing OGRSQL. Starting with
GDAL 1.10, the "SQLITE" dialect can also be used with any
datasource.
spat
Numeric. c(xmin,ymin,xmax,ymax) The area of
interest. Only features within the rectangle will be
reported.
geomfield
Character. (OGR >= 2.0) Name of the
geometry field on which the spatial filter operates on.
fid
Numeric. 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
fields
Character. ("YES"|"NO") (starting with GDAL
1.6.0) If set to NO, the feature dump will not display
field values. Default value is YES.
geom
Character. ("YES"|"NO"|"SUMMARY") (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 OG
formats
Logical. List the format drivers that are
enabled.
additional_commands
Character. Additional commands
to pass directly to ogrinfo.