| 89 | } |
| 90 | |
| 91 | void msInitShape(shapeObj *shape) |
| 92 | { |
| 93 | /* spatial component */ |
| 94 | shape->line = NULL; |
| 95 | shape->numlines = 0; |
| 96 | shape->type = MS_SHAPE_NULL; |
| 97 | shape->bounds.minx = shape->bounds.miny = -1; |
| 98 | shape->bounds.maxx = shape->bounds.maxy = -1; |
| 99 | |
| 100 | /* attribute component */ |
| 101 | shape->values = NULL; |
| 102 | shape->numvalues = 0; |
| 103 | |
| 104 | shape->geometry = NULL; |
| 105 | shape->renderer_cache = NULL; |
| 106 | |
| 107 | /* annotation component */ |
| 108 | shape->text = NULL; |
| 109 | |
| 110 | /* bookkeeping component */ |
| 111 | shape->classindex = 0; /* default class */ |
| 112 | shape->tileindex = shape->index = shape->resultindex = -1; |
| 113 | |
| 114 | shape->scratch = MS_FALSE; /* not a temporary/scratch shape */ |
| 115 | } |
| 116 | |
| 117 | int msCopyShape(shapeObj *from, shapeObj *to) { |
| 118 | int i; |
no outgoing calls
no test coverage detected