| 1730 | } |
| 1731 | |
| 1732 | void 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 */ |
| 1743 | int msShapefileWhichShapes(shapefileObj *shpfile, rectObj rect, int debug) |
no test coverage detected