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

Definition at line 22 of file shp2pgsql-cli.c.

References _, POSTGIS_LIB_VERSION, and SRID_UNKNOWN.

Referenced by main().

23 {
24  printf(_( "RELEASE: %s (r%d)\n" ), POSTGIS_LIB_VERSION, POSTGIS_SVN_REVISION);
25  printf(_( "USAGE: shp2pgsql [<options>] <shapefile> [[<schema>.]<table>]\n"
26  "OPTIONS:\n" ));
27  printf(_( " -s [<from>:]<srid> Set the SRID field. Defaults to %d.\n"
28  " Optionally reprojects from given SRID (cannot be used with -D).\n"),
29  SRID_UNKNOWN);
30  printf(_( " (-d|a|c|p) These are mutually exclusive options:\n"
31  " -d Drops the table, then recreates it and populates\n"
32  " it with current shape file data.\n"
33  " -a Appends shape file into current table, must be\n"
34  " exactly the same table schema.\n"
35  " -c Creates a new table and populates it, this is the\n"
36  " default if you do not specify any options.\n"
37  " -p Prepare mode, only creates the table.\n" ));
38  printf(_( " -g <geocolumn> Specify the name of the geometry/geography column\n"
39  " (mostly useful in append mode).\n" ));
40  printf(_( " -D Use postgresql dump format (defaults to SQL insert statements).\n" ));
41  printf(_( " -e Execute each statement individually, do not use a transaction.\n"
42  " Not compatible with -D.\n" ));
43  printf(_( " -G Use geography type (requires lon/lat data or -s to reproject).\n" ));
44  printf(_( " -k Keep postgresql identifiers case.\n" ));
45  printf(_( " -i Use int4 type for all integer dbf fields.\n" ));
46  printf(_( " -I Create a spatial index on the geocolumn.\n" ));
47  printf(_( " -S Generate simple geometries instead of MULTI geometries.\n" ));
48  printf(_( " -t <dimensionality> Force geometry to be one of '2D', '3DZ', '3DM', or '4D'\n" ));
49  printf(_( " -w Output WKT instead of WKB. Note that this can result in\n"
50  " coordinate drift.\n" ));
51  printf(_( " -W <encoding> Specify the character encoding of Shape's\n"
52  " attribute column. (default: \"UTF-8\")\n" ));
53  printf(_( " -N <policy> NULL geometries handling policy (insert*,skip,abort).\n" ));
54  printf(_( " -n Only import DBF file.\n" ));
55  printf(_( " -T <tablespace> Specify the tablespace for the new table.\n"
56  " Note that indexes will still use the default tablespace unless the\n"
57  " -X flag is also used.\n"));
58  printf(_( " -X <tablespace> Specify the tablespace for the table's indexes.\n"
59  " This applies to the primary key, and the spatial index if\n"
60  " the -I flag is used.\n" ));
61  printf(_( " -? Display this help screen.\n" ));
62 }
#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: