1ogrtindex(1) General Commands Manual ogrtindex(1)
2
3
4
6 ogrtindexCreates a tileindex.
7
9 ogrtindex [-lnum n]... [-lname name]... [-f output_format]
10 [-write_absolute_path] [-skip_different_projection]
11 [-t_srs target_srs]
12 [-src_srs_name field_name] [-src_srs_format [AUTO|WKT|EPSG|PROJ]
13 [-accept_different_schemas]
14 output_dataset src_dataset...
15
17 The ogrtindex program can be used to create a tileindex - a file
18 containing a list of the identities of a bunch of other files along
19 with there spatial extents. This is primarily intended to be used with
20 MapServer for tiled access to layers using the OGR connection type.
21
22 -lnum n:
23 Add layer number 'n' from each source file in the tile index.
24
25 -lname name:
26 Add the layer named 'name' from each source file in the tile index.
27
28 -f output_format:
29 Select an output format name. The default is to create a shapefile.
30
31 -tileindex field_name:
32 The name to use for the dataset name. Defaults to LOCATION.
33
34 -write_absolute_path:
35 Filenames are written with absolute paths
36
37 -skip_different_projection:
38 Only layers with same projection ref as layers already inserted in
39 the tileindex will be inserted.
40
41 -t_srs target_srs:
42 (GDAL >= 2.2)
43
44 Extent of input files will be transformed to the desired target
45 coordinate reference system. Using this option generates files that are
46 not compatible with MapServer < 7.2. Default creates simple rectangular
47 polygons in the same coordinate reference system as the input vector
48 layers.
49
50 -src_srs_name field_name:
51 (GDAL >= 2.2)
52
53 The name of the field to store the SRS of each tile. This field name
54 can be used as the value of the TILESRS keyword in MapServer >= 7.2.
55
56 -src_srs_format type:
57 (GDAL >= 2.2)
58
59 The format in which the SRS of each tile must be written. Types can be
60 AUTO, WKT, EPSG, PROJ.
61
62 -accept_different_schemas:
63 By default ogrtindex checks that all layers inserted into the index
64 have the same attribute schemas. If you specify this option, this
65 test will be disabled. Be aware that resulting index may be
66 incompatible with MapServer!
67
68 If no -lnum or -lname arguments are given it is assumed that all layers
69 in source datasets should be added to the tile index as independent
70 records.
71
72 If the tile index already exists it will be appended to, otherwise it
73 will be created.
74
76 This example would create a shapefile (tindex.shp) containing a tile
77 index of the BL2000_LINK layers in all the NTF files in the wrk
78 directory:
79
80 % ogrtindex tindex.shp wrk/*.NTF
81
82
84 Frank Warmerdam warmerdam@pobox.com, Silke Reimer silke@intevation.de
85
86
87
88GDAL Tue Mar 3 2020 ogrtindex(1)