OGRTINDEX(1)

πŸ“¦
version 3.4.3 Β· 2 versions
, in epel 9

🌸 NAME 🌸

ogrtindex β€” creates a tileindex ✨

hiii bestie, welcome to the OGRTINDEX(1) page β€” it’s the GDAL manual for ogrtindex, and we’re gonna make a tileindex together πŸ’…

✨ SYNOPSIS ✨

          ogrtindex [-lnum n]... [-lname name]... [-f output_format]
                    [-write_absolute_path] [-skip_different_projection]
                    [-t_srs target_srs]
                    [-src_srs_name field_name] [-src_srs_format [AUTO|WKT|EPSG|PROJ]
                    [-accept_different_schemas]
                    <output_dataset> <src_dataset>...

πŸ’… DESCRIPTION πŸ’…

okay so 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 their spatial extents. This is primarily intended to be used with MapServer for tiled access to layers using the OGR connection type. πŸ—ΊοΈβœ¨

here’s the option rundown, no cap:

  • -lnum <n> β€” add layer number n from each source file in the tile index. 🧚
  • -lname <name> β€” add the layer named name from each source file in the tile index. 🌸
  • -f <output_format> β€” select an output format name. The default is to create a shapefile. πŸŽ€
  • -tileindex <field_name> β€” the name to use for the dataset name. Defaults to LOCATION. 🫢
  • -write_absolute_path β€” filenames are written with absolute paths. πŸ’–
  • -skip_different_projection β€” only layers with same projection ref as layers already inserted in the tileindex will be inserted. πŸ¦‹
  • -t_srs <target_srs> β€” extent of input files will be transformed to the desired target coordinate reference system. Using this option generates files that are not compatible with MapServer < 7.2. Default creates simple rectangular polygons in the same coordinate reference system as the input vector layers.

New in version 2.2.0. πŸ†•

  • -src_srs_name <field_name> β€” the name of the field to store the SRS of each tile. This field name can be used as the value of the TILESRS keyword in MapServer >= 7.2.

New in version 2.2.0. πŸ†•

  • -src_srs_format <format> β€” the format in which the SRS of each tile must be written. Available formats are: AUTO, WKT, EPSG, PROJ.

New in version 2.2.0. πŸ†•

  • -accept_different_schemas β€” by default ogrtindex checks that all layers inserted into the index have the same attribute schemas. If you specify this option, this test will be disabled. Be aware that resulting index may be incompatible with MapServer! πŸ’€
⚠️ bestie, that -accept_different_schemas warning is real: the resulting index may be incompatible with MapServer β€” do not ignore it.

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. πŸ’–

πŸŽ€ EXAMPLE πŸŽ€

this example would create a shapefile (tindex.shp) containing a tile index of the BL2000_LINK layers in all the NTF files in the wrk directory:

          ogrtindex tindex.shp wrk/*.NTF 1069148.900,419873.100 1069147.500,419870.200
            1069146.400,419862.100 1069143.000,419860 1069142,419854.900
            1069138.600,419850 1069135.400,419848.800 1069134.100,419843
            1069130,419836.200 1069127.600,419824.600 1069123.800,419820.200
            1069126.900,419815.500 1069126.900,419808.200 1069116.500,419798.700
            1069117.600,419794.100 1069115.100,419796.300 1069109.100,419801.800
            1069106.800,419805.000  1069107.300)

🫢 AUTHOR 🫢

the icons behind this: Frank Warmerdam <warmerdam@pobox.com>, Silke Reimer <silke@intevation.de> πŸ‘‘

1998-2026 β€” periodt, that’s the copyright range πŸ’œ


okay that’s the whole OGRTINDEX(1) page, GDAL edition β€” signing off on Jan 08, 2026 πŸ«ΆπŸ’–βœ¨

πŸ“¦ where this page comes from