PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ set_loader_config_defaults()

void set_loader_config_defaults ( SHPLOADERCONFIG config)

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

754 {
755  config->opt = 'c';
756  config->table = NULL;
757  config->schema = NULL;
758  config->geo_col = NULL;
759  config->shp_file = NULL;
760  config->dump_format = 0;
761  config->simple_geometries = 0;
762  config->geography = 0;
763  config->quoteidentifiers = 0;
764  config->forceint4 = 0;
765  config->createindex = 0;
766  config->readshape = 1;
768  config->encoding = strdup(ENCODING_DEFAULT);
770  config->sr_id = SRID_UNKNOWN;
771  config->shp_sr_id = SRID_UNKNOWN;
772  config->use_wkt = 0;
773  config->tablespace = NULL;
774  config->idxtablespace = NULL;
775  config->usetransaction = 1;
776  config->column_map_filename = NULL;
777 }
#define SRID_UNKNOWN
Unknown SRID value.
Definition: liblwgeom.h:188
#define POLICY_NULL_INSERT
#define ENCODING_DEFAULT
#define FORCE_OUTPUT_DISABLE

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().

Here is the caller graph for this function: