Package ch.epfl.lbd.database.spatial

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


      else if(value.getClass() == Polygon.class){
        //TODO: insert statements for polygons
      }
     
      else if(value.getClass() == PolyLine.class){
        PolyLine val = (PolyLine)value;
        String ptList = "";
        for(LatLngPoint pt : val.getPoints())ptList += pt.getLat()+" "+pt.getLng()+",";
        ptList = ptList.substring(0, ptList.length()-1);
        statement = "GeometryFromText('LINESTRING("+ptList+")',4030)";
      }
     
      else if(value.getClass() == Line.class){
View Full Code Here


 
  private GPSPoint first;
 
  public Move(){
    super();
    geom = new PolyLine();

  }
View Full Code Here

    if(other.getClass().equals(Move.class)){
      if(geom == null){
        LatLngPoint[] points = new LatLngPoint[2];
        points[0] = first;
        points[1] = (GPSPoint)((Move)other).first;
        geom = new PolyLine(points);
      }
      LatLngPoint point = (LatLngPoint)((Move)other).first;
      ((PolyLine)this.geom).addPoint(point);

      return true;
View Full Code Here

TOP

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

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.