Search in sources :

Example 26 with DimensionInfo

use of org.apache.jena.geosparql.implementation.DimensionInfo in project jena by apache.

the class RccNonTangentialProperPartInverseFFTest method testPermittedTopology_linestring_linestring.

/**
 * Test of permittedTopology method, of class
 * RccNonTangentialProperPartInverseFF.
 */
@Test
public void testPermittedTopology_linestring_linestring() {
    DimensionInfo sourceDimensionInfo = DimensionInfo.XY_LINESTRING;
    DimensionInfo targetDimensionInfo = DimensionInfo.XY_LINESTRING;
    RccNonTangentialProperPartInverseFF instance = new RccNonTangentialProperPartInverseFF();
    boolean expResult = false;
    boolean result = instance.permittedTopology(sourceDimensionInfo, targetDimensionInfo);
    assertEquals(expResult, result);
}
Also used : DimensionInfo(org.apache.jena.geosparql.implementation.DimensionInfo) Test(org.junit.Test)

Example 27 with DimensionInfo

use of org.apache.jena.geosparql.implementation.DimensionInfo in project jena by apache.

the class RccNonTangentialProperPartInverseFFTest method testPermittedTopology_polygon_point.

/**
 * Test of permittedTopology method, of class
 * RccNonTangentialProperPartInverseFF.
 */
@Test
public void testPermittedTopology_polygon_point() {
    DimensionInfo sourceDimensionInfo = DimensionInfo.XY_POLYGON;
    DimensionInfo targetDimensionInfo = DimensionInfo.XY_POINT;
    RccNonTangentialProperPartInverseFF instance = new RccNonTangentialProperPartInverseFF();
    boolean expResult = false;
    boolean result = instance.permittedTopology(sourceDimensionInfo, targetDimensionInfo);
    assertEquals(expResult, result);
}
Also used : DimensionInfo(org.apache.jena.geosparql.implementation.DimensionInfo) Test(org.junit.Test)

Example 28 with DimensionInfo

use of org.apache.jena.geosparql.implementation.DimensionInfo in project jena by apache.

the class RccNonTangentialProperPartInverseFFTest method testPermittedTopology_point_linestring.

/**
 * Test of permittedTopology method, of class
 * RccNonTangentialProperPartInverseFF.
 */
@Test
public void testPermittedTopology_point_linestring() {
    DimensionInfo sourceDimensionInfo = DimensionInfo.XY_POINT;
    DimensionInfo targetDimensionInfo = DimensionInfo.XY_LINESTRING;
    RccNonTangentialProperPartInverseFF instance = new RccNonTangentialProperPartInverseFF();
    boolean expResult = false;
    boolean result = instance.permittedTopology(sourceDimensionInfo, targetDimensionInfo);
    assertEquals(expResult, result);
}
Also used : DimensionInfo(org.apache.jena.geosparql.implementation.DimensionInfo) Test(org.junit.Test)

Example 29 with DimensionInfo

use of org.apache.jena.geosparql.implementation.DimensionInfo in project jena by apache.

the class RccNonTangentialProperPartInverseFFTest method testPermittedTopology_linestring_point.

/**
 * Test of permittedTopology method, of class
 * RccNonTangentialProperPartInverseFF.
 */
@Test
public void testPermittedTopology_linestring_point() {
    DimensionInfo sourceDimensionInfo = DimensionInfo.XY_LINESTRING;
    DimensionInfo targetDimensionInfo = DimensionInfo.XY_POINT;
    RccNonTangentialProperPartInverseFF instance = new RccNonTangentialProperPartInverseFF();
    boolean expResult = false;
    boolean result = instance.permittedTopology(sourceDimensionInfo, targetDimensionInfo);
    assertEquals(expResult, result);
}
Also used : DimensionInfo(org.apache.jena.geosparql.implementation.DimensionInfo) Test(org.junit.Test)

Example 30 with DimensionInfo

use of org.apache.jena.geosparql.implementation.DimensionInfo in project jena by apache.

the class RccTangentialProperPartFFTest method testPermittedTopology_polygon_point.

/**
 * Test of permittedTopology method, of class RccTangentialProperPartFF.
 */
@Test
public void testPermittedTopology_polygon_point() {
    DimensionInfo sourceDimensionInfo = DimensionInfo.XY_POLYGON;
    DimensionInfo targetDimensionInfo = DimensionInfo.XY_POINT;
    RccTangentialProperPartFF instance = new RccTangentialProperPartFF();
    boolean expResult = false;
    boolean result = instance.permittedTopology(sourceDimensionInfo, targetDimensionInfo);
    assertEquals(expResult, result);
}
Also used : DimensionInfo(org.apache.jena.geosparql.implementation.DimensionInfo) Test(org.junit.Test)

Aggregations

DimensionInfo (org.apache.jena.geosparql.implementation.DimensionInfo)304 Test (org.junit.Test)287 GeometryWrapper (org.apache.jena.geosparql.implementation.GeometryWrapper)70 LineString (org.locationtech.jts.geom.LineString)52 Geometry (org.locationtech.jts.geom.Geometry)48 CustomCoordinateSequence (org.apache.jena.geosparql.implementation.jts.CustomCoordinateSequence)39 Coordinate (org.locationtech.jts.geom.Coordinate)9 Point (org.locationtech.jts.geom.Point)8 LinearRing (org.locationtech.jts.geom.LinearRing)6 Polygon (org.locationtech.jts.geom.Polygon)5 IOException (java.io.IOException)1 DatatypeFormatException (org.apache.jena.datatypes.DatatypeFormatException)1 GMLReader (org.apache.jena.geosparql.implementation.parsers.gml.GMLReader)1 WKTReader (org.apache.jena.geosparql.implementation.parsers.wkt.WKTReader)1 JDOMException (org.jdom2.JDOMException)1 CoordinateXY (org.locationtech.jts.geom.CoordinateXY)1 CoordinateXYZM (org.locationtech.jts.geom.CoordinateXYZM)1 CoordinateReferenceSystem (org.opengis.referencing.crs.CoordinateReferenceSystem)1 MathTransform (org.opengis.referencing.operation.MathTransform)1