Java topology Suite (JTS) and spatial data model

Source: Internet
Author: User

JTS is Java's API for processing geographic data, which provides the following features:

    1. Implements the OGC spatial data model for the definition of Simple feature SQL query specification
    2. 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)
    3. 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).
    4. Robust implementation of key computational geometry operations
    5. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.