PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ ShpDumperCreate()

SHPDUMPERSTATE* ShpDumperCreate ( SHPDUMPERCONFIG config)

Definition at line 1153 of file pgsql2shp-core.c.

1154 {
1155  SHPDUMPERSTATE *state;
1156 
1157  /* Create a new state object and assign the config to it */
1158  state = malloc(sizeof(SHPDUMPERSTATE));
1159  state->config = config;
1160 
1161  /* Set any state defaults */
1162  state->conn = NULL;
1163  state->outtype = 's';
1164  state->outshptype = 0;
1165  state->geom_oid = 0;
1166  state->geog_oid = 0;
1167  state->schema = NULL;
1168  state->table = NULL;
1169  state->geo_col_name = NULL;
1170  state->fetch_query = NULL;
1171  state->main_scan_query = NULL;
1172  state->dbffieldnames = NULL;
1173  state->dbffieldtypes = NULL;
1174  state->pgfieldnames = NULL;
1175  state->message[0] = '\0';
1176  colmap_init(&state->column_map);
1177 
1178  return state;
1179 }
void * malloc(YYSIZE_T)
void colmap_init(colmap *map)
Definition: shpcommon.c:159
SHPDUMPERCONFIG * config
char message[SHPDUMPERMSGLEN]

References colmap_init(), shp_dumper_state::column_map, shp_dumper_state::config, shp_dumper_state::conn, shp_dumper_state::dbffieldnames, shp_dumper_state::dbffieldtypes, shp_dumper_state::fetch_query, shp_dumper_state::geo_col_name, shp_dumper_state::geog_oid, shp_dumper_state::geom_oid, shp_dumper_state::main_scan_query, malloc(), shp_dumper_state::message, shp_dumper_state::outshptype, shp_dumper_state::outtype, shp_dumper_state::pgfieldnames, shp_dumper_state::schema, and shp_dumper_state::table.

Referenced by main(), pgui_action_export(), and test_ShpDumperCreate().

Here is the call graph for this function:
Here is the caller graph for this function: