Definition at line 55 of file pgsql2shp-cli.c.
References _, shp_dumper_config::binary, shp_dumper_config::column_map_filename, shp_dumper_state::config, shp_dumper_config::conn, shp_dumper_state::currow, shp_connection_state::database, shp_dumper_config::dswitchprovided, shp_dumper_config::fetchsize, shp_dumper_config::geo_col_name, shp_connection_state::host, shp_dumper_config::includegid, shp_dumper_config::keep_fieldname_case, malloc(), shp_dumper_state::message, shp_dumper_state::outshptype, shp_connection_state::password, pgis_getopt(), shp_dumper_state::pgis_major_version, pgis_optarg, pgis_optind, pgis_optopt, shp_connection_state::port, shp_dumper_config::schema, set_dumper_config_defaults(), shapetypename(), shp_dumper_config::shp_file, ShpDumperCloseTable(), ShpDumperConnectDatabase(), ShpDumperCreate(), ShpDumperDestroy(), SHPDUMPERERR, ShpDumperGetRecordCount(), SHPDUMPEROK, ShpDumperOpenTable(), ShpLoaderGenerateShapeRow(), shp_dumper_config::table, shp_dumper_config::unescapedattrs, usage(), shp_connection_state::username, and shp_dumper_config::usrquery.
72 while ((c =
pgis_getopt(argc, argv,
"bf:h:du:p:P:g:rkm:")) != EOF)
134 !strncmp(argv[pgis_optind],
"select ", 7))
142 char *chrptr = strchr(strptr,
'.');
147 if ( chrptr == strptr )
156 config->
schema = strdup(strptr);
157 config->
table = strdup(chrptr+1);
161 config->
table = strdup(strptr);
175 fprintf(stderr,
"%s\n", state->
message);
183 fprintf(stderr,
_(
"WARNING: -d switch is useless when dumping from postgis-1.0.0+\n"));
188 fprintf(stdout,
_(
"Initializing... \n"));
194 fprintf(stderr,
"%s\n", state->
message);
203 fprintf(stdout,
_(
"Dumping: "));
211 fprintf(stdout,
"X");
218 fprintf(stderr,
"%s\n", state->
message);
232 fprintf(stderr,
"%s\n", state->
message);
char * column_map_filename
int ShpDumperOpenTable(SHPDUMPERSTATE *state)
static void usage(int status)
int ShpLoaderGenerateShapeRow(SHPDUMPERSTATE *state)
SHPDUMPERSTATE * ShpDumperCreate(SHPDUMPERCONFIG *config)
int ShpDumperCloseTable(SHPDUMPERSTATE *state)
void set_dumper_config_defaults(SHPDUMPERCONFIG *config)
SHPCONNECTIONCONFIG * conn
void ShpDumperDestroy(SHPDUMPERSTATE *state)
int ShpDumperGetRecordCount(SHPDUMPERSTATE *state)
int ShpDumperConnectDatabase(SHPDUMPERSTATE *state)
int pgis_getopt(int argc, char **argv, char *opts)
char message[SHPDUMPERMSGLEN]
char * shapetypename(int num)