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