@Test public void testAdvancedAffineBuilder(){ try { List<MappedPosition> pts = generateCoords(3, 1245); AdvancedAffineBuilder aab = new AdvancedAffineBuilder(pts); aab.setConstrain(AdvancedAffineBuilder.SXY, 0); AffineToGeometric a2g = new AffineToGeometric((AffineTransform2D)aab.getMathTransform()); Assert.assertEquals(a2g.getSkew(), 0, 0.000000001); } catch (Exception e) { fail(e.getMessage()); } }
public final MathTransform getMathTransform() throws FactoryException { if (transform == null) { transform = computeMathTransform(); } return transform; }
MathTransformBuilder { public final MathTransform getMathTransform() throws FactoryException { if (transform == null) { transform = computeMathTransform(); } return transform; } }
MathTransformBuilder { public final MathTransform getMathTransform() throws FactoryException { if (transform == null) { transform = computeMathTransform(); } return transform; } MathTransformBuilder();  MathTransformBuilder(final Hints hints); }
MathTransformBuilder { public final MathTransform getMathTransform() throws FactoryException { if (transform == null) { transform = computeMathTransform(); } return transform; } MathTransformBuilder();  MathTransformBuilder(final Hints hints); String getName(); abstract int getMinimumPointCount(); int getDimension(); List <MappedPosition> getMappedPositions(); void setMappedPositions(final List<MappedPosition> positions); DirectPosition[] getSourcePoints(); void setSourcePoints(final DirectPosition[] points); DirectPosition[] getTargetPoints(); void setTargetPoints(final DirectPosition[] points); void printPoints(final Writer out, Locale locale); CoordinateReferenceSystem getSourceCRS(); CoordinateReferenceSystem getTargetCRS(); Class<? extends CoordinateSystem> getCoordinateSystemType(); Statistics getErrorStatistics(); final MathTransform getMathTransform(); Transformation getTransformation(); @Override String toString(); }
MathTransformBuilder { public final MathTransform getMathTransform() throws FactoryException { if (transform == null) { transform = computeMathTransform(); } return transform; } MathTransformBuilder();  MathTransformBuilder(final Hints hints); String getName(); abstract int getMinimumPointCount(); int getDimension(); List <MappedPosition> getMappedPositions(); void setMappedPositions(final List<MappedPosition> positions); DirectPosition[] getSourcePoints(); void setSourcePoints(final DirectPosition[] points); DirectPosition[] getTargetPoints(); void setTargetPoints(final DirectPosition[] points); void printPoints(final Writer out, Locale locale); CoordinateReferenceSystem getSourceCRS(); CoordinateReferenceSystem getTargetCRS(); Class<? extends CoordinateSystem> getCoordinateSystemType(); Statistics getErrorStatistics(); final MathTransform getMathTransform(); Transformation getTransformation(); @Override String toString();  }