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

Function msOracleSpatialLayerInitItemInfo

maporaclespatial.c:2787–2813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2785}
2786
2787int msOracleSpatialLayerInitItemInfo( layerObj *layer )
2788{
2789 int i;
2790 int *itemindexes ;
2791
2792 if (layer->debug)
2793 msDebug("msOracleSpatialLayerInitItemInfo was called.\n");
2794
2795 if (layer->numitems == 0)
2796 return MS_SUCCESS;
2797
2798 if (layer->iteminfo)
2799 free( layer->iteminfo );
2800
2801 if ((layer->iteminfo = (long *)malloc(sizeof(int)*layer->numitems))== NULL)
2802 {
2803 msSetError(MS_MEMERR, NULL, "msOracleSpatialLayerInitItemInfo()");
2804 return MS_FAILURE;
2805 }
2806
2807 itemindexes = (int*)layer->iteminfo;
2808
2809 for(i=0; i < layer->numitems; i++)
2810 itemindexes[i] = i; /*last one is always the geometry one - the rest are non-geom*/
2811
2812 return MS_SUCCESS;
2813}
2814
2815/* AutoProjection Support for RFC 37 #3333
2816 * TODO: Needs testing

Callers 1

Calls 2

msDebugFunction · 0.85
msSetErrorFunction · 0.85

Tested by

no test coverage detected