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

Function layerObj_queryByShape

mapscript/php/mapscript_i.c:589–608  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

587 }
588
589int layerObj_queryByShape(layerObj *self, mapObj *map, shapeObj *shape) {
590 int status;
591 int retval;
592
593 msInitQuery(&(map->query));
594
595 map->query.type = MS_QUERY_BY_SHAPE;
596 map->query.mode = MS_QUERY_MULTIPLE;
597 map->query.shape = (shapeObj *) malloc(sizeof(shapeObj));
598 msInitShape(map->query.shape);
599 msCopyShape(shape, map->query.shape);
600 map->query.layer = self->index;
601
602 status = self->status;
603 self->status = MS_ON;
604 retval = msQueryByShape(map);
605 self->status = status;
606
607 return retval;
608 }
609
610int layerObj_setFilter(layerObj *self, char *string) {
611 if (!string || strlen(string) == 0) {

Callers 1

layer.cFile · 0.85

Calls 4

msInitQueryFunction · 0.85
msInitShapeFunction · 0.85
msCopyShapeFunction · 0.85
msQueryByShapeFunction · 0.85

Tested by

no test coverage detected