Package org.locationtech.jts.io
package org.locationtech.jts.io
Contains the interfaces for converting JTS objects to and from other formats.
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
-
ClassDescriptionAllows an array of bytes to be used as an
InStream
.Allows reading a stream of Java primitive datatypes from an underlyingInStream
, with the representation being in either common byte ordering.Methods to read and write primitive Java datatypes from/to byte sequences, allowing the byte order to be specifiedAn adapter to allow anInputStream
to be used as anInStream
A interface for classes providing an input stream of bytes.An adapter to allow anOutputStream
to be used as anOutStream
A interface for classes providing an output stream of bytes.Thrown by aWKTReader
when a parsing problem occurs.Constant values used by the WKB formatReads a sequence ofGeometry
s in WKBHex format from a text file.Reads aGeometry
from a byte stream in Well-Known Binary format.Writes aGeometry
into Well-Known Binary format.Reads a sequence ofGeometry
s in WKT format from a text file.Converts a geometry in Well-Known Text format to aGeometry
.Writes the Well-Known Text representation of aGeometry
.