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

Definition at line 2246 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().

2247 {
2248  int ret = SHPDUMPEROK;
2249 
2250  /* Clear the current batch fetch resource */
2251  PQclear(state->fetchres);
2252 
2253  /* If a geo column is present, generate the projection file */
2254  if (state->geo_col_name)
2255  ret = projFileCreate(state);
2256 
2257  /* Close the DBF and SHP files */
2258  if (state->dbf)
2259  DBFClose(state->dbf);
2260  if (state->shp)
2261  SHPClose(state->shp);
2262 
2263  return ret;
2264 }
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:579
void SHPAPI_CALL SHPClose(SHPHandle hSHP)
Definition: shpopen.c:760
PGresult * fetchres

Here is the call graph for this function:

Here is the caller graph for this function: