assertEquals(new Coordinate(15,7), modified.get(1));
}
@Test
public void testTransform() throws Exception {
MathTransform t=CRS.findMathTransform(CRS.decode("EPSG:3005"), DefaultGeographicCRS.WGS84); //$NON-NLS-1$
AffineTransform translateInstance = AffineTransform.getTranslateInstance(180, 90);
EditBlackboard map=new EditBlackboard( SCREEN.x, SCREEN.y, translateInstance, t);
int x=-12+180;
int y=52+90;
map.addPoint(x,y, map.getGeoms().get(0).getShell());
double [] tmp=new double[]{ x+.5,y+.5 };
double [] expected=new double[2];
translateInstance.inverseTransform(tmp, 0,tmp,0,1);
t.inverse().transform(tmp, 0, expected,0,1);
assertEquals(new Coordinate(expected[0], expected[1]),map.getCoords(x,y).get(0));
}