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

Function msTileIndexAbsoluteDir

mapshape.c:1810–1819  ·  view source on GitHub ↗

Return the absolute path to the given layer's tileindex file's directory */

Source from the content-addressed store, hash-verified

1808
1809/* Return the absolute path to the given layer's tileindex file's directory */
1810void 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:

Callers 3

msTiledSHPOpenFileFunction · 0.85
msTiledSHPWhichShapesFunction · 0.85
msTiledSHPNextShapeFunction · 0.85

Calls 3

msBuildPathFunction · 0.85
msGetPathFunction · 0.85
strlcpyFunction · 0.85

Tested by

no test coverage detected