22 #include <sys/types.h> 30 #include "../liblwgeom/stringbuffer.h" 32 #define S2P_RCSID "$Id: shp2pgsql-core.h 15731 2017-09-14 15:56:58Z strk $" 35 #define WKT_PRECISION 15 38 #define POLICY_NULL_ABORT 0x0 39 #define POLICY_NULL_INSERT 0x1 40 #define POLICY_NULL_SKIP 0x2 43 #define FORCE_OUTPUT_DISABLE 0x0 44 #define FORCE_OUTPUT_2D 0x1 45 #define FORCE_OUTPUT_3DZ 0x2 46 #define FORCE_OUTPUT_3DM 0x3 47 #define FORCE_OUTPUT_4D 0x4 50 #define SHPLOADERMSGLEN 1024 53 #define SHPLOADEROK -1 54 #define SHPLOADERERR 0 55 #define SHPLOADERWARN 1 58 #define SHPLOADERRECDELETED 2 59 #define SHPLOADERRECISNULL 3 65 #define MAXFIELDNAMELEN 64 66 #define MAXVALUELEN 1024 71 #define GEOMETRY_DEFAULT "geom" 72 #define GEOGRAPHY_DEFAULT "geog" 77 #define ENCODING_DEFAULT "UTF-8"
struct shp_loader_config SHPLOADERCONFIG
int ShpLoaderGetSQLFooter(SHPLOADERSTATE *state, char **strfooter)
char * column_map_filename
int ShpLoaderOpenShape(SHPLOADERSTATE *state)
struct shp_loader_state SHPLOADERSTATE
int ShpLoaderGetSQLHeader(SHPLOADERSTATE *state, char **strheader)
void ShpLoaderDestroy(SHPLOADERSTATE *state)
void set_loader_config_defaults(SHPLOADERCONFIG *config)
int ShpLoaderGetRecordCount(SHPLOADERSTATE *state)
SHPLOADERSTATE * ShpLoaderCreate(SHPLOADERCONFIG *config)
int ShpLoaderGetSQLCopyStatement(SHPLOADERSTATE *state, char **strheader)
int ShpLoaderGenerateSQLRowStatement(SHPLOADERSTATE *state, int item, char **strrecord)