SmosDgg { static int gridPointIdToZoneId(int gridPointId) { return gridPointId / A + 1; } private  SmosDgg(); static SmosDgg getInstance(); static int gridPointIdToSeqnum(int gridPointId); static int seqnumToSeqnumInZone(int seqnum); static int seqnumToZoneId(int seqnum); AffineTransform getImageToMapTransform(); MultiLevelImage getMultiLevelImage(); static final int MIN_GRID_POINT_ID; static final int MAX_GRID_POINT_ID; static final int MAX_SEQNUM; static final int MAX_ZONE_ID; }
@Test public void gridPointIdToZoneId() { assertEquals(1, SmosDgg.gridPointIdToZoneId(1)); assertEquals(1, SmosDgg.gridPointIdToZoneId(2)); assertEquals(1, SmosDgg.gridPointIdToZoneId(3)); assertEquals(1, SmosDgg.gridPointIdToZoneId(262144)); assertEquals(1, SmosDgg.gridPointIdToZoneId(262145)); assertEquals(2, SmosDgg.gridPointIdToZoneId(1000001)); assertEquals(2, SmosDgg.gridPointIdToZoneId(1000002)); assertEquals(2, SmosDgg.gridPointIdToZoneId(1262143)); assertEquals(2, SmosDgg.gridPointIdToZoneId(1262144)); assertEquals(3, SmosDgg.gridPointIdToZoneId(2000001)); assertEquals(3, SmosDgg.gridPointIdToZoneId(2000002)); assertEquals(9, SmosDgg.gridPointIdToZoneId(8262143)); assertEquals(9, SmosDgg.gridPointIdToZoneId(8262144)); assertEquals(10, SmosDgg.gridPointIdToZoneId(9000001)); assertEquals(10, SmosDgg.gridPointIdToZoneId(9000002)); assertEquals(10, SmosDgg.gridPointIdToZoneId(9262144)); assertEquals(10, SmosDgg.gridPointIdToZoneId(9262145)); }