本文整理了Java中org.deegree.geometry.Geometry.isBeyond()
方法的一些代码示例,展示了Geometry.isBeyond()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Geometry.isBeyond()
方法的具体详情如下:
包路径:org.deegree.geometry.Geometry
类名称:Geometry
方法名:isBeyond
[英]Tests whether this geometry is beyond a specified distance of a second geometry.
[中]测试此几何图形是否超出第二个几何图形的指定距离。
代码示例来源:origin: deegree/deegree3
@Override
public boolean isBeyond( Geometry geometry, Measure distance ) {
return getReferencedObject().isBeyond( geometry, distance );
}
代码示例来源:origin: deegree/deegree3
@Override
public <T> boolean evaluate( T obj, XPathEvaluator<T> xpathEvaluator )
throws FilterEvaluationException {
for ( TypedObjectNode param1Value : propName.evaluate( obj, xpathEvaluator ) ) {
Geometry geom = checkGeometryOrNull( param1Value );
if ( geom != null ) {
Geometry transformedLiteral = getCompatibleGeometry( geom, geometry );
// TODO what about the units of the distance when transforming?
return geom.isBeyond( transformedLiteral, distance );
}
}
return false;
}
内容来源于网络,如有侵权,请联系作者删除!