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

Function clusterInfoCreate

mapcluster.c:270–284  ·  view source on GitHub ↗

alloc memory for a new tentative cluster */

Source from the content-addressed store, hash-verified

268
269/* alloc memory for a new tentative cluster */
270static clusterInfo *clusterInfoCreate(msClusterLayerInfo* layerinfo)
271{
272 clusterInfo* feature = (clusterInfo*)msSmallMalloc(sizeof(clusterInfo));
273 msInitShape(&feature->shape);
274 feature->numsiblings = 0;
275 feature->numcollected = 0;
276 feature->numremoved = 0;
277 feature->next = NULL;
278 feature->group = NULL;
279 feature->siblings = NULL;
280 feature->index = layerinfo->numFeatures;
281 feature->filter = -1; // not yet calculated
282 ++layerinfo->numFeatures;
283 return feature;
284}
285
286/* destroy memory of the cluster list */
287static void clusterInfoDestroyList(msClusterLayerInfo* layerinfo, clusterInfo* feature)

Callers 1

RebuildClustersFunction · 0.85

Calls 2

msSmallMallocFunction · 0.85
msInitShapeFunction · 0.85

Tested by

no test coverage detected