Package org.geotools.referencing.operation.builder

Examples of org.geotools.referencing.operation.builder.AdvancedAffineBuilder


       Builder builder = new Builder(new File("./gcpswld.txt"));
            System.out.println("klokan------------------------------------------------------");
        transformTest(getMT(), builder.getMappedPositions());
       
        AdvancedAffineBuilder aab = new AdvancedAffineBuilder(builder.getMappedPositions());
        aab.setConstrain(aab.SXY, 0);
       // aab.setNumberOfIterationSteps(200);
      //  aab.setMaxIterationDifference(0.0000001);
        System.out.println("Ja------------------------------------------------------");
        transformTest(aab.getMathTransform(), builder.getMappedPositions());
        AffineToGeometric a2g2 = new AffineToGeometric((AffineTransform2D)aab.getMathTransform());
        System.out.println("Parametry------------------------------------------------------");
        System.out.println("xrot "+a2g2.getXRotation()*180/Math.PI);
        System.out.println("tX  "+a2g2.getXTranslate());
        System.out.println("tY  "+a2g2.getYTranslate());
        System.out.println("sx  "+a2g2.getXScale());
        System.out.println("sy  "+a2g2.getYScale());
        System.out.println("sxy "+a2g2.getSkew());
        System.out.println(aab.getMathTransform());
       
        System.out.println("Afinita------------------------------------------------------");
        AffineTransformBuilder atb = new  AffineTransformBuilder(builder.getMappedPositions());
      
       // transformTest(atb.getMathTransform(), builder.getMappedPositions());
View Full Code Here


  private  MathTransformBuilder ab;
  private final List<MappedPosition> mps;
  //private final MathTransformBuilder atb;
  Builder(File gcps) throws FileNotFoundException, IOException, FactoryException{   
    mps = readFile(gcps);
    ab = new AdvancedAffineBuilder(mps)
    Locale.setDefault(Locale.UK)
  }
View Full Code Here

TOP

Related Classes of org.geotools.referencing.operation.builder.AdvancedAffineBuilder

Copyright © 2018 www.massapicom. 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.