public class CircularRing extends LinearRing implements SingleCurvedGeometry<LinearRing>, CurvedRing
| Constructor and Description |
|---|
CircularRing(CoordinateSequence points,
GeometryFactory factory,
double tolerance) |
CircularRing(double[] controlPoints,
GeometryFactory factory,
double tolerance) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(CoordinateFilter filter) |
void |
apply(CoordinateSequenceFilter filter) |
void |
apply(GeometryComponentFilter filter) |
void |
apply(GeometryFilter filter) |
Geometry |
buffer(double distance) |
Geometry |
buffer(double distance,
int quadrantSegments) |
Geometry |
buffer(double distance,
int quadrantSegments,
int endCapStyle) |
int |
compareTo(Object o) |
int |
compareTo(Object o,
CoordinateSequenceComparator comp) |
protected Envelope |
computeEnvelopeInternal() |
boolean |
contains(Geometry g) |
Geometry |
convexHull() |
CircularRing |
copyInternal() |
boolean |
coveredBy(Geometry g) |
boolean |
covers(Geometry g) |
boolean |
crosses(Geometry g) |
Geometry |
difference(Geometry other) |
boolean |
disjoint(Geometry g) |
double |
distance(Geometry g) |
boolean |
equals(Geometry other) |
boolean |
equals(Object o) |
boolean |
equalsExact(Geometry other) |
boolean |
equalsExact(Geometry other,
double tolerance) |
boolean |
equalsNorm(Geometry g) |
boolean |
equalsTopo(Geometry other) |
void |
geometryChanged() |
CircularArc |
getArcN(int arcIndex)
Returns the n-th circular arc making up the geometry
|
double |
getArea() |
Geometry |
getBoundary() |
int |
getBoundaryDimension() |
Point |
getCentroid() |
double[] |
getControlPoints()
Returns the control points for this string/ring.
|
Coordinate |
getCoordinate() |
Coordinate |
getCoordinateN(int n) |
Coordinate[] |
getCoordinates() |
int |
getCoordinatesDimension()
Returns the dimension of the geometry without forcing access to the coordinate sequence
|
CoordinateSequence |
getCoordinateSequence() |
int |
getDimension() |
Point |
getEndPoint() |
Geometry |
getEnvelope() |
Envelope |
getEnvelopeInternal() |
GeometryFactory |
getFactory() |
Geometry |
getGeometryN(int n) |
String |
getGeometryType() |
Point |
getInteriorPoint() |
double |
getLength() |
CoordinateSequence |
getLinearizedCoordinateSequence(double tolerance)
Returns the linearized coordinates at the given tolerance
|
int |
getNumArcs()
Number of arc circles
|
int |
getNumGeometries() |
int |
getNumPoints() |
Point |
getPointN(int n) |
PrecisionModel |
getPrecisionModel() |
int |
getSRID() |
Point |
getStartPoint() |
double |
getTolerance()
The default linearization tolerance
|
Object |
getUserData() |
int |
hashCode() |
Geometry |
intersection(Geometry other) |
boolean |
intersects(Geometry g) |
boolean |
isClosed() |
boolean |
isCoordinate(Coordinate pt) |
boolean |
isEmpty() |
boolean |
isRectangle() |
boolean |
isRing() |
boolean |
isSimple() |
boolean |
isValid() |
boolean |
isWithinDistance(Geometry geom,
double distance) |
LinearRing |
linearize()
Linearizes the geometry using the built-in linearization tolerance
|
LinearRing |
linearize(double tolerance)
Linearizes the geometry using the provided tolerance, the result is guaranteed to be less
than tolerance away from the curved geometry unless the number of points needed to linearize
the geometry exceeds the build-in per quadrant maximum, see
CircularArc.MAX_SEGMENTS_QUADRANT |
Geometry |
norm() |
void |
normalize() |
CircularRing |
normalizeRing()
Returns a normalized ring (one that does not have a single arc closing on itself)
|
boolean |
overlaps(Geometry g) |
IntersectionMatrix |
relate(Geometry g) |
boolean |
relate(Geometry g,
String intersectionPattern) |
Geometry |
reverse() |
void |
setSRID(int SRID) |
void |
setUserData(Object userData) |
Geometry |
symDifference(Geometry other) |
String |
toCurvedText()
Parallel method to
Geometry.toText() that will output the geometry as curved instead
of as linear |
String |
toString() |
String |
toText() |
boolean |
touches(Geometry g) |
Geometry |
union() |
Geometry |
union(Geometry other) |
boolean |
within(Geometry g) |
clone, compareToSameClass, compareToSameClass, isEquivalentClasspublic CircularRing(CoordinateSequence points,
GeometryFactory factory,
double tolerance)
public CircularRing(double[] controlPoints,
GeometryFactory factory,
double tolerance)
public int getNumArcs()
SingleCurvedGeometrygetNumArcs in interface SingleCurvedGeometry<LinearRing>public CircularArc getArcN(int arcIndex)
SingleCurvedGeometrygetArcN in interface SingleCurvedGeometry<LinearRing>public LinearRing linearize()
CurvedGeometrylinearize in interface CurvedGeometry<LinearRing>public LinearRing linearize(double tolerance)
CurvedGeometryCircularArc.MAX_SEGMENTS_QUADRANTlinearize in interface CurvedGeometry<LinearRing>tolerance - Linearization tolerance, should be zero or positive. When zero is used, the
maximum number of allowed linearization points will be used, see CircularArc.MAX_SEGMENTS_QUADRANTpublic double getTolerance()
CurvedGeometrygetTolerance in interface CurvedGeometry<LinearRing>public CoordinateSequence getLinearizedCoordinateSequence(double tolerance)
SingleCurvedGeometrygetLinearizedCoordinateSequence in interface SingleCurvedGeometry<LinearRing>public double[] getControlPoints()
SingleCurvedGeometrygetControlPoints in interface SingleCurvedGeometry<LinearRing>public boolean isClosed()
isClosed in class LinearRingpublic int getDimension()
getDimension in class LineStringpublic int getBoundaryDimension()
getBoundaryDimension in class LinearRingpublic boolean isEmpty()
isEmpty in class LineStringpublic String getGeometryType()
getGeometryType in class LinearRingpublic int getCoordinatesDimension()
CurvedGeometrygetCoordinatesDimension in interface CurvedGeometry<LinearRing>public CircularRing normalizeRing()
public Geometry reverse()
reverse in class LinearRingpublic int getNumGeometries()
getNumGeometries in class Geometrypublic Geometry getGeometryN(int n)
getGeometryN in class Geometrypublic void setUserData(Object userData)
setUserData in class Geometrypublic int getSRID()
getSRID in class Geometrypublic void setSRID(int SRID)
setSRID in class Geometrypublic GeometryFactory getFactory()
getFactory in class Geometrypublic Object getUserData()
getUserData in class Geometrypublic PrecisionModel getPrecisionModel()
getPrecisionModel in class Geometrypublic boolean isRectangle()
isRectangle in class Geometrypublic Point getInteriorPoint()
getInteriorPoint in class Geometrypublic Geometry getEnvelope()
getEnvelope in class Geometrypublic Envelope getEnvelopeInternal()
getEnvelopeInternal in class Geometryprotected Envelope computeEnvelopeInternal()
computeEnvelopeInternal in class LineStringpublic boolean equalsExact(Geometry other)
equalsExact in class Geometrypublic boolean equalsExact(Geometry other,
double tolerance)
equalsExact in class LineStringpublic boolean equals(Geometry other)
equals in class Geometrypublic boolean equalsTopo(Geometry other)
equalsTopo in class Geometrypublic boolean equals(Object o)
equals in class Geometrypublic int hashCode()
hashCode in class Geometrypublic String toString()
toString in class Geometrypublic String toCurvedText()
CurvedGeometryGeometry.toText() that will output the geometry as curved instead
of as lineartoCurvedText in interface CurvedGeometry<LinearRing>public boolean equalsNorm(Geometry g)
equalsNorm in class Geometrypublic Coordinate[] getCoordinates()
getCoordinates in class LineStringpublic CoordinateSequence getCoordinateSequence()
getCoordinateSequence in class LineStringpublic Coordinate getCoordinateN(int n)
getCoordinateN in class LineStringpublic Coordinate getCoordinate()
getCoordinate in class LineStringpublic int getNumPoints()
getNumPoints in class LineStringpublic Point getPointN(int n)
getPointN in class LineStringpublic Point getStartPoint()
getStartPoint in class LineStringpublic Point getEndPoint()
getEndPoint in class LineStringpublic boolean isRing()
isRing in class LineStringpublic double getLength()
getLength in class LineStringpublic Geometry getBoundary()
getBoundary in class LineStringpublic boolean isCoordinate(Coordinate pt)
isCoordinate in class LineStringpublic void apply(CoordinateFilter filter)
apply in class LineStringpublic void apply(CoordinateSequenceFilter filter)
apply in class LineStringpublic void apply(GeometryFilter filter)
apply in class LineStringpublic void apply(GeometryComponentFilter filter)
apply in class LineStringpublic CircularRing copyInternal()
copyInternal in class LinearRingpublic void normalize()
normalize in class LineStringpublic boolean isSimple()
isSimple in class Geometrypublic boolean isValid()
isValid in class Geometrypublic double distance(Geometry g)
distance in class Geometrypublic boolean isWithinDistance(Geometry geom,
double distance)
isWithinDistance in class Geometrypublic double getArea()
getArea in class Geometrypublic Point getCentroid()
getCentroid in class Geometrypublic void geometryChanged()
geometryChanged in class Geometrypublic boolean disjoint(Geometry g)
disjoint in class Geometrypublic boolean touches(Geometry g)
touches in class Geometrypublic boolean intersects(Geometry g)
intersects in class Geometrypublic boolean crosses(Geometry g)
crosses in class Geometrypublic boolean within(Geometry g)
within in class Geometrypublic boolean contains(Geometry g)
contains in class Geometrypublic boolean overlaps(Geometry g)
overlaps in class Geometrypublic boolean covers(Geometry g)
covers in class Geometrypublic boolean coveredBy(Geometry g)
coveredBy in class Geometrypublic boolean relate(Geometry g,
String intersectionPattern)
relate in class Geometrypublic IntersectionMatrix relate(Geometry g)
relate in class Geometrypublic Geometry buffer(double distance)
buffer in class Geometrypublic Geometry buffer(double distance,
int quadrantSegments)
buffer in class Geometrypublic Geometry buffer(double distance,
int quadrantSegments,
int endCapStyle)
buffer in class Geometrypublic Geometry convexHull()
convexHull in class Geometrypublic Geometry intersection(Geometry other)
intersection in class Geometrypublic Geometry union(Geometry other)
union in class Geometrypublic Geometry difference(Geometry other)
difference in class Geometrypublic Geometry symDifference(Geometry other)
symDifference in class Geometrypublic Geometry union()
union in class Geometrypublic Geometry norm()
norm in class Geometrypublic int compareTo(Object o)
compareTo in interface ComparablecompareTo in class Geometrypublic int compareTo(Object o, CoordinateSequenceComparator comp)
compareTo in class Geometrypublic String toText()
toText in class GeometryCopyright © 1996–2019 Geotools. All rights reserved.