Tabnine Logo
Geometry.overlaps
Code IndexAdd Tabnine to your IDE (free)

How to use
overlaps
method
in
com.vividsolutions.jts.geom.Geometry

Best Java code snippets using com.vividsolutions.jts.geom.Geometry.overlaps (Showing top 20 results out of 315)

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;
}

com.vividsolutions.jts.geomGeometryoverlaps

Javadoc

Tests whether this geometry overlaps the specified geometry.

The overlaps predicate has the following equivalent definitions:

  • The geometries have at least one point each not shared by the other (or equivalently neither covers the other), they have the same dimension, and the intersection of the interiors of the two geometries has the same dimension as the geometries themselves.
  • The DE-9IM Intersection Matrix for the two geometries matches [T*T***T**] (for two points or two surfaces) or [1*T***T**] (for two curves)
If the geometries are of different dimension this predicate returns false.

Popular methods of Geometry

  • getEnvelopeInternal
    Gets an Envelope containing the minimum and maximum x and y values in this Geometry. If the geometr
  • getCoordinates
    Returns an array containing the values of all the vertices for this geometry. If the geometry is a c
  • isEmpty
    Tests whether the set of points covered by this Geometry is empty.
  • getCentroid
    Computes the centroid of this Geometry. The centroid is equal to the centroid of the set of componen
  • getGeometryN
    Returns an element Geometry from a GeometryCollection(or this, if the geometry is not a collection).
  • toText
    Returns the Well-known Text representation of this Geometry. For a definition of the Well-known Text
  • getNumGeometries
    Returns the number of Geometrys in a GeometryCollection(or 1, if the geometry is not a collection).
  • getFactory
    Gets the factory which contains the context in which this geometry was created.
  • getGeometryType
    Returns the name of this Geometry's actual class.
  • getSRID
    Returns the ID of the Spatial Reference System used by the Geometry. JTS supports Spatial Reference
  • getCoordinate
    Returns a vertex of this Geometry (usually, but not necessarily, the first one). The returned coordi
  • intersection
    Computes a Geometry representing the point-set which is common to both this Geometry and the other
  • getCoordinate,
  • intersection,
  • buffer,
  • contains,
  • getArea,
  • getEnvelope,
  • intersects,
  • union,
  • apply,
  • getLength

Popular in Java

  • Finding current android device location
  • getExternalFilesDir (Context)
  • findViewById (Activity)
  • startActivity (Activity)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now