use of com.revolsys.geometry.model.editor.LinealEditor in project com.revolsys.open by revolsys.
the class MultiLineStringEditorTest method testSetM.
@Test
public void testSetM() {
final LinealEditor editor = LINEAL.newGeometryEditor(4);
editor.setM(1, 1, 10);
final Lineal newGeometry = editor.newGeometry();
Assert.assertNotSame(LINEAL, newGeometry);
Assert.assertEquals(10.0, newGeometry.getM(1, 1), 0.0);
}
use of com.revolsys.geometry.model.editor.LinealEditor in project com.revolsys.open by revolsys.
the class MultiLineStringEditorTest method testSetX.
@Test
public void testSetX() {
final LinealEditor editor = LINEAL.newGeometryEditor(3);
editor.setX(1, 1, 10);
final Lineal newGeometry = editor.newGeometry();
Assert.assertNotSame(LINEAL, newGeometry);
Assert.assertEquals(10.0, newGeometry.getX(1, 1), 0.0);
}
Aggregations