public class CompoundCurve extends LineString implements CompoundCurvedGeometry<LineString>
| Constructor and Description |
|---|
CompoundCurve(List<LineString> components,
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() |
CompoundCurve |
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() |
double |
getArea() |
Geometry |
getBoundary() |
int |
getBoundaryDimension() |
Point |
getCentroid() |
List<LineString> |
getComponents()
Returns the components of this compound curve, which will be a list of straight LineString
objects and CircularString/CircularRing
|
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() |
protected CoordinateSequence |
getLinearizedCoordinateSequence(double tolerance) |
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) |
LineString |
linearize()
Linearizes the geometry using the built-in linearization tolerance
|
LineString |
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() |
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, getSortIndex, isEquivalentClasspublic CompoundCurve(List<LineString> components, GeometryFactory factory, double tolerance)
public int getCoordinatesDimension()
CurvedGeometrygetCoordinatesDimension in interface CurvedGeometry<LineString>public LineString linearize()
CurvedGeometrylinearize in interface CurvedGeometry<LineString>public LineString linearize(double tolerance)
CurvedGeometryCircularArc.MAX_SEGMENTS_QUADRANTlinearize in interface CurvedGeometry<LineString>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_QUADRANTprotected CoordinateSequence getLinearizedCoordinateSequence(double tolerance)
public double getTolerance()
CurvedGeometrygetTolerance in interface CurvedGeometry<LineString>public List<LineString> getComponents()
getComponents in interface CompoundCurvedGeometry<LineString>public boolean isClosed()
isClosed in class LineStringpublic int getDimension()
getDimension in class LineStringpublic int getBoundaryDimension()
getBoundaryDimension in class LineStringpublic boolean isEmpty()
isEmpty in class LineStringpublic String getGeometryType()
getGeometryType in class LineStringpublic Geometry reverse()
reverse in class LineStringpublic Point getInteriorPoint()
getInteriorPoint in class Geometrypublic Geometry getEnvelope()
getEnvelope in class Geometrypublic Envelope getEnvelopeInternal()
getEnvelopeInternal in class Geometryprotected Envelope computeEnvelopeInternal()
computeEnvelopeInternal in class LineStringpublic 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 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<LineString>public boolean equalsNorm(Geometry g)
equalsNorm in class Geometrypublic boolean isRectangle()
isRectangle 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 CompoundCurve copyInternal()
copyInternal in class LineStringpublic 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.