PostGIS  2.2.7dev-r@@SVN_REVISION@@
int ShpDumperCloseTable ( SHPDUMPERSTATE state)

Definition at line 2166 of file pgsql2shp-core.c.

References shp_dumper_state::dbf, DBFClose(), shp_dumper_state::fetchres, shp_dumper_state::geo_col_name, projFileCreate(), shp_dumper_state::shp, SHPClose(), and SHPDUMPEROK.

Referenced by main(), and pgui_action_export().

2167 {
2168  int ret = SHPDUMPEROK;
2169 
2170  /* Clear the current batch fetch resource */
2171  PQclear(state->fetchres);
2172 
2173  /* If a geo column is present, generate the projection file */
2174  if (state->geo_col_name)
2175  ret = projFileCreate(state);
2176 
2177  /* Close the DBF and SHP files */
2178  if (state->dbf)
2179  DBFClose(state->dbf);
2180  if (state->shp)
2181  SHPClose(state->shp);
2182 
2183  return ret;
2184 }
static int projFileCreate(SHPDUMPERSTATE *state)
Creates ESRI .prj file for this shp output It looks in the spatial_ref_sys table and outputs the srte...
#define SHPDUMPEROK
void SHPAPI_CALL DBFClose(DBFHandle psDBF)
Definition: dbfopen.c:578
void SHPAPI_CALL SHPClose(SHPHandle hSHP)
Definition: shpopen.c:759
PGresult * fetchres

Here is the call graph for this function:

Here is the caller graph for this function: