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

Function writeCluster

mapfile.c:2349–2366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2347}
2348
2349static void writeCluster(FILE *stream, int indent, clusterObj *cluster) {
2350
2351 if (cluster->maxdistance == 10 &&
2352 cluster->buffer == 0.0 &&
2353 cluster->region == NULL &&
2354 cluster->group.string == NULL &&
2355 cluster->filter.string == NULL)
2356 return; /* Nothing to write */
2357
2358 indent++;
2359 writeBlockBegin(stream, indent, "CLUSTER");
2360 writeNumber(stream, indent, "MAXDISTANCE", 10, cluster->maxdistance);
2361 writeNumber(stream, indent, "BUFFER", 0, cluster->buffer);
2362 writeString(stream, indent, "REGION", NULL, cluster->region);
2363 writeExpression(stream, indent, "GROUP", &(cluster->group));
2364 writeExpression(stream, indent, "FILTER", &(cluster->filter));
2365 writeBlockEnd(stream, indent, "CLUSTER");
2366}
2367
2368/*
2369** Initialize, load and free a single style

Callers 1

writeLayerFunction · 0.85

Calls 5

writeBlockBeginFunction · 0.85
writeNumberFunction · 0.85
writeStringFunction · 0.85
writeExpressionFunction · 0.85
writeBlockEndFunction · 0.85

Tested by

no test coverage detected