This is an R wrapper for the 'ogrtindex' function that is part of the
Geospatial Data Abstraction Library (GDAL). It follows the parameter naming
conventions of the original function, with some modifications to allow for more R-like
parameters. For all parameters, the user can use a single character string following,
precisely, the gdalinfo format (http://gdal.org/ogrtindex.html), or,
in some cases, can use R vectors to achieve the same end.
The ogrtindex program can be used to create a tileindex - a file containing a
list of the identities of a bunch of other files along with there spatial
extents. This is primarily intended to be used with MapServer for tiled access
to layers using the OGR connection type.
If no -lnum or -lname arguments are given it is assumed that all layers in
source datasets should be added to the tile index as independent records.
If the tile index already exists it will be appended to, otherwise it will be
created.
It is a flaw of the current ogrtindex program that no attempt is made to copy
the coordinate system definition from the source datasets to the tile index
(as is expected by MapServer when PROJECTION AUTO is in use).
This function assumes the user has a working GDAL on their system. If the
"gdalUtils_gdalPath" option has been set (usually by gdal_setInstallation),
the GDAL found in that path will be used. If nothing is found, gdal_setInstallation
will be executed to attempt to find a working GDAL.