Package org.opengis.referencing.operation

Examples of org.opengis.referencing.operation.MathTransform1D.transform()


            MathTransform ctr = getRandomTransform1D();
            ctr.transform(sourcePt, 0, targetPt,  0, numPts);
            for (int i=random.nextInt(2)+1; --i>=0;) {
                final MathTransform1D step = getRandomTransform1D();
                ctr = (MathTransform1D) factory.createConcatenatedTransform(ctr, step);
                step.transform(targetPt, 0, targetPt, 0, numPts);
            }
            ctr.transform(sourcePt, 0, compare,  0, numPts);
            final double EPS = Math.pow(10, -5+countNonlinear(ctr));
            for (int i=0; i<numPts; i++) {
                delta[i] = Math.max(1E-9, Math.abs(targetPt[i]*EPS));
 
View Full Code Here


        final DirectPosition1D point = new DirectPosition1D();
        for (int i=0; i<expected.length; i++) {
            final double x = input[i];
            final double y = direct.transform(x);
            assertEquals("transform[x="+x+']', expected[i], y,          1E-6);
            assertEquals("inverse  [y="+y+']', x, inverse.transform(y), 1E-6);
            point.setOrdinate(0, x);
            assertSame(direct.transform(point, point), point);
            assertEquals(y, point.getOrdinate(0), 1E-9);
        }
    }
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.