| 734 | | usage(char *me, int exitcode) |
| 735 | | { |
| 736 | | fprintf(stderr, "RCSID: %s RELEASE: %s\n", rcsid, POSTGIS_VERSION); |
| 737 | | fprintf(stderr, "USAGE: %s [<options>] <shapefile> [<schema>.]<table>\n", me); |
| 738 | | fprintf(stderr, "\n"); |
| 739 | | fprintf(stderr, "OPTIONS:\n"); |
| 740 | | fprintf(stderr, " -s <srid> Set the SRID field. If not specified it defaults to -1.\n"); |
| 741 | | fprintf(stderr, "\n"); |
| 742 | | fprintf(stderr, " (-d|a|c|p) These are mutually exclusive options:\n"); |
| 743 | | fprintf(stderr, " -d Drops the table, then recreates it and populates\n"); |
| 744 | | fprintf(stderr, " it with current shape file data.\n"); |
| 745 | | fprintf(stderr, " -a Appends shape file into current table, must be\n"); |
| 746 | | fprintf(stderr, " exactly the same table schema.\n"); |
| 747 | | fprintf(stderr, " -c Creates a new table and populates it, this is the\n"); |
| 748 | | fprintf(stderr, " default if you do not specify any options.\n"); |
| 749 | | fprintf(stderr, " -p Prepare mode, only creates the table\n"); |
| 750 | | fprintf(stderr, "\n"); |
| 751 | | fprintf(stderr, " -g <geometry_column> Specify the name of the geometry column\n"); |
| 752 | | fprintf(stderr, " (mostly useful in append mode).\n"); |
| 753 | | fprintf(stderr, "\n"); |
| 754 | | fprintf(stderr, " -D Use postgresql dump format (defaults to sql insert\n"); |
| 755 | | fprintf(stderr, " statments.\n"); |
| 756 | | fprintf(stderr, "\n"); |
| 757 | | fprintf(stderr, " -k Keep postgresql identifiers case.\n"); |
| 758 | | fprintf(stderr, "\n"); |
| 759 | | fprintf(stderr, " -i Use int4 type for all integer dbf fields.\n"); |
| 760 | | fprintf(stderr, "\n"); |
| 761 | | fprintf(stderr, " -I Create a GiST index on the geometry column.\n"); |
| 762 | | fprintf(stderr, "\n"); |
| 763 | | fprintf(stderr, " -S Generate simple geometries instead of MULTI geometries.\n"); |
| 764 | | fprintf(stderr, "\n"); |
| 765 | | fprintf(stderr, " -w Use wkt format (for postgis-0.x support - drops M - drifts coordinates).\n"); |
| | 734 | usage(char *me, int exitcode, FILE* out) |
| | 735 | { |
| | 736 | fprintf(out, "RCSID: %s RELEASE: %s\n", rcsid, POSTGIS_VERSION); |
| | 737 | fprintf(out, "USAGE: %s [<options>] <shapefile> [<schema>.]<table>\n", me); |
| | 738 | fprintf(out, "OPTIONS:\n"); |
| | 739 | fprintf(out, " -s <srid> Set the SRID field. If not specified it defaults to -1.\n"); |
| | 740 | fprintf(out, " (-d|a|c|p) These are mutually exclusive options:\n"); |
| | 741 | fprintf(out, " -d Drops the table, then recreates it and populates\n"); |
| | 742 | fprintf(out, " it with current shape file data.\n"); |
| | 743 | fprintf(out, " -a Appends shape file into current table, must be\n"); |
| | 744 | fprintf(out, " exactly the same table schema.\n"); |
| | 745 | fprintf(out, " -c Creates a new table and populates it, this is the\n"); |
| | 746 | fprintf(out, " default if you do not specify any options.\n"); |
| | 747 | fprintf(out, " -p Prepare mode, only creates the table.\n"); |
| | 748 | fprintf(out, " -g <geometry_column> Specify the name of the geometry column\n"); |
| | 749 | fprintf(out, " (mostly useful in append mode).\n"); |
| | 750 | fprintf(out, " -D Use postgresql dump format (defaults to sql insert statments.\n"); |
| | 751 | fprintf(out, " -k Keep postgresql identifiers case.\n"); |
| | 752 | fprintf(out, " -i Use int4 type for all integer dbf fields.\n"); |
| | 753 | fprintf(out, " -I Create a GiST index on the geometry column.\n"); |
| | 754 | fprintf(out, " -S Generate simple geometries instead of MULTI geometries.\n"); |
| | 755 | fprintf(out, " -w Use wkt format (for postgis-0.x support - drops M - drifts coordinates).\n"); |