| 587 | } |
| 588 | |
| 589 | int 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 | |
| 610 | int layerObj_setFilter(layerObj *self, char *string) { |
| 611 | if (!string || strlen(string) == 0) { |
no test coverage detected