public class CircularString extends LineString implements SingleCurvedGeometry<LineString>
Constructor and Description |
---|
CircularString(CoordinateSequence points,
GeometryFactory factory,
double tolerance) |
CircularString(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() |
protected CircularString |
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) |
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, isEquivalentClass
public CircularString(CoordinateSequence points, GeometryFactory factory, double tolerance)
public CircularString(double[] controlPoints, GeometryFactory factory, double tolerance)
public double[] getControlPoints()
SingleCurvedGeometry
getControlPoints
in interface SingleCurvedGeometry<LineString>
public double getTolerance()
CurvedGeometry
getTolerance
in interface CurvedGeometry<LineString>
public int getNumArcs()
SingleCurvedGeometry
getNumArcs
in interface SingleCurvedGeometry<LineString>
public CircularArc getArcN(int arcIndex)
SingleCurvedGeometry
getArcN
in interface SingleCurvedGeometry<LineString>
public LineString linearize()
CurvedGeometry
linearize
in interface CurvedGeometry<LineString>
public LineString linearize(double tolerance)
CurvedGeometry
CircularArc.MAX_SEGMENTS_QUADRANT
linearize
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_QUADRANT
public CoordinateSequence getLinearizedCoordinateSequence(double tolerance)
SingleCurvedGeometry
getLinearizedCoordinateSequence
in interface SingleCurvedGeometry<LineString>
public boolean isClosed()
isClosed
in class LineString
public int getDimension()
getDimension
in class LineString
public int getBoundaryDimension()
getBoundaryDimension
in class LineString
public boolean isEmpty()
isEmpty
in class LineString
public String getGeometryType()
getGeometryType
in class LineString
public Geometry reverse()
reverse
in class LineString
public Point getInteriorPoint()
getInteriorPoint
in class Geometry
public Geometry getEnvelope()
getEnvelope
in class Geometry
public Envelope getEnvelopeInternal()
getEnvelopeInternal
in class Geometry
protected Envelope computeEnvelopeInternal()
computeEnvelopeInternal
in class LineString
public int getNumGeometries()
getNumGeometries
in class Geometry
public Geometry getGeometryN(int n)
getGeometryN
in class Geometry
public void setUserData(Object userData)
setUserData
in class Geometry
public int getSRID()
getSRID
in class Geometry
public void setSRID(int SRID)
setSRID
in class Geometry
public GeometryFactory getFactory()
getFactory
in class Geometry
public Object getUserData()
getUserData
in class Geometry
public PrecisionModel getPrecisionModel()
getPrecisionModel
in class Geometry
public boolean isRectangle()
isRectangle
in class Geometry
public boolean equalsExact(Geometry other)
equalsExact
in class Geometry
public boolean equalsExact(Geometry other, double tolerance)
equalsExact
in class LineString
public boolean equals(Geometry other)
equals
in class Geometry
public boolean equalsTopo(Geometry other)
equalsTopo
in class Geometry
public boolean equals(Object o)
equals
in class Geometry
public int hashCode()
hashCode
in class Geometry
public String toString()
toString
in class Geometry
public String toCurvedText()
CurvedGeometry
Geometry.toText()
that will output the geometry as curved instead
of as lineartoCurvedText
in interface CurvedGeometry<LineString>
public boolean equalsNorm(Geometry g)
equalsNorm
in class Geometry
public Point getPointN(int n)
getPointN
in class LineString
public Point getStartPoint()
getStartPoint
in class LineString
public Point getEndPoint()
getEndPoint
in class LineString
public Coordinate[] getCoordinates()
getCoordinates
in class LineString
public CoordinateSequence getCoordinateSequence()
getCoordinateSequence
in class LineString
public Coordinate getCoordinateN(int n)
getCoordinateN
in class LineString
public Coordinate getCoordinate()
getCoordinate
in class LineString
public int getNumPoints()
getNumPoints
in class LineString
public boolean isRing()
isRing
in class LineString
public double getLength()
getLength
in class LineString
public Geometry getBoundary()
getBoundary
in class LineString
public boolean isCoordinate(Coordinate pt)
isCoordinate
in class LineString
public void apply(CoordinateFilter filter)
apply
in class LineString
public void apply(CoordinateSequenceFilter filter)
apply
in class LineString
public void apply(GeometryFilter filter)
apply
in class LineString
public void apply(GeometryComponentFilter filter)
apply
in class LineString
protected CircularString copyInternal()
copyInternal
in class LineString
public void normalize()
normalize
in class LineString
public boolean isSimple()
isSimple
in class Geometry
public boolean isValid()
isValid
in class Geometry
public double distance(Geometry g)
distance
in class Geometry
public boolean isWithinDistance(Geometry geom, double distance)
isWithinDistance
in class Geometry
public double getArea()
getArea
in class Geometry
public Point getCentroid()
getCentroid
in class Geometry
public void geometryChanged()
geometryChanged
in class Geometry
public boolean disjoint(Geometry g)
disjoint
in class Geometry
public boolean touches(Geometry g)
touches
in class Geometry
public boolean intersects(Geometry g)
intersects
in class Geometry
public boolean crosses(Geometry g)
crosses
in class Geometry
public boolean within(Geometry g)
within
in class Geometry
public boolean contains(Geometry g)
contains
in class Geometry
public boolean overlaps(Geometry g)
overlaps
in class Geometry
public boolean covers(Geometry g)
covers
in class Geometry
public boolean coveredBy(Geometry g)
coveredBy
in class Geometry
public boolean relate(Geometry g, String intersectionPattern)
relate
in class Geometry
public IntersectionMatrix relate(Geometry g)
relate
in class Geometry
public Geometry buffer(double distance)
buffer
in class Geometry
public Geometry buffer(double distance, int quadrantSegments)
buffer
in class Geometry
public Geometry buffer(double distance, int quadrantSegments, int endCapStyle)
buffer
in class Geometry
public Geometry convexHull()
convexHull
in class Geometry
public Geometry intersection(Geometry other)
intersection
in class Geometry
public Geometry union(Geometry other)
union
in class Geometry
public Geometry difference(Geometry other)
difference
in class Geometry
public Geometry symDifference(Geometry other)
symDifference
in class Geometry
public Geometry union()
union
in class Geometry
public Geometry norm()
norm
in class Geometry
public int compareTo(Object o)
compareTo
in interface Comparable
compareTo
in class Geometry
public int compareTo(Object o, CoordinateSequenceComparator comp)
compareTo
in class Geometry
public String toText()
toText
in class Geometry
public int getCoordinatesDimension()
CurvedGeometry
getCoordinatesDimension
in interface CurvedGeometry<LineString>
Copyright © 1996–2019 Geotools. All rights reserved.