Added by jaume about 18 years ago
fixes infinite loop when no spatial index in the layer is available
View differences