| 2347 | } |
| 2348 | |
| 2349 | static 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 |
no test coverage detected