use of com.revolsys.geometry.model.Lineal in project com.revolsys.open by revolsys.
the class BoundingBoxTest method testMultiLineString.
@Test
public void testMultiLineString() {
for (final GeometryFactory geometryFactory : GEOMETRY_FACTORIES) {
final Lineal empty = geometryFactory.lineal();
final BoundingBox boundingBoxEmpty = empty.getBoundingBox();
assertBoundingBox(empty, boundingBoxEmpty, geometryFactory, true, 2, NULL_BOUNDS);
final Lineal geometry1 = geometryFactory.lineal(2, new double[][] { { 3.0, 4.0, 1.0, 2.0 }, { 7.0, 8.0, 5.0, 6.0 } });
final BoundingBox boundingBox1 = geometry1.getBoundingBox();
assertBoundingBox(geometry1, boundingBox1, geometryFactory, false, 2, 1.0, 2.0, 7.0, 8.0);
}
}
use of com.revolsys.geometry.model.Lineal 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.Lineal 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