PostGIS  2.5.7dev-r@@SVN_REVISION@@
shp2pgsql-core.h File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <locale.h>
#include <ctype.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <iconv.h>
#include "shapefil.h"
#include "shpcommon.h"
#include "getopt.h"
#include "../liblwgeom/stringbuffer.h"
Include dependency graph for shp2pgsql-core.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  shp_loader_config
 
struct  shp_loader_state
 

Macros

#define S2P_RCSID   "$Id$"
 
#define WKT_PRECISION   15
 
#define POLICY_NULL_ABORT   0x0
 
#define POLICY_NULL_INSERT   0x1
 
#define POLICY_NULL_SKIP   0x2
 
#define FORCE_OUTPUT_DISABLE   0x0
 
#define FORCE_OUTPUT_2D   0x1
 
#define FORCE_OUTPUT_3DZ   0x2
 
#define FORCE_OUTPUT_3DM   0x3
 
#define FORCE_OUTPUT_4D   0x4
 
#define SHPLOADERMSGLEN   1024
 
#define SHPLOADEROK   -1
 
#define SHPLOADERERR   0
 
#define SHPLOADERWARN   1
 
#define SHPLOADERRECDELETED   2
 
#define SHPLOADERRECISNULL   3
 
#define MAXFIELDNAMELEN   64
 
#define MAXVALUELEN   1024
 
#define GEOMETRY_DEFAULT   "geom"
 
#define GEOGRAPHY_DEFAULT   "geog"
 
#define ENCODING_DEFAULT   "UTF-8"
 

Typedefs

typedef struct shp_loader_config SHPLOADERCONFIG
 
typedef struct shp_loader_state SHPLOADERSTATE
 

Functions

void strtolower (char *s)
 
void set_loader_config_defaults (SHPLOADERCONFIG *config)
 
SHPLOADERSTATEShpLoaderCreate (SHPLOADERCONFIG *config)
 
int ShpLoaderOpenShape (SHPLOADERSTATE *state)
 
int ShpLoaderGetSQLHeader (SHPLOADERSTATE *state, char **strheader)
 
int ShpLoaderGetSQLCopyStatement (SHPLOADERSTATE *state, char **strheader)
 
int ShpLoaderGetRecordCount (SHPLOADERSTATE *state)
 
int ShpLoaderGenerateSQLRowStatement (SHPLOADERSTATE *state, int item, char **strrecord)
 
int ShpLoaderGetSQLFooter (SHPLOADERSTATE *state, char **strfooter)
 
void ShpLoaderDestroy (SHPLOADERSTATE *state)