Package ch.epfl.lbd.database.spatial

Examples of ch.epfl.lbd.database.spatial.Geometry


    episodes = new ArrayList<Episode>();
  }
 
  public Geometry getGeometry(){
    if(episodes.size() < 2) return null;
    Geometry trj_shape = episodes.get(1).getGeometry();
    for(Episode episode : episodes){
      if(episode instanceof Move)
        trj_shape = trj_shape.union(episode.getGeometry());
    }
    return trj_shape;
  }
View Full Code Here


      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)){
View Full Code Here

TOP

Related Classes of ch.epfl.lbd.database.spatial.Geometry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.