MCPcopy Index your code
hub / github.com/MapServer/MapServer / msShapefileClose

Function msShapefileClose

mapshape.c:1732–1740  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1730}
1731
1732void msShapefileClose(shapefileObj *shpfile)
1733{
1734 if (shpfile && shpfile->isopen == MS_TRUE) { /* Silently return if called with NULL shpfile by freeLayer() */
1735 if(shpfile->hSHP) msSHPClose(shpfile->hSHP);
1736 if(shpfile->hDBF) msDBFClose(shpfile->hDBF);
1737 if(shpfile->status) free(shpfile->status);
1738 shpfile->isopen = MS_FALSE;
1739 }
1740}
1741
1742/* status array lives in the shpfile, can return MS_SUCCESS/MS_FAILURE/MS_DONE */
1743int msShapefileWhichShapes(shapefileObj *shpfile, rectObj rect, int debug)

Callers 9

msTiledSHPWhichShapesFunction · 0.85
msTiledSHPNextShapeFunction · 0.85
msTiledSHPGetShapeFunction · 0.85
msTiledSHPCloseFunction · 0.85
msSHPLayerCloseFunction · 0.85
msRASTERLayerGetExtentFunction · 0.85
mainFunction · 0.85
shapefileObj_newFunction · 0.85
shapefileObj_destroyFunction · 0.85

Calls 2

msSHPCloseFunction · 0.85
msDBFCloseFunction · 0.85

Tested by

no test coverage detected