Codota Logo
Geometry.touches
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain Geometry
private void myMethod () {
Geometry g =
  • Codota IconGeometryCollection gc;gc.getGeometryN(n)
  • Codota IconSimpleFeature feature;(Geometry) feature.getDefaultGeometry()
  • Codota IconString wellKnownText;new WKTReader().read(wellKnownText)
  • Smart code suggestions by Codota
}
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());
com.vividsolutions.jts.geomGeometrytouches

Javadoc

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****]
If both geometries have dimension 0, 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

  • Making http requests using okhttp
  • scheduleAtFixedRate (Timer)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • startActivity (Activity)
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Path (java.nio.file)
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JCheckBox (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now