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

Function msInitShape

mapprimitive.c:91–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91void 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
117int msCopyShape(shapeObj *from, shapeObj *to) {
118 int i;

Callers 15

FLTInsertElementInNodeFunction · 0.85
loadQueryParamsFunction · 0.85
msQueryByIndexFunction · 0.85
msQueryByAttributesFunction · 0.85
msQueryByFilterFunction · 0.85
msQueryByRectFunction · 0.85
msQueryByFeaturesFunction · 0.85
msQueryByPointFunction · 0.85
msQueryByShapeFunction · 0.85
msDrawVectorLayerFunction · 0.85
msDrawQueryLayerFunction · 0.85
msDrawShapeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected