PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ ShpDumperCreate()

SHPDUMPERSTATE* ShpDumperCreate ( SHPDUMPERCONFIG config)

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

1159 {
1160  SHPDUMPERSTATE *state;
1161 
1162  /* Create a new state object and assign the config to it */
1163  state = malloc(sizeof(SHPDUMPERSTATE));
1164  state->config = config;
1165 
1166  /* Set any state defaults */
1167  state->conn = NULL;
1168  state->outtype = 's';
1169  state->outshptype = 0;
1170  state->geom_oid = 0;
1171  state->geog_oid = 0;
1172  state->schema = NULL;
1173  state->table = NULL;
1174  state->geo_col_name = NULL;
1175  state->fetch_query = NULL;
1176  state->main_scan_query = NULL;
1177  state->dbffieldnames = NULL;
1178  state->dbffieldtypes = NULL;
1179  state->pgfieldnames = NULL;
1180  state->message[0] = '\0';
1181  colmap_init(&state->column_map);
1182 
1183  return state;
1184 }
void * malloc(YYSIZE_T)
void colmap_init(colmap *map)
Definition: shpcommon.c:163
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: