22 #include <sys/types.h>
30 #include "../liblwgeom/stringbuffer.h"
32 #define S2P_RCSID "$Id$"
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"
int ShpLoaderGetRecordCount(SHPLOADERSTATE *state)
struct shp_loader_config SHPLOADERCONFIG
struct shp_loader_state SHPLOADERSTATE
void ShpLoaderDestroy(SHPLOADERSTATE *state)
int ShpLoaderGetSQLCopyStatement(SHPLOADERSTATE *state, char **strheader)
int ShpLoaderOpenShape(SHPLOADERSTATE *state)
int ShpLoaderGenerateSQLRowStatement(SHPLOADERSTATE *state, int item, char **strrecord)
void set_loader_config_defaults(SHPLOADERCONFIG *config)
int ShpLoaderGetSQLFooter(SHPLOADERSTATE *state, char **strfooter)
SHPLOADERSTATE * ShpLoaderCreate(SHPLOADERCONFIG *config)
int ShpLoaderGetSQLHeader(SHPLOADERSTATE *state, char **strheader)
char * column_map_filename
char message[SHPLOADERMSGLEN]