Add support to spatial index read from file.