- if (!intersects(_box, p->cart())) {
- // see http://code.google.com/p/flightgear-bugs/issues/detail?id=905
-
- SG_LOG(SG_GENERAL, SG_WARN, "XXXXXXXXX bad spatial index for " << it->second
- << "; " << p->ident() << " of type " <<
- FGPositioned::nameForType(p->type()));
- SG_LOG(SG_GENERAL, SG_WARN, "\tgeodetic location:" << p->geod());
- SG_LOG(SG_GENERAL, SG_WARN, "\tcartesian location:" << p->cart());
-
- SG_LOG(SG_GENERAL, SG_WARN, "leaf box:" <<
- _box.getMin() << " x " << _box.getMax());
-
- throw sg_exception("Bad spatial index data");
- }
-
-