use of com.revolsys.geometry.model.editor.PolygonalEditor in project com.revolsys.open by revolsys.
the class MultiPolygonEditorTest method testNotModified.
@Test
public void testNotModified() {
final PolygonalEditor editor = POLYGONAL.newGeometryEditor();
editor.setZ(new int[0], 13);
final Polygonal newGeometry = editor.newGeometry();
Assert.assertSame(POLYGONAL, newGeometry);
}
use of com.revolsys.geometry.model.editor.PolygonalEditor in project com.revolsys.open by revolsys.
the class MultiPolygonEditorTest method testSetY.
@Test
public void testSetY() {
final PolygonalEditor editor = POLYGONAL.newGeometryEditor(3);
editor.setY(1, 1, 1, 10);
final Polygonal newGeometry = editor.newGeometry();
Assert.assertNotSame(POLYGONAL, newGeometry);
Assert.assertEquals(10.0, newGeometry.getY(1, 1, 1), 0.0);
}
Aggregations