PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void usage ( )
static

Definition at line 325 of file raster2pgsql.c.

References _, POSTGIS_LIB_VERSION, and SRID_UNKNOWN.

Referenced by main().

325  {
326  printf(_("RELEASE: %s GDAL_VERSION=%d (r%d)\n"), POSTGIS_LIB_VERSION, POSTGIS_GDAL_VERSION, POSTGIS_SVN_REVISION);
327  printf(_(
328  "USAGE: raster2pgsql [<options>] <raster>[ <raster>[ ...]] [[<schema>.]<table>]\n"
329  " Multiple rasters can also be specified using wildcards (*,?).\n"
330  "\n"
331  "OPTIONS:\n"
332  ));
333  printf(_(
334  " -s <srid> Set the raster's SRID. Defaults to %d. If SRID not\n"
335  " provided or is %d, raster's metadata will be checked to\n"
336  " determine an appropriate SRID.\n"
338  printf(_(
339  " -b <band> Index (1-based) of band to extract from raster. For more\n"
340  " than one band index, separate with comma (,). Ranges can be\n"
341  " defined by separating with dash (-). If unspecified, all bands\n"
342  " of raster will be extracted.\n"
343  ));
344  printf(_(
345  " -t <tile size> Cut raster into tiles to be inserted one per\n"
346  " table row. <tile size> is expressed as WIDTHxHEIGHT.\n"
347  " <tile size> can also be \"auto\" to allow the loader to compute\n"
348  " an appropriate tile size using the first raster and applied to\n"
349  " all rasters.\n"
350  ));
351  printf(_(
352  " -P Pad right-most and bottom-most tiles to guarantee that all tiles\n"
353  " have the same width and height.\n"
354  ));
355  printf(_(
356  " -R Register the raster as an out-of-db (filesystem) raster. Provided\n"
357  " raster should have absolute path to the file\n"
358  ));
359  printf(_(
360  " (-d|a|c|p) These are mutually exclusive options:\n"
361  " -d Drops the table, then recreates it and populates\n"
362  " it with current raster data.\n"
363  " -a Appends raster into current table, must be\n"
364  " exactly the same table schema.\n"
365  " -c Creates a new table and populates it, this is the\n"
366  " default if you do not specify any options.\n"
367  " -p Prepare mode, only creates the table.\n"
368  ));
369  printf(_(
370  " -f <column> Specify the name of the raster column\n"
371  ));
372  printf(_(
373  " -F Add a column with the filename of the raster.\n"
374  ));
375  printf(_(
376  " -n <column> Specify the name of the filename column. Implies -F.\n"
377  ));
378  printf(_(
379  " -l <overview factor> Create overview of the raster. For more than\n"
380  " one factor, separate with comma(,). Overview table name follows\n"
381  " the pattern o_<overview factor>_<table>. Created overview is\n"
382  " stored in the database and is not affected by -R.\n"
383  ));
384  printf(_(
385  " -q Wrap PostgreSQL identifiers in quotes.\n"
386  ));
387  printf(_(
388  " -I Create a GIST spatial index on the raster column. The ANALYZE\n"
389  " command will automatically be issued for the created index.\n"
390  ));
391  printf(_(
392  " -M Run VACUUM ANALYZE on the table of the raster column. Most\n"
393  " useful when appending raster to existing table with -a.\n"
394  ));
395  printf(_(
396  " -C Set the standard set of constraints on the raster\n"
397  " column after the rasters are loaded. Some constraints may fail\n"
398  " if one or more rasters violate the constraint.\n"
399  " -x Disable setting the max extent constraint. Only applied if\n"
400  " -C flag is also used.\n"
401  " -r Set the constraints (spatially unique and coverage tile) for\n"
402  " regular blocking. Only applied if -C flag is also used.\n"
403  ));
404  printf(_(
405  " -T <tablespace> Specify the tablespace for the new table.\n"
406  " Note that indices (including the primary key) will still use\n"
407  " the default tablespace unless the -X flag is also used.\n"
408  ));
409  printf(_(
410  " -X <tablespace> Specify the tablespace for the table's new index.\n"
411  " This applies to the primary key and the spatial index if\n"
412  " the -I flag is used.\n"
413  ));
414  printf(_(
415  " -N <nodata> NODATA value to use on bands without a NODATA value.\n"
416  ));
417  printf(_(
418  " -k Skip NODATA value checks for each raster band.\n"
419  ));
420  printf(_(
421  " -E <endian> Control endianness of generated binary output of\n"
422  " raster. Use 0 for XDR and 1 for NDR (default). Only NDR\n"
423  " is supported at this time.\n"
424  ));
425  printf(_(
426  " -V <version> Specify version of output WKB format. Default\n"
427  " is 0. Only 0 is supported at this time.\n"
428  ));
429  printf(_(
430  " -e Execute each statement individually, do not use a transaction.\n"
431  ));
432  printf(_(
433  " -Y Use COPY statements instead of INSERT statements.\n"
434  ));
435  printf(_(
436  " -G Print the supported GDAL raster formats.\n"
437  ));
438  printf(_(
439  " -? Display this help screen.\n"
440  ));
441 }
#define _(String)
Definition: shpcommon.h:23
#define POSTGIS_LIB_VERSION
Definition: sqldefines.h:12
#define SRID_UNKNOWN
Unknown SRID value.
Definition: liblwgeom.h:154

Here is the caller graph for this function: