Performs an operation with or on this Geometry's
coordinates.
If this method modifies any coordinate values,
{@link #geometryChanged} must be called to update the geometry state.
Note that you cannot use this method to
modify this Geometry if its underlying CoordinateSequence's #get method
returns a copy of the Coordinate, rather than the actual Coordinate stored
(if it even stores Coordinate objects at all). [...]
Performs an operation on the coordinates in this Geometry's
{@link CoordinateSequence}s.
If the filter reports that a coordinate value has been changed,
{@link #geometryChanged} will be called automatically. [...]
Performs an operation with or on this Geometry and its
component Geometry's. Only GeometryCollections and
Polygons have component Geometry's; for Polygons they are the LinearRings
of the shell and holes. [...]
Performs an operation with or on this Geometry and its
subelement Geometrys (if any).
Only GeometryCollections and subclasses
have subelement Geometry's. [...]
Computes a buffer area around this geometry having the given width. The
buffer of a Geometry is the Minkowski sum or difference of the geometry
with a disc of radius abs(distance). [...]
Computes a buffer area around this geometry having the given
width and with a specified accuracy of approximation for circular arcs,
and using a specified end cap style. [...]
Returns the first non-zero result of compareTo encountered as
the two Collections are iterated over. If, by the time one of
the iterations is complete, no non-zero result has been encountered,
returns 0 if the other iteration is also complete. If b
completes before a, a positive number is returned; if a
before b, a negative number. [...]
Returns whether this Geometry is greater than, equal to,
or less than another Geometry of the same class.
using the given {@link CoordinateSequenceComparator}. [...]
Returns the minimum and maximum x and y values in this Geometry
, or a null Envelope if this Geometry is empty.
Unlike getEnvelopeInternal, this method calculates the Envelope
each time it is called; getEnvelopeInternal caches the result
of this method. [...]
Computes the smallest convex Polygon that contains all the
points in the Geometry. This obviously applies only to Geometry
s which contain 3 or more points; the results for degenerate cases are
specified as follows:
Creates a deep copy of this {@link Geometry} object.
Coordinate sequences contained in it are copied.
All instance fields are copied (i.e. the SRID and userData). [...]
Computes a Geometry representing the closure of the point-set
of the points contained in this Geometry that are not contained in
the other Geometry. [...]
Returns true if the two Geometrys are exactly equal,
up to a specified distance tolerance.
Two Geometries are exactly equal within a distance tolerance
if and only if: [...]
Tests whether two geometries are exactly equal
in their normalized forms.
This is a convenience method which creates normalized
versions of both geometries before computing
{@link #equalsExact(Geometry)}. [...]
Tests whether this geometry is structurally and numerically equal
to a given Object.
If the argument Object is not a Geometry,
the result is false.
Otherwise, the result is computed using
{@link #equalsExact(Geometry)}. [...]
Notifies this geometry that its coordinates have been changed by an external
party (for example, via a {@link CoordinateFilter}).
When this method is called the geometry will flush
and/or update any derived information it has cached (such as its {@link Envelope} ).
The operation is applied to all component Geometries.
Notifies this Geometry that its Coordinates have been changed by an external
party. When #geometryChanged is called, this method will be called for
this Geometry and its component Geometries. [...]
Computes the centroid of this Geometry.
The centroid
is equal to the centroid of the set of component Geometries of highest
dimension (since the lower-dimension geometries contribute zero
"weight" to the centroid). [...]
Returns a vertex of this Geometry
(usually, but not necessarily, the first one).
The returned coordinate should not be assumed
to be an actual Coordinate object used in
the internal representation. [...]
Returns an array containing the values of all the vertices for
this geometry.
If the geometry is a composite, the array will contain all the vertices
for the components, in the order in which the components occur in the geometry. [...]
Returns the dimension of this geometry.
The dimension of a geometry is is the topological
dimension of its embedding in the 2-D Euclidean plane.
In the JTS spatial model, dimension values are in the set {0,1,2}. [...]
Gets an {@link Envelope} containing
the minimum and maximum x and y values in this Geometry.
If the geometry is empty, an empty Envelope
is returned. [...]
Computes an interior point of this Geometry.
An interior point is guaranteed to lie in the interior of the Geometry,
if it possible to calculate such a point exactly. Otherwise,
the point may lie on the boundary of the geometry. [...]
Returns the length of this Geometry.
Linear geometries return their length.
Areal geometries return their perimeter.
They override this function to compute the area.
Others return 0.0 [...]
Returns the count of this Geometrys vertices. The Geometry
s contained by composite Geometrys must be
Geometry's; that is, they must implement getNumPoints[...]
Returns whether the two Geometrys are equal, from the point
of view of the equalsExact method. Called by equalsExact
. In general, two Geometry classes are considered to be
"equivalent" only if they are the same class. An exception is LineString
, which is considered to be equivalent to its subclasses. [...]
Tests whether this {@link Geometry} is simple.
The SFS definition of simplicity
follows the general rule that a Geometry is simple if it has no points of
self-tangency, self-intersection or other anomalous points. [...]
Converts this Geometry to normal form (or
canonical form ). Normal form is a unique representation for Geometry
s. It can be used to test whether two Geometrys are equal
in a way that is independent of the ordering of the coordinates within
them. Normal form equality is a stronger condition than topological
equality, but weaker than pointwise equality. The definitions for normal
form use the standard lexicographical ordering for coordinates. "Sorted in
order of coordinates" means the obvious extension of this ordering to
sequences of coordinates. [...]
Tests whether the elements in the DE-9IM
{@link IntersectionMatrix} for the two Geometrys match the elements in intersectionPattern.
The pattern is a 9-character string, with symbols drawn from the following set:
[...]
A simple scheme for applications to add their own custom data to a Geometry.
An example use might be to add an object representing a Coordinate Reference System. [...]
Computes a Geometry representing the closure of the point-set
which is the union of the points in this Geometry which are not
contained in the other Geometry,
with the points in the other Geometry not contained in this
Geometry.
If the result is empty, it is an atomic geometry
with the dimension of the highest input dimension. [...]
Returns the Well-known Text representation of this Geometry.
For a definition of the Well-known Text format, see the OpenGIS Simple
Features Specification. [...]