本文整理了Java中com.vividsolutions.jts.geom.Geometry.overlaps()
方法的一些代码示例,展示了Geometry.overlaps()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Geometry.overlaps()
方法的具体详情如下:
包路径:com.vividsolutions.jts.geom.Geometry
类名称:Geometry
方法名:overlaps
[英]Tests whether this geometry overlaps the specified geometry.
The overlaps
predicate has the following equivalent definitions:
[T*T***T**]
(for two points or two surfaces) or [1*T***T**]
(for two curves)false
.overlaps
谓词具有以下等效定义:[T*T***T**]
(对于两点或两个曲面)或[1*T***T**]
(对于两条曲线)false
。代码示例来源:origin: com.vividsolutions/jts
/**
* Default implementation.
*/
public boolean overlaps(Geometry g)
{
return baseGeom.overlaps(g);
}
代码示例来源:origin: org.geotools/gt2-main
static public boolean overlaps(Geometry arg0,Geometry arg1)
{
Geometry _this = arg0;
return _this.overlaps(arg1);
}
代码示例来源:origin: org.geotools/gt-main
static public boolean overlaps(Geometry arg0,Geometry arg1)
{
if (arg0 == null || arg1 == null) return false;
Geometry _this = arg0;
return _this.overlaps(arg1);
}
代码示例来源:origin: org.orbisgis/h2gis
/**
* @param a Surface Geometry.
* @param b Geometry instance
* @return true if the geometry A overlaps the geometry B
*/
public static Boolean isOverlaps(Geometry a,Geometry b) {
if(a==null || b==null) {
return null;
}
return a.overlaps(b);
}
}
代码示例来源:origin: org.n52.epos/epos-pattern-util
/**
* @param geom first geometry
* @param g second geometry
* @return <code>true</code> if the first geometry overlaps the second
*/
public static boolean overlaps(Geometry geom, Geometry g) {
if (geom == null || g == null) return false;
return geom.overlaps(g);
}
代码示例来源:origin: ryantxu/spatial-solr-sandbox
@Override
public boolean matches(Geometry geo) {
return geo.overlaps(queryGeo);
}
}
代码示例来源:origin: com.vividsolutions/jts-core
/**
* Default implementation.
*/
public boolean overlaps(Geometry g)
{
return baseGeom.overlaps(g);
}
代码示例来源:origin: org.orbisgis/h2spatial
/**
* @param a Surface Geometry.
* @param b Geometry instance
* @return true if the geometry A overlaps the geometry B
*/
public static Boolean isOverlaps(Geometry a,Geometry b) {
if(a==null || b==null) {
return null;
}
return a.overlaps(b);
}
}
代码示例来源:origin: org.orbisgis/h2gis-functions
/**
* @param a Surface Geometry.
* @param b Geometry instance
* @return true if the geometry A overlaps the geometry B
*/
public static Boolean isOverlaps(Geometry a,Geometry b) {
if(a==null || b==null) {
return null;
}
return a.overlaps(b);
}
}
代码示例来源:origin: org.geotools/gt-render
public boolean overlaps(Geometry g) {
return geometry.overlaps(g);
}
代码示例来源:origin: deegree/deegree3
@Override
public boolean overlaps( Geometry geometry ) {
JTSGeometryPair jtsGeoms = JTSGeometryPair.createCompatiblePair( this, geometry );
return jtsGeoms.first.overlaps( jtsGeoms.second );
}
代码示例来源:origin: org.integratedmodelling/klab-engine
@Override
public boolean overlaps(ShapeValue o) throws KlabException {
return value.overlaps(o.transform(crs).value);
}
代码示例来源:origin: org.integratedmodelling/klab-engine
@Override
public boolean execute(int arg0) {
if (ShapeValue.makePoint(point.x, point.y)
.overlaps(((IGeometricShape) exts.get(names.get(arg0)).getShape())
.getGeometry())) {
idx.add(arg0);
}
return true;
}
});
代码示例来源:origin: org.teiid/teiid-engine
public static Boolean overlaps(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException {
Geometry g1 = getGeometry(geom1);
Geometry g2 = getGeometry(geom2);
return g1.overlaps(g2);
}
代码示例来源:origin: org.jboss.teiid/teiid-engine
public static Boolean overlaps(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException {
Geometry g1 = getGeometry(geom1);
Geometry g2 = getGeometry(geom2);
return g1.overlaps(g2);
}
代码示例来源:origin: teiid/teiid
public static Boolean overlaps(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException {
Geometry g1 = getGeometry(geom1);
Geometry g2 = getGeometry(geom2);
return g1.overlaps(g2);
}
代码示例来源:origin: NationalSecurityAgency/datawave
public static boolean overlaps(Object fieldValue, String geoString) {
Geometry otherGeom = GeometryNormalizer.parseGeometry(geoString);
Geometry thisGeom = getGeometryFromFieldValue(fieldValue);
return thisGeom.overlaps(otherGeom);
}
代码示例来源:origin: BaseXdb/basex
@Override
public Item item(final QueryContext qc, final InputInfo ii) throws QueryException {
return Bln.get(checkGeo(0, qc).overlaps(checkGeo(1, qc)));
}
}
代码示例来源:origin: org.geotools/gt-main
@Override
public boolean evaluateInternal(Geometry left, Geometry right) {
Envelope envLeft = left.getEnvelopeInternal();
Envelope envRight = right.getEnvelopeInternal();
if(envLeft.intersects(envRight))
return left.overlaps(right);
else
return false;
}
代码示例来源: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);
Envelope envLeft = left.getEnvelopeInternal();
Envelope envRight = right.getEnvelopeInternal();
if(envLeft.intersects(envRight))
return left.overlaps(right);
else
return false;
}
内容来源于网络,如有侵权,请联系作者删除!