assertEquals("converted to radians", Math.toRadians(90.0), transformer.getRotation(), 1e-9);
}
@Test
public void testGetRotatedBounds_BBoxMapBounds() {
MapBounds bounds = new BBoxMapBounds(DefaultGeographicCRS.WGS84, 5, 45, 25, 55);
// rotate 90 degree
MapfishMapContext transformer = new MapfishMapContext(bounds, null, 90, Constants.PDF_DPI, Constants.PDF_DPI, null, true);
MapBounds rotatedBounds = new BBoxMapBounds(DefaultGeographicCRS.WGS84, 10, 40, 20, 60);
assertEquals(rotatedBounds, transformer.getRotatedBounds());
// rotate 180 degree
transformer = new MapfishMapContext(bounds, null, 180, Constants.PDF_DPI, Constants.PDF_DPI, null, true);
rotatedBounds = new BBoxMapBounds(DefaultGeographicCRS.WGS84, 5, 45, 25, 55);