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

Function msInitQuery

mapquery.c:34–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32MS_CVSID("$Id$")
33
34int msInitQuery(queryObj *query)
35{
36 if(!query) return MS_FAILURE;
37
38 msFreeQuery(query); /* clean up anything previously allocated */
39
40 query->type = MS_QUERY_IS_NULL; /* nothing defined */
41 query->mode = MS_QUERY_SINGLE;
42
43 query->layer = query->slayer = -1;
44
45 query->point.x = query->point.y = -1;
46 query->buffer = 0.0;
47 query->maxresults = 0;
48
49 query->rect.minx = query->rect.miny = query->rect.maxx = query->rect.maxy = -1;
50 query->shape = NULL;
51
52 query->shapeindex = query->tileindex = -1;
53 query->clear_resultcache = MS_TRUE; /* index queries allow the old results to persist */
54
55 query->item = query->str = NULL;
56 query->filter = NULL;
57
58 return MS_SUCCESS;
59}
60
61void msFreeQuery(queryObj *query)
62{

Callers 11

loadQueryParamsFunction · 0.85
initMapFunction · 0.85
mapObj_queryByPointFunction · 0.85
mapObj_queryByRectFunction · 0.85
mapObj_queryByShapeFunction · 0.85
mapObj_queryByIndexFunction · 0.85
layerObj_queryByPointFunction · 0.85
layerObj_queryByRectFunction · 0.85
layerObj_queryByShapeFunction · 0.85

Calls 1

msFreeQueryFunction · 0.85

Tested by

no test coverage detected