relationship == LifeSpan.ALLEN_EQUAL ||
relationship == LifeSpan.ALLEN_FINISHES ||
relationship == LifeSpan.ALLEN_STARTS){
//check spatial coexistence
Geometry trj_geom = trj.getGeometry();
Geometry model_geom = trj.getGeometry();
Geometry buffered_geom = model_geom.buffer((Double)parameters[0]);
if(trj_geom.equals(buffered_geom) ||
trj_geom.contains(buffered_geom) ||
trj_geom.covers(buffered_geom) ||
trj_geom.intersects(buffered_geom)){