JTS is Java's API for processing geographic data, which provides the following features:
- Implements the OGC spatial data model for the definition of Simple feature SQL query specification
- A complete, consistent, and basic implementation of a two-dimensional space algorithm, including two-dollar operations (such as touch and overlap) and spatial analysis methods (such as intersection and buffer)
- An accurate model of the display, with an elegant algorithm to solve the situation caused dimensional collapse (scale collapse- professional nouns do not know right, for the time being translated).
- Robust implementation of key computational geometry operations
- Provides well-known text format I/O interfaces
JTS is completely 100% written by Java (version 1.2 and later)
Spatial data Model
JTS provides the following spatial data types:
By the way, most spatial data models follow this.
As in the simple feature specification, the geometry in JTS has internal, boundary, and external.
Binary predicate
JTS supports a complete set of two-yuan predicate operations. The binary predicate method takes two geometries as parameters and returns a Boolean value that indicates whether the geometry has a specified spatial relationship. The spatial relationships it supports are: equal (equals), detach (disjoint), intersect (intersect), phase (touches), cross (crosses), inclusive (within), inclusive (contains), Overwrite/ Covered in (overlaps). The General relational (relate) operator is also supported. Relate can be used to determine the dimension extension of the nine-intersection model (DE-9IM), which can fully describe the relationship of two geometries.
For example:
Spatial analysis methods:
The JTS supports basic spatial analysis methods. The spatial analysis method uses one or two geometries as parameters to return a newly constructed geometry.
Spatial analysis methods are:
All two-element support supports not only the same geometry, but also different geometries:
Precision Model
To be Continued ...
English reference: Http://www.vividsolutions.com/jts/discussion.htm#spatialDataModel
2015-11-24 21:51:52
Java topology Suite (JTS) and spatial data model