Examples of boundsEquals()


Examples of org.geotools.geometry.Envelope2D.boundsEquals()

        GridGeometry2D gg = getRandomCoverage().getGridGeometry();

        Envelope2D worldBounds = gg.getEnvelope2D();
        GridEnvelope2D gridBounds = gg.getGridRange2D();

        assertTrue(worldBounds.boundsEquals(gg.gridToWorld(gridBounds), 0, 1, TOL));

        // test sub-area conversion
        GridEnvelope2D subGrid = new GridEnvelope2D(
                gridBounds.x + 1,
                gridBounds.y + 1,
View Full Code Here

Examples of org.geotools.geometry.Envelope2D.boundsEquals()

                worldBounds.getMinX() + cellWidthX,
                worldBounds.getMinY() + cellWidthY,
                worldBounds.getWidth() - 2 * cellWidthX,
                worldBounds.getHeight() - 2 * cellWidthY);

        assertTrue( expectedEnv.boundsEquals(subEnv, 0, 1, TOL) );
    }

}
View Full Code Here

Examples of org.geotools.geometry.Envelope2D.boundsEquals()

       
        CRS.equalsIgnoreMetadata(
                refEnv.getCoordinateReferenceSystem(),
                env2D.getCoordinateReferenceSystem());
       
        assertTrue(env2D.boundsEquals(refEnv, 0, 1, TOL));
    }

    @Test
    public void toGeometry_Envelope() {
        Envelope refEnv = new Envelope(-10, 10, -5, 5);
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.