NTv2Transform extends AbstractMathTransform implements MathTransform2D, Serializable { public NTv2Transform(URI file) throws NoSuchIdentifierException { if (file == null) { throw new NoSuchIdentifierException("No NTv2 Grid File specified.", null); } this.grid = file; gridLocation = locateGrid(grid.toString()); if(gridLocation == null) { throw new NoSuchIdentifierException("Could not locate NTv2 Grid File " + file, null); } if (!FACTORY.isNTv2Grid(gridLocation)) { throw new NoSuchIdentifierException("NTv2 Grid File not available.", file.toString()); } } NTv2Transform(URI file); @Override int hashCode(); @Override boolean equals(final Object object); @Override synchronized MathTransform2D inverse(); @Override void transform(double[] srcPts, int srcOff, double[] dstPts,
            int dstOff, int numPts); void inverseTransform(double[] srcPts, int srcOff, double[] dstPts,
            int dstOff, int numPts); @Override int getSourceDimensions(); @Override int getTargetDimensions(); @Override ParameterValueGroup getParameterValues();  }
@Test public void testNTv2Transform() throws Exception { try { new NTv2Transform(null); } catch (NoSuchIdentifierException e) { assert true; } try { new NTv2Transform(new URI(INEXISTENT_GRID)); } catch (NoSuchIdentifierException e) { return; } try { new NTv2Transform(new URI(INEXISTENT_GRID)); } catch (NoSuchIdentifierException e) { return; } }