java.lang.Object
org.locationtech.jts.geom.Geometry
org.apache.sedona.common.geometryObjects.Circle
All Implemented Interfaces:
Serializable, Cloneable, Comparable

public class Circle extends org.locationtech.jts.geom.Geometry
The Class Circle.
See Also:
  • Field Summary

    Fields inherited from class org.locationtech.jts.geom.Geometry

    envelope, factory, SRID, TYPECODE_GEOMETRYCOLLECTION, TYPECODE_LINEARRING, TYPECODE_LINESTRING, TYPECODE_MULTILINESTRING, TYPECODE_MULTIPOINT, TYPECODE_MULTIPOLYGON, TYPECODE_POINT, TYPECODE_POLYGON, TYPENAME_GEOMETRYCOLLECTION, TYPENAME_LINEARRING, TYPENAME_LINESTRING, TYPENAME_MULTILINESTRING, TYPENAME_MULTIPOINT, TYPENAME_MULTIPOLYGON, TYPENAME_POINT, TYPENAME_POLYGON
  • Constructor Summary

    Constructors
    Constructor
    Description
    Circle(org.locationtech.jts.geom.Geometry centerGeometry, Double givenRadius)
    Instantiates a new circle.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(org.locationtech.jts.geom.CoordinateFilter filter)
     
    void
    apply(org.locationtech.jts.geom.CoordinateSequenceFilter filter)
     
    void
    apply(org.locationtech.jts.geom.GeometryComponentFilter filter)
     
    void
    apply(org.locationtech.jts.geom.GeometryFilter filter)
     
    protected int
     
    protected int
    compareToSameClass(Object other, org.locationtech.jts.geom.CoordinateSequenceComparator comp)
     
    protected org.locationtech.jts.geom.Envelope
     
    org.locationtech.jts.geom.Geometry
     
    protected org.locationtech.jts.geom.Geometry
     
    boolean
    covers(org.locationtech.jts.geom.Geometry other)
     
    boolean
    equalsExact(org.locationtech.jts.geom.Geometry g, double tolerance)
     
    org.locationtech.jts.geom.Geometry
     
    int
     
    org.locationtech.jts.geom.Geometry
    Gets the center geometry.
    org.locationtech.jts.geom.Coordinate
    Gets the center point.
    org.locationtech.jts.geom.Coordinate
     
    org.locationtech.jts.geom.Coordinate[]
     
    int
     
     
    int
     
    Gets the radius.
    protected int
     
    boolean
    intersects(org.locationtech.jts.geom.Geometry other)
     
    boolean
     
    void
     
    org.locationtech.jts.geom.Geometry
     
    protected org.locationtech.jts.geom.Geometry
     
    void
    setRadius(Double givenRadius)
    Sets the radius.
     

    Methods inherited from class org.locationtech.jts.geom.Geometry

    buffer, buffer, buffer, clone, compare, compareTo, compareTo, contains, convexHull, coveredBy, crosses, difference, disjoint, distance, equal, equals, equals, equalsExact, equalsNorm, equalsTopo, geometryChanged, geometryChangedAction, getArea, getCentroid, getEnvelope, getEnvelopeInternal, getFactory, getGeometryN, getInteriorPoint, getLength, getNumGeometries, getPrecisionModel, getSRID, getUserData, hasDimension, hashCode, hasNonEmptyElements, hasNullElements, intersection, isEquivalentClass, isGeometryCollection, isRectangle, isSimple, isValid, isWithinDistance, norm, overlaps, relate, relate, setSRID, setUserData, symDifference, toText, touches, union, union, within

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Circle

      public Circle(org.locationtech.jts.geom.Geometry centerGeometry, Double givenRadius)
      Instantiates a new circle.
      Parameters:
      centerGeometry - the center geometry
      givenRadius - the given radius
  • Method Details

    • getCenterGeometry

      public org.locationtech.jts.geom.Geometry getCenterGeometry()
      Gets the center geometry.
      Returns:
      the center geometry
    • getCenterPoint

      public org.locationtech.jts.geom.Coordinate getCenterPoint()
      Gets the center point.
      Returns:
      the center point
    • getRadius

      public Double getRadius()
      Gets the radius.
      Returns:
      the radius
    • setRadius

      public void setRadius(Double givenRadius)
      Sets the radius.
      Parameters:
      givenRadius - the new radius
    • covers

      public boolean covers(org.locationtech.jts.geom.Geometry other)
      Overrides:
      covers in class org.locationtech.jts.geom.Geometry
    • intersects

      public boolean intersects(org.locationtech.jts.geom.Geometry other)
      Overrides:
      intersects in class org.locationtech.jts.geom.Geometry
    • getGeometryType

      public String getGeometryType()
      Specified by:
      getGeometryType in class org.locationtech.jts.geom.Geometry
    • getCoordinate

      public org.locationtech.jts.geom.Coordinate getCoordinate()
      Specified by:
      getCoordinate in class org.locationtech.jts.geom.Geometry
    • getCoordinates

      public org.locationtech.jts.geom.Coordinate[] getCoordinates()
      Specified by:
      getCoordinates in class org.locationtech.jts.geom.Geometry
    • getNumPoints

      public int getNumPoints()
      Specified by:
      getNumPoints in class org.locationtech.jts.geom.Geometry
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in class org.locationtech.jts.geom.Geometry
    • getDimension

      public int getDimension()
      Specified by:
      getDimension in class org.locationtech.jts.geom.Geometry
    • getBoundary

      public org.locationtech.jts.geom.Geometry getBoundary()
      Specified by:
      getBoundary in class org.locationtech.jts.geom.Geometry
    • getBoundaryDimension

      public int getBoundaryDimension()
      Specified by:
      getBoundaryDimension in class org.locationtech.jts.geom.Geometry
    • reverse

      public org.locationtech.jts.geom.Geometry reverse()
      Overrides:
      reverse in class org.locationtech.jts.geom.Geometry
    • reverseInternal

      protected org.locationtech.jts.geom.Geometry reverseInternal()
      Specified by:
      reverseInternal in class org.locationtech.jts.geom.Geometry
    • copy

      public org.locationtech.jts.geom.Geometry copy()
      Overrides:
      copy in class org.locationtech.jts.geom.Geometry
    • copyInternal

      protected org.locationtech.jts.geom.Geometry copyInternal()
      Specified by:
      copyInternal in class org.locationtech.jts.geom.Geometry
    • equalsExact

      public boolean equalsExact(org.locationtech.jts.geom.Geometry g, double tolerance)
      Specified by:
      equalsExact in class org.locationtech.jts.geom.Geometry
    • apply

      public void apply(org.locationtech.jts.geom.CoordinateFilter filter)
      Specified by:
      apply in class org.locationtech.jts.geom.Geometry
    • apply

      public void apply(org.locationtech.jts.geom.CoordinateSequenceFilter filter)
      Specified by:
      apply in class org.locationtech.jts.geom.Geometry
    • apply

      public void apply(org.locationtech.jts.geom.GeometryFilter filter)
      Specified by:
      apply in class org.locationtech.jts.geom.Geometry
    • apply

      public void apply(org.locationtech.jts.geom.GeometryComponentFilter filter)
      Specified by:
      apply in class org.locationtech.jts.geom.Geometry
    • normalize

      public void normalize()
      Specified by:
      normalize in class org.locationtech.jts.geom.Geometry
    • computeEnvelopeInternal

      protected org.locationtech.jts.geom.Envelope computeEnvelopeInternal()
      Specified by:
      computeEnvelopeInternal in class org.locationtech.jts.geom.Geometry
    • compareToSameClass

      protected int compareToSameClass(Object other)
      Specified by:
      compareToSameClass in class org.locationtech.jts.geom.Geometry
    • compareToSameClass

      protected int compareToSameClass(Object other, org.locationtech.jts.geom.CoordinateSequenceComparator comp)
      Specified by:
      compareToSameClass in class org.locationtech.jts.geom.Geometry
    • getTypeCode

      protected int getTypeCode()
      Specified by:
      getTypeCode in class org.locationtech.jts.geom.Geometry
    • toString

      public String toString()
      Overrides:
      toString in class org.locationtech.jts.geom.Geometry