PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ ShpDumperCloseTable()

int ShpDumperCloseTable ( SHPDUMPERSTATE state)

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

2180{
2181 int ret = SHPDUMPEROK;
2182
2183 /* Clear the current batch fetch resource */
2184 PQclear(state->fetchres);
2185
2186 /* If a geo column is present, generate the projection file */
2187 if (state->geo_col_name)
2188 ret = projFileCreate(state);
2189
2190 /* Close the DBF and SHP files */
2191 if (state->dbf)
2192 DBFClose(state->dbf);
2193 if (state->shp)
2194 SHPClose(state->shp);
2195
2196 return ret;
2197}
void SHPAPI_CALL DBFClose(DBFHandle psDBF)
Definition dbfopen.c:606
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:888

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: