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

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

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

origin: com.vividsolutions/jts

protected int compareToSameClass(Object o, CoordinateSequenceComparator comp) {
 GeometryCollection gc = (GeometryCollection) o;
 int n1 = getNumGeometries();
 int n2 = gc.getNumGeometries();
 int i = 0;
 while (i < n1 && i < n2) {
  Geometry thisGeom = getGeometryN(i);
  Geometry otherGeom = gc.getGeometryN(i);
  int holeComp = thisGeom.compareToSameClass(otherGeom, comp);
  if (holeComp != 0) return holeComp;
  i++;
 }
 if (i < n1) return 1;
 if (i < n2) return -1;
 return 0;
}
 
origin: com.vividsolutions/jts

 return 1;
return compareToSameClass(o);
origin: com.vividsolutions/jts

 return 1;
return compareToSameClass(o, comp);
origin: com.vividsolutions/jts-core

protected int compareToSameClass(Object o, CoordinateSequenceComparator comp) {
 GeometryCollection gc = (GeometryCollection) o;
 int n1 = getNumGeometries();
 int n2 = gc.getNumGeometries();
 int i = 0;
 while (i < n1 && i < n2) {
  Geometry thisGeom = getGeometryN(i);
  Geometry otherGeom = gc.getGeometryN(i);
  int holeComp = thisGeom.compareToSameClass(otherGeom, comp);
  if (holeComp != 0) return holeComp;
  i++;
 }
 if (i < n1) return 1;
 if (i < n2) return -1;
 return 0;
}
 
origin: com.vividsolutions/jts-core

 return 1;
return compareToSameClass(o, comp);
origin: com.vividsolutions/jts-core

 return 1;
return compareToSameClass(o);
com.vividsolutions.jts.geomGeometrycompareToSameClass

Javadoc

Returns whether this Geometry is greater than, equal to, or less than another Geometry having the same class.

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
  • onRequestPermissionsResult (Fragment)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getExternalFilesDir (Context)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • 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