PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ ShpDumperCloseTable()

int ShpDumperCloseTable ( SHPDUMPERSTATE state)

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

2171 {
2172  int ret = SHPDUMPEROK;
2173 
2174  /* Clear the current batch fetch resource */
2175  PQclear(state->fetchres);
2176 
2177  /* If a geo column is present, generate the projection file */
2178  if (state->geo_col_name)
2179  ret = projFileCreate(state);
2180 
2181  /* Close the DBF and SHP files */
2182  if (state->dbf)
2183  DBFClose(state->dbf);
2184  if (state->shp)
2185  SHPClose(state->shp);
2186 
2187  return ret;
2188 }
void SHPAPI_CALL DBFClose(DBFHandle psDBF)
Definition: dbfopen.c:599
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 SHPClose(SHPHandle hSHP)
Definition: shpopen.c:879
PGresult * fetchres

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().

Here is the call graph for this function:
Here is the caller graph for this function: