PostGIS  2.1.10dev-r@@SVN_REVISION@@
SHPDUMPERSTATE* ShpDumperCreate ( SHPDUMPERCONFIG config)

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

References shp_dumper_state::big_endian, shp_dumper_state::column_map_dbffieldnames, shp_dumper_state::column_map_pgfieldnames, shp_dumper_state::column_map_size, 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, 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().

1243 {
1244  SHPDUMPERSTATE *state;
1245 
1246  /* Create a new state object and assign the config to it */
1247  state = malloc(sizeof(SHPDUMPERSTATE));
1248  state->config = config;
1249 
1250  /* Set any state defaults */
1251  state->conn = NULL;
1252  state->outtype = 's';
1253  state->geom_oid = 0;
1254  state->geog_oid = 0;
1255  state->schema = NULL;
1256  state->table = NULL;
1257  state->geo_col_name = NULL;
1258  state->fetch_query = NULL;
1259  state->main_scan_query = NULL;
1260  state->dbffieldnames = NULL;
1261  state->dbffieldtypes = NULL;
1262  state->pgfieldnames = NULL;
1263  state->column_map_pgfieldnames = NULL;
1264  state->column_map_dbffieldnames = NULL;
1265  state->column_map_size = 0;
1266  state->big_endian = is_bigendian();
1267 
1268  return state;
1269 }
static int is_bigendian(void)
SHPDUMPERCONFIG * config
char ** column_map_pgfieldnames
char ** column_map_dbffieldnames

Here is the call graph for this function:

Here is the caller graph for this function: