PostGIS  2.5.0dev-r@@SVN_REVISION@@

◆ set_loader_config_defaults()

void set_loader_config_defaults ( SHPLOADERCONFIG config)

Definition at line 744 of file shp2pgsql-core.c.

References shp_loader_config::column_map_filename, shp_loader_config::createindex, shp_loader_config::dump_format, shp_loader_config::encoding, ENCODING_DEFAULT, shp_loader_config::force_output, FORCE_OUTPUT_DISABLE, shp_loader_config::forceint4, shp_loader_config::geo_col, shp_loader_config::geography, shp_loader_config::idxtablespace, shp_loader_config::null_policy, shp_loader_config::opt, POLICY_NULL_INSERT, shp_loader_config::quoteidentifiers, shp_loader_config::readshape, shp_loader_config::schema, shp_loader_config::shp_file, shp_loader_config::shp_sr_id, shp_loader_config::simple_geometries, shp_loader_config::sr_id, SRID_UNKNOWN, shp_loader_config::table, shp_loader_config::tablespace, shp_loader_config::use_wkt, and shp_loader_config::usetransaction.

Referenced by main(), and test_ShpLoaderCreate().

745 {
746  config->opt = 'c';
747  config->table = NULL;
748  config->schema = NULL;
749  config->geo_col = NULL;
750  config->shp_file = NULL;
751  config->dump_format = 0;
752  config->simple_geometries = 0;
753  config->geography = 0;
754  config->quoteidentifiers = 0;
755  config->forceint4 = 0;
756  config->createindex = 0;
757  config->readshape = 1;
759  config->encoding = strdup(ENCODING_DEFAULT);
761  config->sr_id = SRID_UNKNOWN;
762  config->shp_sr_id = SRID_UNKNOWN;
763  config->use_wkt = 0;
764  config->tablespace = NULL;
765  config->idxtablespace = NULL;
766  config->usetransaction = 1;
767  config->column_map_filename = NULL;
768 }
#define POLICY_NULL_INSERT
#define SRID_UNKNOWN
Unknown SRID value.
Definition: liblwgeom.h:187
#define FORCE_OUTPUT_DISABLE
#define ENCODING_DEFAULT
Here is the caller graph for this function: