com.vividsolutions.jts.geom |
Contains the Geometry interface hierarchy and supporting classes.
The Java Topology Suite (JTS) is a Java API that implements a core set of spatial data operations using an explicit precision model and robust geometric algorithms. JTS is intended to be used in the development of applications that support the validation, cleaning, integration and querying of spatial datasets.
JTS attempts to implement the OpenGIS Simple Features Specification (SFS) as accurately as possible. In some cases the SFS is unclear or omits a specification; in this case JTS attempts to choose a reasonable and consistent alternative. Differences from and elaborations of the SFS are documented in this specification.
Package Specification
|
Java Source File Name | Type | Comment |
Coordinate.java | Class | A lightweight class used to store coordinates
on the 2-dimensional Cartesian plane.
It is distinct from Point , which is a subclass of Geometry
. |
CoordinateArrays.java | Class | |
CoordinateFilter.java | Interface | Geometry classes support the concept of applying a
coordinate filter to every coordinate in the Geometry . |
CoordinateList.java | Class | A list of
Coordinate s, which may
be set to prevent repeated coordinates from occuring in the list. |
CoordinateSequence.java | Interface | The internal representation of a list of coordinates inside a Geometry.
There are some cases in which you might want Geometries to store their
points using something other than the JTS Coordinate class. |
CoordinateSequenceComparator.java | Class | Compares two
CoordinateSequence s. |
CoordinateSequenceFactory.java | Interface | A factory to create concrete instances of
CoordinateSequence s. |
CoordinateSequenceFilter.java | Interface | Interface for classeswhich provide operations that
can be applied to the coordinates in a
CoordinateSequence . |
CoordinateSequences.java | Class | |
DefaultCoordinateSequence.java | Class | The CoordinateSequence implementation that Geometries use by default. |
DefaultCoordinateSequenceFactory.java | Class | Creates CoordinateSequences represented as an array of
Coordinate s. |
Dimension.java | Class | Constants representing the dimensions of a point, a curve and a surface. |
Envelope.java | Class | Defines a rectangular region of the 2D coordinate plane.
It is often used to represent the bounding box of a
Geometry ,
e.g. |
Geometry.java | Class | The base class for all geometric objects.
Binary Predicates
Because it is not clear at this time
what semantics for spatial
analysis methods involving GeometryCollection s would be useful,
GeometryCollection s are not supported as arguments to binary
predicates (other than convexHull ) or the relate
method.
Set-Theoretic Methods
The spatial analysis methods will
return the most specific class possible to represent the result. |
GeometryCollection.java | Class | Basic implementation of GeometryCollection . |
GeometryCollectionIterator.java | Class | Iterates over all
Geometry s in a
GeometryCollection .
. |
GeometryComponentFilter.java | Interface | Geometry classes support the concept of applying
a GeometryComponentFilter
filter to the Geometry . |
GeometryFactory.java | Class | Supplies a set of utility methods for building Geometry objects from lists
of Coordinates. |
GeometryFilter.java | Interface | GeometryCollection classes support the concept of
applying a GeometryFilter to the Geometry . |
IntersectionMatrix.java | Class | A Dimensionally Extended Nine-Intersection Model (DE-9IM) matrix. |
LinearRing.java | Class | Models an OGC SFS LinearRing . |
LineSegment.java | Class | Represents a line segment defined by two
Coordinate s. |
LineString.java | Class | Basic implementation of LineString . |
Location.java | Class | Constants representing the location of a point relative to a geometry. |
MultiLineString.java | Class | Basic implementation of MultiLineString . |
MultiPoint.java | Class | Models a collection of Point s. |
MultiPolygon.java | Class | Basic implementation of MultiPolygon . |
Point.java | Class | Basic implementation of Point . |
Polygon.java | Class | Represents a linear polygon, which may include holes. |
PrecisionModel.java | Class | Specifies the precision model of the
Coordinate s in a
Geometry .
In other words, specifies the grid of allowable
points for all Geometry s.
The
makePrecise method allows rounding a coordinate to
a "precise" value; that is, one whose
precision is known exactly.
Coordinates are assumed to be precise in geometries.
That is, the coordinates are assumed to be rounded to the
precision model given for the geometry.
JTS input routines automatically round coordinates to the precision model
before creating Geometries.
All internal operations
assume that coordinates are rounded to the precision model.
Constructive methods (such as boolean operations) always round computed
coordinates to the appropriate precision model.
Currently three types of precision model are supported:
- FLOATING - represents full double precision floating point.
This is the default precision model used in JTS
- FLOATING_SINGLE - represents single precision floating point.
- FIXED - represents a model with a fixed number of decimal places.
A Fixed Precision Model is specified by a scale factor.
The scale factor specifies the grid which numbers are rounded to.
Input coordinates are mapped to fixed coordinates according to the following
equations:
- jtsPt.x = round( (inputPt.x * scale ) / scale
- jtsPt.y = round( (inputPt.y * scale ) / scale
Coordinates are represented internally as Java double-precision values.
Since Java uses the IEEE-394 floating point standard, this
provides 53 bits of precision. |
TopologyException.java | Class | |
Triangle.java | Class | Represents a planar triangle, and provides methods for calculating various
properties of triangles. |