本文整理了Java中com.vividsolutions.jts.geom.Geometry.touches()
方法的一些代码示例,展示了Geometry.touches()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Geometry.touches()
方法的具体详情如下:
包路径:com.vividsolutions.jts.geom.Geometry
类名称:Geometry
方法名:touches
[英]Tests whether this geometry touches the argument geometry.
The touches
predicate has the following equivalent definitions:
The geometries have at least one point in common, but their interiors do not intersect.
The DE-9IM Intersection Matrix for the two geometries matches at least one of the following patterns
[FT*******]
[F**T*****]
[F***T****]
false
.touches
谓词具有以下等效定义:[FT*******]
[F**T*****]
[F***T****]
如果两个几何图形的维度均为0,则此谓词返回false
。
代码示例来源:origin: com.vividsolutions/jts
/**
* Default implementation.
*/
public boolean touches(Geometry g)
{
return baseGeom.touches(g);
}
代码示例来源:origin: com.vividsolutions/jts-core
/**
* Default implementation.
*/
public boolean touches(Geometry g)
{
return baseGeom.touches(g);
}
代码示例来源:origin: org.geotools/gt2-main
static public boolean touches(Geometry arg0,Geometry arg1)
{
Geometry _this = arg0;
return _this.touches(arg1);
}
代码示例来源:origin: org.geotools/gt-main
static public boolean touches(Geometry arg0,Geometry arg1)
{
if (arg0 == null || arg1 == null) return false;
Geometry _this = arg0;
return _this.touches(arg1);
}
代码示例来源:origin: org.orbisgis/h2gis
/**
* Return true if the geometry A touches the geometry B
* @param a Geometry Geometry.
* @param b Geometry instance
* @return true if the geometry A touches the geometry B
*/
public static Boolean geomTouches(Geometry a,Geometry b) {
if(a==null || b==null) {
return null;
}
return a.touches(b);
}
}
代码示例来源:origin: org.n52.epos/epos-pattern-util
/**
* @param geom first geometry
* @param g second geometry
* @return <code>true</code> if the first geometry touches the second
*/
public static boolean touches(Geometry geom, Geometry g) {
if (geom == null || g == null) return false;
return geom.touches(g);
}
代码示例来源:origin: org.orbisgis/h2gis-functions
/**
* Return true if the geometry A touches the geometry B
* @param a Geometry Geometry.
* @param b Geometry instance
* @return true if the geometry A touches the geometry B
*/
public static Boolean geomTouches(Geometry a,Geometry b) {
if(a==null || b==null) {
return null;
}
return a.touches(b);
}
}
代码示例来源:origin: org.geotools/gt-main
public boolean evaluateInternal(Geometry left, Geometry right) {
return left.touches(right);
}
代码示例来源:origin: org.orbisgis/h2spatial
/**
* Return true if the geometry A touches the geometry B
* @param a Geometry Geometry.
* @param b Geometry instance
* @return true if the geometry A touches the geometry B
*/
public static Boolean geomTouches(Geometry a,Geometry b) {
if(a==null || b==null) {
return null;
}
return a.touches(b);
}
}
代码示例来源:origin: org.geotools/gt-render
public boolean touches(Geometry g) {
return geometry.touches(g);
}
代码示例来源:origin: deegree/deegree3
@Override
public boolean touches( Geometry geometry ) {
JTSGeometryPair jtsGeoms = JTSGeometryPair.createCompatiblePair( this, geometry );
return jtsGeoms.first.touches( jtsGeoms.second );
}
代码示例来源:origin: org.jboss.teiid/teiid-engine
public static Boolean touches(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException {
Geometry g1 = getGeometry(geom1);
Geometry g2 = getGeometry(geom2);
return g1.touches(g2);
}
代码示例来源:origin: org.teiid/teiid-engine
public static Boolean touches(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException {
Geometry g1 = getGeometry(geom1);
Geometry g2 = getGeometry(geom2);
return g1.touches(g2);
}
代码示例来源:origin: teiid/teiid
public static Boolean touches(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException {
Geometry g1 = getGeometry(geom1);
Geometry g2 = getGeometry(geom2);
return g1.touches(g2);
}
代码示例来源:origin: BaseXdb/basex
@Override
public Item item(final QueryContext qc, final InputInfo ii) throws QueryException {
return Bln.get(checkGeo(0, qc).touches(checkGeo(1, qc)));
}
}
代码示例来源:origin: org.geotools/gt2-main
public boolean evaluate(Object feature) {
if (feature instanceof Feature && !validate((Feature)feature))
return false;
Geometry left = getLeftGeometry(feature);
Geometry right = getRightGeometry(feature);
return left.touches(right);
}
代码示例来源:origin: org.n52.wps/52n-wps-algorithm-geotools
boolean touches = ((Geometry)firstFeature.getDefaultGeometry()).touches((Geometry)secondFeature.getDefaultGeometry());
内容来源于网络,如有侵权,请联系作者删除!