Search in sources :

Example 11 with ArcByCenterPointImpl

use of eu.esdihumboldt.util.geometry.interpolation.model.impl.ArcByCenterPointImpl in project hale by halestudio.

the class GridInterpolationTest 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);
    gridInterpolationTest(arc, 0.1, false);
}
Also used : ArcByCenterPoint(eu.esdihumboldt.util.geometry.interpolation.model.ArcByCenterPoint) Coordinate(com.vividsolutions.jts.geom.Coordinate) ArcByCenterPointImpl(eu.esdihumboldt.util.geometry.interpolation.model.impl.ArcByCenterPointImpl) AbstractArcTest(eu.esdihumboldt.util.geometry.interpolation.AbstractArcTest) Test(org.junit.Test)

Example 12 with ArcByCenterPointImpl

use of eu.esdihumboldt.util.geometry.interpolation.model.impl.ArcByCenterPointImpl in project hale by halestudio.

the class GridInterpolationTest method testOffsetBig.

@Test
public void testOffsetBig() throws IOException {
    ArcByCenterPoint arc = new ArcByCenterPointImpl(new Coordinate(2, 2), 15.0, Angle.fromDegrees(45), Angle.fromDegrees(135), true);
    gridInterpolationTest(arc, 0.1, false);
}
Also used : ArcByCenterPoint(eu.esdihumboldt.util.geometry.interpolation.model.ArcByCenterPoint) Coordinate(com.vividsolutions.jts.geom.Coordinate) ArcByCenterPointImpl(eu.esdihumboldt.util.geometry.interpolation.model.impl.ArcByCenterPointImpl) AbstractArcTest(eu.esdihumboldt.util.geometry.interpolation.AbstractArcTest) Test(org.junit.Test)

Example 13 with ArcByCenterPointImpl

use of eu.esdihumboldt.util.geometry.interpolation.model.impl.ArcByCenterPointImpl in project hale by halestudio.

the class GridInterpolationTest method testHalfCircleAllGrid.

@Test
public void testHalfCircleAllGrid() throws IOException {
    ArcByCenterPoint arc = new ArcByCenterPointImpl(new Coordinate(0.5, 0.5), 0.95, Angle.fromDegrees(0), Angle.fromDegrees(180), true);
    gridInterpolationTest(arc, 0.1, true);
}
Also used : ArcByCenterPoint(eu.esdihumboldt.util.geometry.interpolation.model.ArcByCenterPoint) Coordinate(com.vividsolutions.jts.geom.Coordinate) ArcByCenterPointImpl(eu.esdihumboldt.util.geometry.interpolation.model.impl.ArcByCenterPointImpl) AbstractArcTest(eu.esdihumboldt.util.geometry.interpolation.AbstractArcTest) Test(org.junit.Test)

Example 14 with ArcByCenterPointImpl

use of eu.esdihumboldt.util.geometry.interpolation.model.impl.ArcByCenterPointImpl in project hale by halestudio.

the class GridInterpolationTest method testOffsetCircle.

@Test
public void testOffsetCircle() throws IOException {
    ArcByCenterPoint arc = new ArcByCenterPointImpl(new Coordinate(2, 2), 5.0, Angle.fromDegrees(0), Angle.fromDegrees(0), true);
    gridInterpolationTest(arc, 0.1, false);
}
Also used : ArcByCenterPoint(eu.esdihumboldt.util.geometry.interpolation.model.ArcByCenterPoint) Coordinate(com.vividsolutions.jts.geom.Coordinate) ArcByCenterPointImpl(eu.esdihumboldt.util.geometry.interpolation.model.impl.ArcByCenterPointImpl) AbstractArcTest(eu.esdihumboldt.util.geometry.interpolation.AbstractArcTest) Test(org.junit.Test)

Example 15 with ArcByCenterPointImpl

use of eu.esdihumboldt.util.geometry.interpolation.model.impl.ArcByCenterPointImpl in project hale by halestudio.

the class SplitInterpolationTest method testOffsetCircle.

@Test
public void testOffsetCircle() throws IOException {
    ArcByCenterPoint arc = new ArcByCenterPointImpl(new Coordinate(2, 2), 5.0, Angle.fromDegrees(0), Angle.fromDegrees(0), true);
    splitInterpolationTest(arc, 0.1);
}
Also used : ArcByCenterPoint(eu.esdihumboldt.util.geometry.interpolation.model.ArcByCenterPoint) Coordinate(com.vividsolutions.jts.geom.Coordinate) ArcByCenterPointImpl(eu.esdihumboldt.util.geometry.interpolation.model.impl.ArcByCenterPointImpl) AbstractArcTest(eu.esdihumboldt.util.geometry.interpolation.AbstractArcTest) Test(org.junit.Test)

Aggregations

ArcByCenterPointImpl (eu.esdihumboldt.util.geometry.interpolation.model.impl.ArcByCenterPointImpl)20 ArcByCenterPoint (eu.esdihumboldt.util.geometry.interpolation.model.ArcByCenterPoint)18 Coordinate (com.vividsolutions.jts.geom.Coordinate)16 AbstractArcTest (eu.esdihumboldt.util.geometry.interpolation.AbstractArcTest)12 Test (org.junit.Test)12 Arc (eu.esdihumboldt.util.geometry.interpolation.model.Arc)8 Angle (eu.esdihumboldt.util.geometry.interpolation.model.Angle)4 LineString (com.vividsolutions.jts.geom.LineString)3 DefaultGeometryProperty (eu.esdihumboldt.hale.common.instance.geometry.DefaultGeometryProperty)3 GeometryNotSupportedException (eu.esdihumboldt.hale.io.gml.geometry.GeometryNotSupportedException)3 InterpolationAlgorithm (eu.esdihumboldt.util.geometry.interpolation.InterpolationAlgorithm)3 ArcByPointsImpl (eu.esdihumboldt.util.geometry.interpolation.model.impl.ArcByPointsImpl)3 Point (com.vividsolutions.jts.geom.Point)2 Instance (eu.esdihumboldt.hale.common.instance.model.Instance)2 CRSDefinition (eu.esdihumboldt.hale.common.schema.geometry.CRSDefinition)2 ParseException (java.text.ParseException)2 ArrayList (java.util.ArrayList)2