PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ ShpDumperCreate()

SHPDUMPERSTATE* ShpDumperCreate ( SHPDUMPERCONFIG config)

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

1168 {
1169  SHPDUMPERSTATE *state;
1170 
1171  /* Create a new state object and assign the config to it */
1172  state = malloc(sizeof(SHPDUMPERSTATE));
1173  state->config = config;
1174 
1175  /* Set any state defaults */
1176  state->conn = NULL;
1177  state->outtype = 's';
1178  state->outshptype = 0;
1179  state->geom_oid = 0;
1180  state->geog_oid = 0;
1181  state->schema = NULL;
1182  state->table = NULL;
1183  state->geo_col_name = NULL;
1184  state->fetch_query = NULL;
1185  state->main_scan_query = NULL;
1186  state->dbffieldnames = NULL;
1187  state->dbffieldtypes = NULL;
1188  state->pgfieldnames = NULL;
1189  state->big_endian = is_bigendian();
1190  state->message[0] = '\0';
1191  colmap_init(&state->column_map);
1192 
1193  return state;
1194 }
void * malloc(YYSIZE_T)
static int is_bigendian(void)
void colmap_init(colmap *map)
Definition: shpcommon.c:159
SHPDUMPERCONFIG * config
char message[SHPDUMPERMSGLEN]

References shp_dumper_state::big_endian, 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, is_bigendian(), 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: