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

Function writeReferenceMap

mapfile.c:4192–4214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4190}
4191
4192static 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

Callers 1

msSaveMapFunction · 0.85

Calls 10

writeBlockBeginFunction · 0.85
writeColorFunction · 0.85
writeExtentFunction · 0.85
writeStringFunction · 0.85
writeDimensionFunction · 0.85
writeKeywordFunction · 0.85
writeNumberOrStringFunction · 0.85
writeNumberFunction · 0.85
writeBlockEndFunction · 0.85
writeLineFeedFunction · 0.85

Tested by

no test coverage detected