This commit is only uncommenting a block of code written by Martin, with a change in a class name, method name and a cast.
Command line:
svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r6475:6476 https://svn.osgeo.org/geotools/trunk/modules/library/referencing/src/main/java/org/geotools/referencing/operation/DefaultMathTransformFactory.java
| Revision 6475 | Revision 6476 |
|---|---|
import org.geotools.referencing.operation.transform.ProjectiveTransform; import org.geotools.referencing.operation.transform.PassThroughTransform; import org.geotools.referencing.operation.transform.ConcatenatedTransform; // Resources import org.geotools.util.WeakHashSet; |
import org.geotools.referencing.operation.transform.ProjectiveTransform;
import org.geotools.referencing.operation.transform.PassThroughTransform;
import org.geotools.referencing.operation.transform.ConcatenatedTransform;
import org.geotools.referencing.wkt.MathTransformParser;
// Resources
import org.geotools.util.WeakHashSet; |
// Not a big deal if we are not synchronized. If this method is invoked in
// same time by two different threads, we may have two WKTParser objects
// for a short time. It doesn't hurt...
//TODO parser = new WKTParser(Locale.US, this);
}
throw new FactoryException("Not yet implemented.");
// try {
// return parser.parseMathTransform(text);
// } catch (ParseException exception) {
// final Throwable cause = exception.getCause();
// if (cause instanceof FactoryException) {
// throw (FactoryException) cause;
// }
// throw new FactoryException(exception.getLocalizedMessage(), exception);
// }
}
/**
* Scans for provider plug-ins on the application class path. This method is needed because the |
// Not a big deal if we are not synchronized. If this method is invoked in
// same time by two different threads, we may have two WKTParser objects
// for a short time. It doesn't hurt...
parser = new MathTransformParser(Locale.US);
}
try {
return (MathTransform) parser.parseObject(text);
} catch (ParseException exception) {
final Throwable cause = exception.getCause();
if (cause instanceof FactoryException) {
throw (FactoryException) cause;
}
throw new FactoryException(exception.getLocalizedMessage(), exception);
}
}
/**
* Scans for provider plug-ins on the application class path. This method is needed because the |