Package org.onebusaway.geospatial.model

Examples of org.onebusaway.geospatial.model.CoordinateBounds.addBounds()


  }

  @Test
  public void testAddBounds() {
    CoordinateBounds bounds = new CoordinateBounds();
    bounds.addBounds(new CoordinateBounds(1,2,3,4));
    assertEquals(1, bounds.getMinLat(), 0);
    assertEquals(2, bounds.getMinLon(), 0);
    assertEquals(3, bounds.getMaxLat(), 0);
    assertEquals(4, bounds.getMaxLon(), 0);
    bounds.addBounds(new CoordinateBounds(0,3,2,5));
View Full Code Here


    bounds.addBounds(new CoordinateBounds(1,2,3,4));
    assertEquals(1, bounds.getMinLat(), 0);
    assertEquals(2, bounds.getMinLon(), 0);
    assertEquals(3, bounds.getMaxLat(), 0);
    assertEquals(4, bounds.getMaxLon(), 0);
    bounds.addBounds(new CoordinateBounds(0,3,2,5));
    assertEquals(0, bounds.getMinLat(), 0);
    assertEquals(2, bounds.getMinLon(), 0);
    assertEquals(3, bounds.getMaxLat(), 0);
    assertEquals(5, bounds.getMaxLon(), 0);
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.