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

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

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

origin: com.vividsolutions/jts

/**
 * Default implementation.
 */
public boolean crosses(Geometry g)
{
 return baseGeom.crosses(g);
}
 
origin: org.geotools/gt2-main

static public boolean crosses(Geometry arg0,Geometry arg1)
{
   Geometry _this = arg0;
   return _this.crosses(arg1);
}
origin: org.geotools/gt-main

static public boolean crosses(Geometry arg0,Geometry arg1)
{
   if (arg0 == null || arg1 == null) return false;
   Geometry _this = arg0;
   return _this.crosses(arg1);
}
origin: org.orbisgis/h2spatial

  /**
   * @param a Geometry Geometry.
   * @param b Geometry instance
   * @return true if Geometry A crosses Geometry B
   */
  public static Boolean geomCrosses(Geometry a,Geometry b) {
    if(a==null || b==null) {
      return null;
    }
    return a.crosses(b);
  }
}
origin: org.orbisgis/h2gis-functions

  /**
   * @param a Geometry Geometry.
   * @param b Geometry instance
   * @return true if Geometry A crosses Geometry B
   */
  public static Boolean geomCrosses(Geometry a,Geometry b) {
    if(a==null || b==null) {
      return null;
    }
    return a.crosses(b);
  }
}
origin: com.vividsolutions/jts-core

/**
 * Default implementation.
 */
public boolean crosses(Geometry g)
{
 return baseGeom.crosses(g);
}
 
origin: org.n52.epos/epos-pattern-util

/**
 * @param geom first geometry
 * @param g second geometry
 * @return <code>true</code> if the first geometry crosses the second
 */
public static boolean crosses(Geometry geom, Geometry g) {
  if  (geom == null || g == null) return false;
  return geom.crosses(g);
}
origin: org.orbisgis/h2gis

  /**
   * @param a Geometry Geometry.
   * @param b Geometry instance
   * @return true if Geometry A crosses Geometry B
   */
  public static Boolean geomCrosses(Geometry a,Geometry b) {
    if(a==null || b==null) {
      return null;
    }
    return a.crosses(b);
  }
}
origin: org.geotools/gt-render

public boolean crosses(Geometry g) {
  return geometry.crosses(g);
}
origin: deegree/deegree3

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

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

origin: org.teiid/teiid-engine

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

origin: org.jboss.teiid/teiid-engine

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

origin: NationalSecurityAgency/datawave

public static boolean crosses(Object fieldValue, String geoString) {
  Geometry otherGeom = GeometryNormalizer.parseGeometry(geoString);
  Geometry thisGeom = getGeometryFromFieldValue(fieldValue);
  return thisGeom.crosses(otherGeom);
}

origin: BaseXdb/basex

 @Override
 public Item item(final QueryContext qc, final InputInfo ii) throws QueryException {
  return Bln.get(checkGeo(0, qc).crosses(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(envRight.intersects(envLeft))
    return left.crosses(right);
  
  return false;
}

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

boolean crosses = ((Geometry)firstFeature.getDefaultGeometry()).crosses((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.crosses(right);
  
  return false;
}

com.vividsolutions.jts.geomGeometrycrosses

Javadoc

Tests whether this geometry crosses the argument geometry.

The crosses predicate has the following equivalent definitions:

  • The geometries have some but not all interior points in common.
  • The DE-9IM Intersection Matrix for the two geometries matches one of the following patterns:
    • [T*T******] (for P/L, P/A, and L/A situations)
    • [T*****T**] (for L/P, A/P, and A/L situations)
    • [0********] (for L/L situations)
For any other combination of dimensions this predicate returns false.

The SFS defined this predicate only for P/L, P/A, L/L, and L/A situations. In order to make the relation symmetric, JTS extends the definition to apply to L/P, A/P and A/L situations as well.

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

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • getSystemService (Context)
  • setRequestProperty (URLConnection)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • JList (javax.swing)
  • JTable (javax.swing)
  • Best IntelliJ 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