Examples of XRectangle2D


Examples of org.geotools.resources.geometry.XRectangle2D

            // GRID TO WORLD for transforming raster points into model points
            mt2D= gc2d.getGridGeometry().getGridToCRS2D(PixelOrientation.UPPER_LEFT);
           
            // BOUNDS take into account that we want to map center coordinates
            rasterBounds = PlanarImage.wrapRenderedImage(raster).getBounds();
            final XRectangle2D rasterBounds_=new XRectangle2D(raster.getMinX()+0.5, raster.getMinY()+0.5, raster.getWidth()-1,  raster.getHeight()-1);
            try {
                bounds = new ReferencedEnvelope(CRS.transform(mt2D, rasterBounds_, null),
                        gc2d.getCoordinateReferenceSystem2D());
            } catch (Exception e) {
                final IOException ioe = new IOException();
View Full Code Here

Examples of org.geotools.resources.geometry.XRectangle2D

            // GRID TO WORLD
            mt2D= gc2d.getGridGeometry().getGridToCRS2D(PixelOrientation.UPPER_LEFT);
           
            // BOUNDS take into account that we want to map center coordinates
            rasterBounds = PlanarImage.wrapRenderedImage(raster).getBounds();
            final XRectangle2D rasterBounds_=new XRectangle2D(raster.getMinX()+0.5, raster.getMinY()+0.5, raster.getWidth()-1,  raster.getHeight()-1);
            try {
        bounds = new ReferencedEnvelope(CRS.transform(mt2D, rasterBounds_, null),gc2d.getCoordinateReferenceSystem2D());
      } catch (MismatchedDimensionException e) {
        final IOException ioe= new IOException();
        ioe.initCause(e);
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.