void runCenter() { LatLonPointImpl ptL = new LatLonPointImpl(-73.79, 0.0); double xinc = 22.5; double yinc = 20.0; for (double lon = 0.0; lon < 380.0; lon += xinc) { ptL.setLongitude(lon); LatLonRect llbb = new LatLonRect(ptL, yinc, xinc); ProjectionRect ma2 = p.latLonToProjBB(llbb); LatLonRect p2 = p.projToLatLonBB(ma2); Assert.assertTrue(llbb + " => " + ma2 + " => " + p2, llbb.nearlyEquals(p2)); } }
void runCenter(double center) { LatLonPointImpl ptL = new LatLonPointImpl(0.0, 0.0); double xinc = 22.5; double yinc = 20.0; for (double lon = 0.0; lon < 380.0; lon += xinc) { ptL.setLongitude(center+lon); LatLonRect llbb = new LatLonRect(ptL, yinc, xinc); ProjectionRect ma2 = p.latLonToProjBB(llbb); LatLonRect p2 = p.projToLatLonBB(ma2); Assert.assertTrue(llbb + " => " + ma2 + " => " + p2, llbb.nearlyEquals(p2)); } }