@Test public void testGetBoundingBox() { OSHDBBoundingBox result = XYGrid.getBoundingBox(new CellId(2, 2)); OSHDBBoundingBox expResult = new OSHDBBoundingBox( 0.0, -90.0, 90.0 - OSHDB.GEOM_PRECISION, 0.0 - OSHDB.GEOM_PRECISION); assertEquals(expResult, result); }
public static OSHDBBoundingBox getBoundingBox(final CellId cellID) { XYGrid grid = new XYGrid(cellID.getZoomLevel()); return grid.getCellDimensions(cellID.getId()); }
XYGrid implements Serializable { public static OSHDBBoundingBox getBoundingBox(final CellId cellID) { XYGrid grid = new XYGrid(cellID.getZoomLevel()); return grid.getCellDimensions(cellID.getId()); } }
XYGrid implements Serializable { public static OSHDBBoundingBox getBoundingBox(final CellId cellID) { XYGrid grid = new XYGrid(cellID.getZoomLevel()); return grid.getCellDimensions(cellID.getId()); } XYGrid(final int zoom); }
XYGrid implements Serializable { public static OSHDBBoundingBox getBoundingBox(final CellId cellID) { XYGrid grid = new XYGrid(cellID.getZoomLevel()); return grid.getCellDimensions(cellID.getId()); } XYGrid(final int zoom); static OSHDBBoundingBox getBoundingBox(final CellId cellID); static OSHDBBoundingBox getBoundingBox(final CellId cellID, boolean enlarge); long getId(double longitude, double latitude); long getId(long longitude, long latitude); long getId(OSHDBBoundingBox bbx); double getCellWidth(); OSHDBBoundingBox getCellDimensions(final long cellId); long getEstimatedIdCount(final OSHDBBoundingBox data); int getLevel(); Set<IdRange> bbox2CellIdRanges(OSHDBBoundingBox bbox, boolean enlarge); Set<IdRange> getNeighbours(CellId center); }
XYGrid implements Serializable { public static OSHDBBoundingBox getBoundingBox(final CellId cellID) { XYGrid grid = new XYGrid(cellID.getZoomLevel()); return grid.getCellDimensions(cellID.getId()); } XYGrid(final int zoom); static OSHDBBoundingBox getBoundingBox(final CellId cellID); static OSHDBBoundingBox getBoundingBox(final CellId cellID, boolean enlarge); long getId(double longitude, double latitude); long getId(long longitude, long latitude); long getId(OSHDBBoundingBox bbx); double getCellWidth(); OSHDBBoundingBox getCellDimensions(final long cellId); long getEstimatedIdCount(final OSHDBBoundingBox data); int getLevel(); Set<IdRange> bbox2CellIdRanges(OSHDBBoundingBox bbox, boolean enlarge); Set<IdRange> getNeighbours(CellId center);  }