use of org.apache.jena.geosparql.implementation.GeometryWrapper in project jena by apache.
the class SpatialDimensionPFTest method testApplyPredicate_2_Dimension.
/**
* Test of applyPredicate method, of class SpatialDimensionPF.
*/
@Test
public void testApplyPredicate_2_Dimension() {
GeometryWrapper geometryWrapper = GeometryWrapper.extract("<http://www.opengis.net/def/crs/EPSG/0/27700> POINT(90 60)", WKTDatatype.URI);
SpatialDimensionPF instance = new SpatialDimensionPF();
NodeValue expResult = NodeValue.makeNodeInteger(2);
NodeValue result = instance.applyPredicate(geometryWrapper);
assertEquals(expResult, result);
}
use of org.apache.jena.geosparql.implementation.GeometryWrapper in project jena by apache.
the class SpatialDimensionPFTest method testApplyPredicate_3_Dimension.
/**
* Test of applyPredicate method, of class SpatialDimensionPF.
*/
@Test
public void testApplyPredicate_3_Dimension() {
GeometryWrapper geometryWrapper = GeometryWrapper.extract("<http://www.opengis.net/def/crs/EPSG/0/27700> POINT Z (90 60 30)", WKTDatatype.URI);
SpatialDimensionPF instance = new SpatialDimensionPF();
NodeValue expResult = NodeValue.makeNodeInteger(3);
NodeValue result = instance.applyPredicate(geometryWrapper);
assertEquals(expResult, result);
}
use of org.apache.jena.geosparql.implementation.GeometryWrapper in project jena by apache.
the class SpatialDimensionPFTest method testApplyPredicate_3M_Dimension.
/**
* Test of applyPredicate method, of class SpatialDimensionPF.
*/
@Test
public void testApplyPredicate_3M_Dimension() {
GeometryWrapper geometryWrapper = GeometryWrapper.extract("<http://www.opengis.net/def/crs/EPSG/0/27700> POINT ZM (90 60 30 10)", WKTDatatype.URI);
SpatialDimensionPF instance = new SpatialDimensionPF();
NodeValue expResult = NodeValue.makeNodeInteger(3);
NodeValue result = instance.applyPredicate(geometryWrapper);
assertEquals(expResult, result);
}
use of org.apache.jena.geosparql.implementation.GeometryWrapper in project jena by apache.
the class SpatialDimensionPFTest method testApplyPredicate_2M_Dimension.
/**
* Test of applyPredicate method, of class SpatialDimensionPF.
*/
@Test
public void testApplyPredicate_2M_Dimension() {
GeometryWrapper geometryWrapper = GeometryWrapper.extract("<http://www.opengis.net/def/crs/EPSG/0/27700> POINT M (90 60 30)", WKTDatatype.URI);
SpatialDimensionPF instance = new SpatialDimensionPF();
NodeValue expResult = NodeValue.makeNodeInteger(2);
NodeValue result = instance.applyPredicate(geometryWrapper);
assertEquals(expResult, result);
}
use of org.apache.jena.geosparql.implementation.GeometryWrapper in project jena by apache.
the class IsValidPFTest method testApplyPredicate_false.
/**
* Test of applyPredicate method, of class IsValidPF.
*/
@Test
public void testApplyPredicate_false() {
GeometryWrapper geometryWrapper = GeometryWrapper.extract("<http://www.opengis.net/def/crs/EPSG/0/27700> LINESTRING(0 0, 0 0, 0 0)", WKTDatatype.URI);
IsValidPF instance = new IsValidPF();
NodeValue expResult = NodeValue.makeNodeBoolean(false);
NodeValue result = instance.applyPredicate(geometryWrapper);
assertEquals(expResult, result);
}
Aggregations