Examples of boundsEquals2D()


Examples of org.geotools.geometry.jts.ReferencedEnvelope.boundsEquals2D()

    @Test
    public void expand() {
        ReferencedEnvelope env = new ReferencedEnvelope(2.6, 9.4, 2.4, 9.6, null);
        ReferencedEnvelope result = Envelopes.expandToInclude(env, 1.0);
        ReferencedEnvelope expected = new ReferencedEnvelope(2.0, 10.0, 2.0, 10.0, null);
        assertTrue(expected.boundsEquals2D(result, TOL));
    }

    @Test
    public void expandNegativeX() {
        ReferencedEnvelope env = new ReferencedEnvelope(-2.6, -9.4, 2.4, 9.6, null);
View Full Code Here

Examples of org.geotools.geometry.jts.ReferencedEnvelope.boundsEquals2D()

    @Test
    public void expandNegativeX() {
        ReferencedEnvelope env = new ReferencedEnvelope(-2.6, -9.4, 2.4, 9.6, null);
        ReferencedEnvelope result = Envelopes.expandToInclude(env, 1.0);
        ReferencedEnvelope expected = new ReferencedEnvelope(-2.0, -10.0, 2.0, 10.0, null);
        assertTrue(expected.boundsEquals2D(result, TOL));
    }

    @Test
    public void expandNegativeY() {
        ReferencedEnvelope env = new ReferencedEnvelope(2.6, 9.4, -2.4, -9.6, null);
View Full Code Here

Examples of org.geotools.geometry.jts.ReferencedEnvelope.boundsEquals2D()

    @Test
    public void expandNegativeY() {
        ReferencedEnvelope env = new ReferencedEnvelope(2.6, 9.4, -2.4, -9.6, null);
        ReferencedEnvelope result = Envelopes.expandToInclude(env, 1.0);
        ReferencedEnvelope expected = new ReferencedEnvelope(2.0, 10.0, -2.0, -10.0, null);
        assertTrue(expected.boundsEquals2D(result, TOL));
    }

}
View Full Code Here

Examples of org.geotools.geometry.jts.ReferencedEnvelope.boundsEquals2D()

        ReferencedEnvelope expectedBounds = new ReferencedEnvelope(
                WORLD_1_1.getMinX(), WORLD_1_1.getMaxX() + WORLD_1_1.getWidth(),
                WORLD_1_1.getMinY(), WORLD_1_1.getMaxY(),
                WORLD_1_1.getCoordinateReferenceSystem());
       
        assertTrue( expectedBounds.boundsEquals2D(vp.getBounds(), TOL) );
    }
   
    @Test
    public void newBoundsAreHonoured_NoAspectMatching() {
        MapViewport vp = new MapViewport(false);
View Full Code Here

Examples of org.geotools.geometry.jts.ReferencedEnvelope.boundsEquals2D()

        mapPaneFixture.robot.pressMouse(mouseStartPos, MouseButton.LEFT_BUTTON);
        mapPaneFixture.robot.moveMouse(mouseEndPos);
        mapPaneFixture.robot.releaseMouseButtons();
       
        assertTrue( listener.await(MapPaneEvent.Type.DISPLAY_AREA_CHANGED, EVENT_TIMEOUT) );
        assertTrue(expectedEnv.boundsEquals2D(mapPane.getDisplayArea(), TOL));
    }

    @Override
    protected Layer getTestLayer() throws Exception {
        return TestDataUtils.getPointLayer();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.