Adds spatial index