@Test public void testProjectionGeometry() throws IOException { String datasetUrl = getResourceDir() + File.separator + "testProjectedTYXGrid.ncml"; assignGridCellGeometryAndGridCoordSystem(datasetUrl); assertNotNull("Geometry should not be null", gcg.getCellGeometry(0, 0)); }
public Geometry getCellGeometry(int xIndex, int yIndex) { if (xIndex < 0 || xIndex >= xCellCount || yIndex < 0 || yIndex >= yCellCount) { throw new IndexOutOfBoundsException(); } return getCellGeometryQuick(xIndex, yIndex); }
GridCellGeometry { public Geometry getCellGeometry(int xIndex, int yIndex) { if (xIndex < 0 || xIndex >= xCellCount || yIndex < 0 || yIndex >= yCellCount) { throw new IndexOutOfBoundsException(); } return getCellGeometryQuick(xIndex, yIndex); } }
GridCellGeometry { public Geometry getCellGeometry(int xIndex, int yIndex) { if (xIndex < 0 || xIndex >= xCellCount || yIndex < 0 || yIndex >= yCellCount) { throw new IndexOutOfBoundsException(); } return getCellGeometryQuick(xIndex, yIndex); } GridCellGeometry(GridCoordSystem gridCoordSystem); }
GridCellGeometry { public Geometry getCellGeometry(int xIndex, int yIndex) { if (xIndex < 0 || xIndex >= xCellCount || yIndex < 0 || yIndex >= yCellCount) { throw new IndexOutOfBoundsException(); } return getCellGeometryQuick(xIndex, yIndex); } GridCellGeometry(GridCoordSystem gridCoordSystem); GridCoordSystem getGridCoordSystem(); CoordinateReferenceSystem getGridCRS(); int getCellCountX(); int getCellCountY(); int getCellCount(); Geometry getCellGeometry(int xIndex, int yIndex); final int calculateYXIndex(int xIndex, int yIndex); }
GridCellGeometry { public Geometry getCellGeometry(int xIndex, int yIndex) { if (xIndex < 0 || xIndex >= xCellCount || yIndex < 0 || yIndex >= yCellCount) { throw new IndexOutOfBoundsException(); } return getCellGeometryQuick(xIndex, yIndex); } GridCellGeometry(GridCoordSystem gridCoordSystem); GridCoordSystem getGridCoordSystem(); CoordinateReferenceSystem getGridCRS(); int getCellCountX(); int getCellCountY(); int getCellCount(); Geometry getCellGeometry(int xIndex, int yIndex); final int calculateYXIndex(int xIndex, int yIndex);  }