Package org.geotools.referencing.operation.builder

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


        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());
      
View Full Code Here


  public void setSimilar(){
   
    ab = new SimilarTransformBuilder(mps)
  }
  public void printGeomCoef() throws FactoryException{
    AffineToGeometric a2g = new AffineToGeometric((AffineTransform2D)ab.getMathTransform());
    NumberFormat formatter = new DecimalFormat("#0.000000000");
   
  /*  System.out.println("== builder geometric coeficients ==");
    System.out.println("sx   = " + formatter.format(((AdvancedAffineBuilder)ab).getXScale()));
    System.out.println("sy   = " + formatter.format(((AdvancedAffineBuilder)ab).getYScale()));
    System.out.println("skew = " + formatter.format(((AdvancedAffineBuilder)ab).getSkew()));
    System.out.println("tx   = " + formatter.format(((AdvancedAffineBuilder)ab).getXTranslate()));
    System.out.println("ty   = " + formatter.format(((AdvancedAffineBuilder)ab).getYTranslate()));
    System.out.println("phi  = " + formatter.format(((AdvancedAffineBuilder)ab).getRotation()));
    */
   
    System.out.println("== geometric coeficients ==");
    System.out.println("sx   = " + formatter.format(a2g.getXScale()));
    System.out.println("sy   = " + formatter.format(a2g.getYScale()));
    System.out.println("skew = " + formatter.format(a2g.getSkew()));
    System.out.println("tx   = " + formatter.format(a2g.getXTranslate()));
    System.out.println("ty   = " + formatter.format(a2g.getYTranslate()));
    System.out.println("phix = " + formatter.format(a2g.getXRotation()));
    System.out.println("phiy = " + formatter.format(a2g.getYRotation()));

  }
View Full Code Here

TOP

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

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.