本文整理了Java中org.deegree.geometry.Geometry.touches()
方法的一些代码示例,展示了Geometry.touches()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Geometry.touches()
方法的具体详情如下:
包路径:org.deegree.geometry.Geometry
类名称:Geometry
方法名:touches
[英]Tests whether this geometry touches the specified geometry. TODO formal explanation (DE9IM)
[中]测试此几何图形是否接触指定的几何图形。TODO正式解释(DE9IM)
代码示例来源:origin: deegree/deegree3
@Override
public boolean touches( Geometry geometry ) {
return getReferencedObject().touches( geometry );
}
代码示例来源:origin: deegree/deegree3
@Override
public <T> boolean evaluate( T obj, XPathEvaluator<T> xpathEvaluator )
throws FilterEvaluationException {
for ( TypedObjectNode paramValue : propName.evaluate( obj, xpathEvaluator ) ) {
Geometry geom = checkGeometryOrNull( paramValue );
if ( geom != null ) {
Geometry transformedLiteral = getCompatibleGeometry( geom, geometry );
return geom.touches( transformedLiteral );
}
}
return false;
}
代码示例来源:origin: deegree/deegree3
@Override
public void process( ProcessletInputs in, ProcessletOutputs out, ProcessletExecutionInfo info )
throws ProcessletException {
ComplexInput gmlInput1 = (ComplexInput) in.getParameter( "GMLInput1" );
ComplexInput gmlInput2 = (ComplexInput) in.getParameter( "GMLInput2" );
Geometry geometry1 = readGeometry( gmlInput1 );
Geometry geometry2 = readGeometry( gmlInput2 );
boolean touches = geometry1.touches( geometry2 );
LiteralOutput touchesOutput = (LiteralOutput) out.getParameter( "Touches" );
touchesOutput.setValue( String.valueOf( touches ) );
}
内容来源于网络,如有侵权,请联系作者删除!