| 1228 | } |
| 1229 | |
| 1230 | int 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 |
no test coverage detected