congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Geometry.disjoint
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: opentripplanner/OpenTripPlanner

/**
 * The function is run periodically by the update manager.
 * The extending class should provide the getNote method. It is not implemented here
 * as the requirements for different updaters can be vastly different dependent on the data source.
 */
@Override
protected void runPolling() throws IOException{
  LOG.info("Run WFS polling updater with hashcode: {}", this.hashCode());
  notesForEdge = HashMultimap.create();
  uniqueMatchers = new HashMap<>();
  FeatureIterator<SimpleFeature> features = featureSource.getFeatures(query).features();
  while ( features.hasNext()){
    SimpleFeature feature = features.next();
    if (feature.getDefaultGeometry() == null) continue;
    Alert alert = getNote(feature);
    if (alert == null) continue;
    Geometry geom = (Geometry) feature.getDefaultGeometry();
    Geometry searchArea = geom.buffer(SEARCH_RADIUS_DEG);
    Collection<Edge> edges = graph.streetIndex.getEdgesForEnvelope(searchArea.getEnvelopeInternal());
    for(Edge edge: edges){
      if (edge instanceof StreetEdge && !searchArea.disjoint(edge.getGeometry())) {
        addNote(edge, alert, NOTE_MATCHER);
      }
    }
  }
  updaterManager.execute(new WFSGraphWriter());
}
origin: org.geotools/gt-main

static public boolean disjoint(Geometry arg0,Geometry arg1)
{
   if (arg0 == null || arg1 == null) return false;
   Geometry _this = arg0;
   return _this.disjoint(arg1);
}
origin: org.geotools/gt2-main

static public boolean disjoint(Geometry arg0,Geometry arg1)
{
   Geometry _this = arg0;
   return _this.disjoint(arg1);
}
origin: org.n52.epos/epos-pattern-util

/**
 * @param geom first geometry
 * @param g second geometry
 * @return <code>true</code> if the first geometry and the second are disjoint
 */
public static boolean disjoint(Geometry geom, Geometry g) {
  if  (geom == null || g == null) return false;
  return geom.disjoint(g);
}
origin: org.n52.epos/epos-pattern-util

/**
 * @param geom first geometry
 * @param g second geometry
 * @return <code>true</code> if the first geometry and the second are not disjoint
 */
public static boolean bbox(Geometry geom, Geometry g) {
  if  (geom == null || g == null) return false;
  return !geom.disjoint(g);
}
origin: org.geotools/gt-render

public boolean disjoint(Geometry g) {
  return geometry.disjoint(g);
}
origin: org.orbisgis/h2spatial

  /**
   * Return true if the two Geometries are disjoint
   *
   * @param a Geometry Geometry.
   * @param b Geometry instance
   * @return true if the two Geometries are disjoint
   */
  public static Boolean geomDisjoint(Geometry a, Geometry b) {
    if(a==null || b==null) {
      return null;
    }
    return a.disjoint(b);
  }
}
origin: ryantxu/spatial-solr-sandbox

 @Override
 public boolean matches(Geometry geo) {
  return geo.disjoint(queryGeo);
 }
}
origin: org.orbisgis/h2gis-functions

  /**
   * Return true if the two Geometries are disjoint
   *
   * @param a Geometry Geometry.
   * @param b Geometry instance
   * @return true if the two Geometries are disjoint
   */
  public static Boolean geomDisjoint(Geometry a, Geometry b) {
    if(a==null || b==null) {
      return null;
    }
    return a.disjoint(b);
  }
}
origin: org.orbisgis/h2gis

  /**
   * Return true if the two Geometries are disjoint
   *
   * @param a Geometry Geometry.
   * @param b Geometry instance
   * @return true if the two Geometries are disjoint
   */
  public static Boolean geomDisjoint(Geometry a, Geometry b) {
    if(a==null || b==null) {
      return null;
    }
    return a.disjoint(b);
  }
}
origin: deegree/deegree3

@Override
public boolean isDisjoint( Geometry geometry ) {
  JTSGeometryPair jtsGeoms = JTSGeometryPair.createCompatiblePair( this, geometry );
  return jtsGeoms.first.disjoint( jtsGeoms.second );
}
origin: org.teiid/teiid-engine

