@Test
public void testDecimate3DLine() throws Exception {
LineString ls = gf.createLineString(csf.create(new double[] {0,0,1, 1,2,1, 3,3,4 ,4,5,5}, 3));
assertEquals(4, ls.getNumPoints());
MathTransform identity = new AffineTransform2D(new AffineTransform());
Decimator d = new Decimator(identity, new Rectangle(0,0,5,5), 0.8);
d.decimateTransformGeneralize(ls, identity);
assertEquals(4, ls.getNumPoints());
assertEquals(2, ls.getCoordinateSequence().getDimension());