An Efficient Two-Step Method for Classification of Spatial Data