Examples of toAffineTransform2D()


Examples of org.geotools.referencing.operation.matrix.GeneralMatrix.toAffineTransform2D()

            gm.setElement(0, 1, dx[1]);
            gm.setElement(1, 0, dy[0]);
            gm.setElement(1, 1, dy[1]);
            gm.setElement(0, 2, easting);
            gm.setElement(1, 2, northing);
            gt = gm.toAffineTransform2D();
           
            this.raster2Model = ProjectiveTransform.create(gt);
            MathTransform tempTransform = PixelTranslation.translate(
                    raster2Model, PixelInCell.CELL_CENTER,
                    PixelInCell.CELL_CORNER);
View Full Code Here

Examples of org.geotools.referencing.operation.matrix.GeneralMatrix.toAffineTransform2D()

            }
            final GeneralMatrix m = toGMatrix(matrix);
            if (m.isAffine()) {
                switch (dimension) {
                    case 1: return LinearTransform1D.create(m.getElement(0,0), m.getElement(0,1));
                    case 2: return create(m.toAffineTransform2D());
                }
            }
        }
        switch (dimension) {
            case 2return new ProjectiveTransform2D(matrix);
View Full Code Here

Examples of org.geotools.referencing.operation.matrix.GeneralMatrix.toAffineTransform2D()

                normalized[1] = normalized[1].opposite(); // Image's Y axis is downward.
                matrix = new GeneralMatrix(srcEnvelope, axis, dstEnvelope, normalized);
            } else {
                matrix = new GeneralMatrix(srcEnvelope, dstEnvelope);
            }
            return new RenderContext(matrix.toAffineTransform2D(), hints);
        }

        /**
         * Returns the number of elements per value at each position. This is
         * the maximum value plus 1 allowed in {@code getElements(...)} methods
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.