Return the absolute path to the given layer's tileindex file's directory */
| 1808 | |
| 1809 | /* Return the absolute path to the given layer's tileindex file's directory */ |
| 1810 | void msTileIndexAbsoluteDir(char *tiFileAbsDir, layerObj *layer) |
| 1811 | { |
| 1812 | char tiFileAbsPath[MS_MAXPATHLEN]; |
| 1813 | char *tiFileAbsDirTmp=NULL; |
| 1814 | |
| 1815 | msBuildPath(tiFileAbsPath, layer->map->mappath, layer->tileindex); /* absolute path to tileindex file */ |
| 1816 | tiFileAbsDirTmp = msGetPath(tiFileAbsPath); /* tileindex file's directory */ |
| 1817 | strlcpy(tiFileAbsDir, tiFileAbsDirTmp, MS_MAXPATHLEN); |
| 1818 | free(tiFileAbsDirTmp); |
| 1819 | } |
| 1820 | |
| 1821 | /* |
| 1822 | ** Build possible paths we might find the tile file at: |
no test coverage detected