| 4190 | } |
| 4191 | |
| 4192 | static void writeReferenceMap(FILE *stream, int indent, referenceMapObj *ref) |
| 4193 | { |
| 4194 | colorObj c; |
| 4195 | |
| 4196 | if(!ref->image) return; |
| 4197 | |
| 4198 | indent++; |
| 4199 | writeBlockBegin(stream, indent, "REFERENCE"); |
| 4200 | MS_INIT_COLOR(c,255,0,0,255); |
| 4201 | writeColor(stream, indent, "COLOR", &c, &(ref->color)); |
| 4202 | writeExtent(stream, indent, "EXTENT", ref->extent); |
| 4203 | writeString(stream, indent, "IMAGE", NULL, ref->image); |
| 4204 | MS_INIT_COLOR(c,0,0,0,255); |
| 4205 | writeColor(stream, indent, "OUTLINECOLOR", &c, &(ref->outlinecolor)); |
| 4206 | writeDimension(stream, indent, "SIZE", ref->width, ref->height, NULL, NULL); |
| 4207 | writeKeyword(stream, indent, "STATUS", ref->status, 2, MS_ON, "ON", MS_OFF, "OFF"); |
| 4208 | writeNumberOrString(stream, indent, "MARKER", 0, ref->marker, ref->markername); |
| 4209 | writeNumber(stream, indent, "MARKERSIZE", -1, ref->markersize); |
| 4210 | writeNumber(stream, indent, "MAXBOXSIZE", -1, ref->maxboxsize); |
| 4211 | writeNumber(stream, indent, "MINBOXSIZE", -1, ref->minboxsize); |
| 4212 | writeBlockEnd(stream, indent, "REFERENCE"); |
| 4213 | writeLineFeed(stream); |
| 4214 | } |
| 4215 | |
| 4216 | #define MAX_FORMATOPTIONS 100 |
| 4217 |
no test coverage detected