PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ usage()

static void usage ( )
static

Definition at line 330 of file raster2pgsql.c.

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

References _, POSTGIS_LIB_VERSION, SRID_UNKNOWN, and xstr.

Referenced by main().

Here is the caller graph for this function: