Spatial tools in LEMMA processing