def test_objects(id, al=3, name=u"Default"):
logger.info("Preparing to test the results for %s (%s/%s)", clean(name), al, id)
if forceTrue:
if id == forceTrueID:
logger.error("Overriding test for %s", forceTrueID)
return True
testOB = nullShape
if True:
testOB = build_object(id,al,name)
if track.within(testOB):
logger.info(u"Track is within %s (%s/%s) place.BBOX(%s)/track.BBOX(%s)", clean(name), al, id, testOB.bounds, track.bounds )
print u"Within {0} ({3}) ({2}/{1})".format(name, id, al, unidecode(unicode(clean(name))))
return True
elif track.intersects(testOB):
logger.info(u"Track intersects with %s (%s/%s) place.BBOX(%s)/track.BBOX(%s)", clean(name), al, id, testOB.bounds, track.bounds )
print u"Intersects {0} ({3}) ({2}/{1})".format(name, id, al, unidecode(unicode(clean(name))))
return True
logger.info("Rejecting %s (%s/%s) place.BBOX(%s)/track.BBOX(%s)!!!", clean(name), al, id, testOB.bounds, track.bounds )
return False
评论列表
文章目录