Adaptive sampling for selectivity estimation in spatial database