Package org.locationtech.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 Topology Suite Technical Specifications
- OpenGIS Simple Features Specification for SQL
-
Interface Summary Interface Description CoordinateFilter An interface for classes which use the values of the coordinates in aGeometry
.CoordinateSequence The internal representation of a list of coordinates inside a Geometry.CoordinateSequenceFactory A factory to create concrete instances ofCoordinateSequence
s.CoordinateSequenceFilter An interface for classes which process the coordinates in aCoordinateSequence
.GeometryComponentFilter Geometry
classes support the concept of applying aGeometryComponentFilter
filter to theGeometry
.GeometryFilter GeometryCollection
classes support the concept of applying aGeometryFilter
to theGeometry
.Lineal IdentifiesGeometry
subclasses which are 1-dimensional and have components which areLineString
s.Polygonal Puntal -
Class Summary Class Description Coordinate A lightweight class used to store coordinates on the 2-dimensional Cartesian plane.Coordinate.DimensionalComparator Compares twoCoordinate
s, allowing for either a 2-dimensional or 3-dimensional comparison, and handling NaN values correctly.CoordinateArrays Useful utility functions for handling Coordinate arraysCoordinateArrays.BidirectionalComparator AComparator
forCoordinate
arrays modulo their directionality.CoordinateArrays.ForwardComparator AComparator
forCoordinate
arrays in the forward direction of their coordinates, using lexicographic ordering.CoordinateList A list ofCoordinate
s, which may be set to prevent repeated coordinates from occurring in the list.Coordinates Useful utility functions for handling Coordinate objects.CoordinateSequenceComparator Compares twoCoordinateSequence
s.CoordinateSequences Utility functions for manipulatingCoordinateSequence
sCoordinateXY Coordinate subclass supporting XY ordinates.CoordinateXYM Coordinate subclass supporting XYM ordinates.CoordinateXYZM Coordinate subclass supporting XYZM ordinates.Dimension Provides constants representing the dimensions of a point, a curve and a surface.Envelope Defines a rectangular region of the 2D coordinate plane.Geometry A representation of a planar, linear vector geometry.GeometryCollection Models a collection ofGeometry
s of arbitrary type and dimension.GeometryCollectionIterator GeometryFactory Supplies a set of utility methods for building Geometry objects from lists of Coordinates.IntersectionMatrix Models a Dimensionally Extended Nine-Intersection Model (DE-9IM) matrix.LinearRing Models an OGC SFSLinearRing
.LineSegment Represents a line segment defined by twoCoordinate
s.LineString Models an OGC-styleLineString
.Location Constants representing the different topological locations which can occur in aGeometry
.MultiLineString Models a collection ofLineString
s.MultiPoint Models a collection ofPoint
s.MultiPolygon Models a collection ofPolygon
s.OctagonalEnvelope A bounding container for aGeometry
which is in the shape of a general octagon.Point Represents a single point.Polygon Represents a polygon with linear edges, which may include holes.PrecisionModel Specifies the precision model of theCoordinate
s in aGeometry
.PrecisionModel.Type The types of Precision Model which JTS supports.Triangle Represents a planar triangle, and provides methods for calculating various properties of triangles. -
Exception Summary Exception Description TopologyException Indicates an invalid or inconsistent topological situation encountered during processing