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

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

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

origin: com.vividsolutions/jts

/**
* Tests whether this geometry is 
* topologically equal to the argument geometry.
 * <p>
 * This method is included for backward compatibility reasons.
 * It has been superseded by the {@link #equalsTopo(Geometry)} method,
 * which has been named to clearly denote its functionality.
 * <p>
 * This method should NOT be confused with the method 
 * {@link #equals(Object)}, which implements 
 * an exact equality comparison.
 *
 *@param  g  the <code>Geometry</code> with which to compare this <code>Geometry</code>
 *@return true if the two <code>Geometry</code>s are topologically equal
 *
 *@see #equalsTopo(Geometry)
 */
public boolean equals(Geometry g) {
 return equalsTopo(g);
}
origin: org.geotools/gt-render

public boolean equals(Geometry g) {
  return geometry.equalsTopo(g);
}
origin: com.vividsolutions/jts-core

/**
* Tests whether this geometry is 
* topologically equal to the argument geometry.
 * <p>
 * This method is included for backward compatibility reasons.
 * It has been superseded by the {@link #equalsTopo(Geometry)} method,
 * which has been named to clearly denote its functionality.
 * <p>
 * This method should NOT be confused with the method 
 * {@link #equals(Object)}, which implements 
 * an exact equality comparison.
 *
 *@param  g  the <code>Geometry</code> with which to compare this <code>Geometry</code>
 *@return true if the two <code>Geometry</code>s are topologically equal
 *
 *@see #equalsTopo(Geometry)
 */
public boolean equals(Geometry g) {
 if (g == null) return false;
 return equalsTopo(g);
}
origin: teiid/teiid

public static Boolean equals(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException {
  return getGeometry(geom1).equalsTopo(getGeometry(geom2));
}
origin: org.jboss.teiid/teiid-engine

public static Boolean equals(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException {
  return getGeometry(geom1).equalsTopo(getGeometry(geom2));
}
origin: org.teiid/teiid-engine

public static Boolean equals(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException {
  return getGeometry(geom1).equalsTopo(getGeometry(geom2));
}
origin: org.opengis.cite/ets-kml2

if (!jtsPolygon.convexHull().equalsTopo(jtsPolygon)) {
  errHandler.addError(ErrorSeverity.ERROR, ErrorMessage.format(
      ErrorMessageKeys.QUAD_NOT_CONVEX, jtsPolygon.toText()),
com.vividsolutions.jts.geomGeometryequalsTopo

Javadoc

Tests whether this geometry is topologically equal to the argument geometry as defined by the SFS equals predicate.

The SFS equals predicate has the following equivalent definitions:

  • The two geometries have at least one point in common, and no point of either geometry lies in the exterior of the other geometry.
  • The DE-9IM Intersection Matrix for the two geometries matches the pattern T*F**FFF*
     
    T*F 
    **F 
    FF 
    
Note that this method computes topologically equality. For structural equality, see #equalsExact(Geometry).

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

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSharedPreferences (Context)
  • setContentView (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Menu (java.awt)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JTable (javax.swing)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • CodeWhisperer alternatives
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