public static Boolean disjoint(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException {
  Geometry g1 = getGeometry(geom1);
  Geometry g2 = getGeometry(geom2);
  return g1.disjoint(g2);
}

origin: teiid/teiid

public static Boolean disjoint(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException {
  Geometry g1 = getGeometry(geom1);
  Geometry g2 = getGeometry(geom2);
  return g1.disjoint(g2);
}

origin: org.jboss.teiid/teiid-engine

public static Boolean disjoint(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException {
  Geometry g1 = getGeometry(geom1);
  Geometry g2 = getGeometry(geom2);
  return g1.disjoint(g2);
}

origin: BaseXdb/basex

 @Override
 public Item item(final QueryContext qc, final InputInfo ii) throws QueryException {
  return Bln.get(checkGeo(0, qc).disjoint(checkGeo(1, qc)));
 }
}
origin: org.geotools/gt-main

@Override
protected boolean basicEvaluate(Geometry left, Geometry right) {
  Envelope envLeft = left.getEnvelopeInternal();
  Envelope envRight = right.getEnvelopeInternal();
  
  if(envRight.intersects(envLeft))
    return left.disjoint(right);
  
   return true;
 }

origin: org.n52.wps/52n-wps-algorithm-geotools

boolean disjoints = ((Geometry)firstFeature.getDefaultGeometry()).disjoint((Geometry)secondFeature.getDefaultGeometry());
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(envRight.intersects(envLeft))
    return left.disjoint(right);
  
   return true;
}

origin: harbby/presto-connectors

protected SpatialRelation relate(Geometry oGeom) {
 //see http://docs.geotools.org/latest/userguide/library/jts/dim9.html#preparedgeometry
 if (oGeom instanceof com.vividsolutions.jts.geom.Point) {
  if (preparedGeometry != null)
   return preparedGeometry.disjoint(oGeom) ? SpatialRelation.DISJOINT : SpatialRelation.CONTAINS;
  return geom.disjoint(oGeom) ? SpatialRelation.DISJOINT : SpatialRelation.CONTAINS;
 }
 if (preparedGeometry == null)
  return intersectionMatrixToSpatialRelation(geom.relate(oGeom));
 else if (preparedGeometry.covers(oGeom))
  return SpatialRelation.CONTAINS;
 else if (preparedGeometry.coveredBy(oGeom))
  return SpatialRelation.WITHIN;
 else if (preparedGeometry.intersects(oGeom))
  return SpatialRelation.INTERSECTS;
 return SpatialRelation.DISJOINT;
}
origin: com.spatial4j/spatial4j

protected SpatialRelation relate(Geometry oGeom) {
 //see http://docs.geotools.org/latest/userguide/library/jts/dim9.html#preparedgeometry
 if (oGeom instanceof com.vividsolutions.jts.geom.Point) {
  if (preparedGeometry != null)
   return preparedGeometry.disjoint(oGeom) ? SpatialRelation.DISJOINT : SpatialRelation.CONTAINS;
  return geom.disjoint(oGeom) ? SpatialRelation.DISJOINT : SpatialRelation.CONTAINS;
 }
 if (preparedGeometry == null)
  return intersectionMatrixToSpatialRelation(geom.relate(oGeom));
 else if (preparedGeometry.covers(oGeom))
  return SpatialRelation.CONTAINS;
 else if (preparedGeometry.coveredBy(oGeom))
  return SpatialRelation.WITHIN;
 else if (preparedGeometry.intersects(oGeom))
  return SpatialRelation.INTERSECTS;
 return SpatialRelation.DISJOINT;
}
com.vividsolutions.jts.geomGeometrydisjoint

Javadoc

Tests whether this geometry is disjoint from the argument geometry.

The disjoint predicate has the following equivalent definitions:

  • The two geometries have no point in common
  • The DE-9IM Intersection Matrix for the two geometries matches [FF*FF****]
  • ! g.intersects(this) = true
    (disjoint is the inverse of intersects)

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

  • Reading from database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • getSystemService (Context)
  • addToBackStack (FragmentTransaction)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Top Sublime Text plugins
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