@Test(expected = IndexOutOfBoundsException.class) public void testIndexOutOfBoundsException() throws TransformException { final PJ pj = new PJ("+proj=latlong +datum=WGS84"); pj.transform(pj, 2, new double[5], 2, 2); }
public native void transform(PJ target, int dimension, double[] coordinates, int offset, int numPts) throws PJException;
PJ { public native void transform(PJ target, int dimension, double[] coordinates, int offset, int numPts) throws PJException; }
PJ { public native void transform(PJ target, int dimension, double[] coordinates, int offset, int numPts) throws PJException; PJ(final String definition);  PJ(final PJ crs, final Type type); }
PJ { public native void transform(PJ target, int dimension, double[] coordinates, int offset, int numPts) throws PJException; PJ(final String definition);  PJ(final PJ crs, final Type type); static native String getVersion(); native String getDefinition(); native Type getType(); native double getSemiMajorAxis(); native double getSemiMinorAxis(); native double getEccentricitySquared(); native char[] getAxisDirections(); native double getGreenwichLongitude(); native double getLinearUnitToMetre(boolean vertical); native void transform(PJ target, int dimension, double[] coordinates, int offset, int numPts); native String getLastError(); @Override native String toString(); }
PJ { public native void transform(PJ target, int dimension, double[] coordinates, int offset, int numPts) throws PJException; PJ(final String definition);  PJ(final PJ crs, final Type type); static native String getVersion(); native String getDefinition(); native Type getType(); native double getSemiMajorAxis(); native double getSemiMinorAxis(); native double getEccentricitySquared(); native char[] getAxisDirections(); native double getGreenwichLongitude(); native double getLinearUnitToMetre(boolean vertical); native void transform(PJ target, int dimension, double[] coordinates, int offset, int numPts); native String getLastError(); @Override native String toString(); static final int DIMENSION_MAX; }