Hi all: I tried to put some thoughts down regarding removing msLayerWhichItems() from maplayer.c. This sets us up for feature caching, both using Tamas' nested layers and for single pass query support using the resultCacheMemberObj. Please see: http://mapserver.gis.umn.edu/development/rfc/ms-rfc-33 Steve