sr2.ImportFromEPSG(32631);
Vector options = new Vector();
options.add("SRC_SRS=" + sr1.ExportToWkt());
options.add("DST_SRS=" + sr2.ExportToWkt());
Transformer t = new Transformer(ds1, ds2, options);
double argout[] = new double[3];
argout[0] = 0;
argout[1] = 0;
int ret = t.TransformPoint(0, argout);
if (ret == 0)
throw new RuntimeException();
System.out.println("x=" + argout[0] + " y=" + argout[1]);
ret = t.TransformPoint(1, argout);
if (ret == 0)
throw new RuntimeException();
System.out.println("x=" + argout[0] + " y=" + argout[1]);
ret = t.TransformPoint(argout, 0, 0, 0, 0);
if (ret == 0)
throw new RuntimeException();
System.out.println("x=" + argout[0] + " y=" + argout[1]);
ret = t.TransformPoint(argout, 0, 0, 0);
if (ret == 0)
throw new RuntimeException();
System.out.println("x=" + argout[0] + " y=" + argout[1]);
double arrayOfPoints[][] = new double[][] { new double[]{0, 0}, new double[]{100,100} };
ret = t.TransformPoints(0, arrayOfPoints, null);
if (ret == 0)
throw new RuntimeException();
System.out.println("x=" + arrayOfPoints[0][0] + " y=" + arrayOfPoints[0][1]);
System.out.println("x=" + arrayOfPoints[1][0] + " y=" + arrayOfPoints[1][1]);
ret = t.TransformPoints(1, arrayOfPoints, null);
if (ret == 0)
throw new RuntimeException();
System.out.println("x=" + arrayOfPoints[0][0] + " y=" + arrayOfPoints[0][1]);
System.out.println("x=" + arrayOfPoints[1][0] + " y=" + arrayOfPoints[1][1]);
}