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

Function rectObj_draw

mapscript/php/mapscript_i.c:1230–1244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1228 }
1229
1230int rectObj_draw(rectObj *self, mapObj *map, layerObj *layer,
1231 imageObj *img, int classindex, char *text) {
1232 shapeObj shape;
1233
1234 msInitShape(&shape);
1235 msRectToPolygon(*self, &shape);
1236 shape.classindex = classindex;
1237 shape.text = strdup(text);
1238
1239 msDrawShape(map, layer, &shape, img, -1, MS_FALSE);
1240
1241 msFreeShape(&shape);
1242
1243 return 0;
1244 }
1245
1246/**********************************************************************
1247 * class extensions for shapefileObj

Callers 1

rect.cFile · 0.85

Calls 5

msInitShapeFunction · 0.85
msRectToPolygonFunction · 0.85
strdupFunction · 0.85
msDrawShapeFunction · 0.85
msFreeShapeFunction · 0.85

Tested by

no test coverage detected