MCPcopy Create free account
hub / github.com/MapServer/MapServer / msTiledSHPLayerInitItemInfo

Function msTiledSHPLayerInitItemInfo

mapshape.c:2321–2336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2319}
2320
2321int msTiledSHPLayerInitItemInfo(layerObj *layer)
2322{
2323 msTiledSHPLayerInfo *tSHP=NULL;
2324
2325 tSHP = layer->layerinfo;
2326 if(!tSHP) {
2327 msSetError(MS_SHPERR, "Tiled shapefile layer has not been opened.", "msTiledSHPLayerInitItemInfo()");
2328 return MS_FAILURE;
2329 }
2330
2331 msTiledSHPLayerFreeItemInfo(layer);
2332 layer->iteminfo = (int *) msDBFGetItemIndexes(tSHP->shpfile->hDBF, layer->items, layer->numitems);
2333 if(!layer->iteminfo) return(MS_FAILURE);
2334
2335 return MS_SUCCESS;
2336}
2337
2338static void msSHPPassThroughFieldDefinitions( layerObj *layer, DBFHandle hDBF )
2339{

Callers 1

msTiledSHPLayerGetItemsFunction · 0.85

Calls 3

msSetErrorFunction · 0.85
msDBFGetItemIndexesFunction · 0.85

Tested by

no test coverage detected