Search in sources :

Example 6 with PunctualEditor

use of com.revolsys.geometry.model.editor.PunctualEditor in project com.revolsys.open by revolsys.

the class Punctual method newGeometryEditor.

@Override
default PunctualEditor newGeometryEditor(final int axisCount) {
    final PunctualEditor geometryEditor = newGeometryEditor();
    geometryEditor.setAxisCount(axisCount);
    return geometryEditor;
}
Also used : PunctualEditor(com.revolsys.geometry.model.editor.PunctualEditor)

Example 7 with PunctualEditor

use of com.revolsys.geometry.model.editor.PunctualEditor in project com.revolsys.open by revolsys.

the class MultiPointEditorTest method testSetM.

@Test
public void testSetM() {
    final PunctualEditor editor = PUNCTUAL.newGeometryEditor(4);
    editor.setM(0, 10);
    final Punctual newMultiPoint = editor.newGeometry();
    Assert.assertNotSame(PUNCTUAL, newMultiPoint);
    Assert.assertEquals(10.0, newMultiPoint.getM(0), 0.0);
}
Also used : Punctual(com.revolsys.geometry.model.Punctual) PunctualEditor(com.revolsys.geometry.model.editor.PunctualEditor) Test(org.junit.Test)

Aggregations

PunctualEditor (com.revolsys.geometry.model.editor.PunctualEditor)7 Punctual (com.revolsys.geometry.model.Punctual)6 Test (org.junit.Test)6