use of eu.esdihumboldt.util.geometry.interpolation.model.ArcByCenterPoint in project hale by halestudio.
the class SplitInterpolationTest method testLarge.
@Test
public void testLarge() throws IOException {
ArcByCenterPoint arc = new ArcByCenterPointImpl(new Coordinate(0, 0), 50.0, Angle.fromDegrees(45), Angle.fromDegrees(135), true);
splitInterpolationTest(arc, 0.1);
}
use of eu.esdihumboldt.util.geometry.interpolation.model.ArcByCenterPoint in project hale by halestudio.
the class SplitInterpolationTest method testHalfCircle.
@Test
public void testHalfCircle() throws IOException {
ArcByCenterPoint arc = new ArcByCenterPointImpl(new Coordinate(0, 0), 1.0, Angle.fromDegrees(0), Angle.fromDegrees(180), true);
splitInterpolationTest(arc, 0.1);
}
use of eu.esdihumboldt.util.geometry.interpolation.model.ArcByCenterPoint in project hale by halestudio.
the class SplitInterpolationTest method test90Deegrees.
@Test
public void test90Deegrees() throws IOException {
ArcByCenterPoint arc = new ArcByCenterPointImpl(new Coordinate(0, 0), Math.sqrt(2.0), Angle.fromDegrees(45), Angle.fromDegrees(135), false);
splitInterpolationTest(arc, 0.1);
}
use of eu.esdihumboldt.util.geometry.interpolation.model.ArcByCenterPoint in project hale by halestudio.
the class CurveGeometryTest method init.
// XXX different segments need different count of coordinates
// XXX missing Clothoid handler
@Override
public void init() {
super.init();
Coordinate[] coordinates = new Coordinate[] { new Coordinate(0.01, 3.2), new Coordinate(3.33, 3.33), new Coordinate(0.01, -3.2) };
lineStringReference = geomFactory.createLineString(coordinates);
lineStringChecker = combine(noCoordinatePairs(), referenceChecker(lineStringReference));
lineStringGridChecker = combine(referenceChecker(lineStringReference, InterpolationHelper.DEFAULT_MAX_POSITION_ERROR), gridConfig.geometryChecker());
ArcByCenterPoint cbp = new ArcByPointsImpl(new Coordinate(0.01, 3.2), new Coordinate(3.33, 3.33), new Coordinate(0.01, -3.2)).toArcByCenterPoint();
circleByPoints = new ArcByCenterPointImpl(cbp.getCenterPoint(), cbp.getRadius(), Angle.fromDegrees(0), Angle.fromDegrees(0), false);
}
use of eu.esdihumboldt.util.geometry.interpolation.model.ArcByCenterPoint in project hale by halestudio.
the class GridInterpolationTest method testLarge.
@Test
public void testLarge() throws IOException {
ArcByCenterPoint arc = new ArcByCenterPointImpl(new Coordinate(0, 0), 50.0, Angle.fromDegrees(45), Angle.fromDegrees(135), true);
gridInterpolationTest(arc, 0.1, false);
}
Aggregations