Often, you use the nearest neighbor for discrete data like land cover classification, buildings, and soil types that have distinct boundaries and limits are discrete.