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 ofCoordinateSequences.CoordinateSequenceFilter An interface for classes which process the coordinates in aCoordinateSequence.GeometryComponentFilter Geometryclasses support the concept of applying aGeometryComponentFilterfilter to theGeometry.GeometryFilter GeometryCollectionclasses support the concept of applying aGeometryFilterto theGeometry.Lineal IdentifiesGeometrysubclasses which are 1-dimensional and have components which areLineStrings.Polygonal Puntal -
Class Summary Class Description Coordinate A lightweight class used to store coordinates on the 2-dimensional Cartesian plane.Coordinate.DimensionalComparator Compares twoCoordinates, allowing for either a 2-dimensional or 3-dimensional comparison, and handling NaN values correctly.CoordinateArrays Useful utility functions for handling Coordinate arraysCoordinateArrays.BidirectionalComparator AComparatorforCoordinatearrays modulo their directionality.CoordinateArrays.ForwardComparator AComparatorforCoordinatearrays in the forward direction of their coordinates, using lexicographic ordering.CoordinateList A list ofCoordinates, which may be set to prevent repeated coordinates from occurring in the list.Coordinates Useful utility functions for handling Coordinate objects.CoordinateSequenceComparator Compares twoCoordinateSequences.CoordinateSequences Utility functions for manipulatingCoordinateSequencesCoordinateXY Coordinate subclass supporting XY ordinates.CoordinateXYM Coordinate subclass supporting XYM ordinates.CoordinateXYZM Coordinate subclass supporting XYZM ordinates.DefaultCoordinateSequenceFactory Deprecated. no longer used, recommend CoordinateArraySequenceFactory for array backed implementationDimension 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 ofGeometrys 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 twoCoordinates.LineString Models an OGC-styleLineString.Location Constants representing the different topological locations which can occur in aGeometry.MultiLineString Models a collection ofLineStrings.MultiPoint Models a collection ofPoints.MultiPolygon Models a collection ofPolygons.OctagonalEnvelope A bounding container for aGeometrywhich 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 theCoordinates 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