com.vividsolutions.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 Source File Name | Type | Comment |
ByteArrayInStream.java | Class | Allows an array of bytes to be used as an
InStream . |
ByteOrderDataInStream.java | Class | Allows reading a stream of Java primitive datatypes from an underlying
InStream ,
with the representation being in either common byte ordering. |
ByteOrderValues.java | Class | Methods to read and write primitive Java datatypes from/to byte
sequences, allowing the byte order to be specified
Similar to the standard Java ByteBuffer class. |
InputStreamInStream.java | Class | |
InStream.java | Interface | A interface for classes providing an input stream of bytes. |
OutputStreamOutStream.java | Class | |
OutStream.java | Interface | A interface for classes providing an output stream of bytes. |
ParseException.java | Class | Thrown by a WKTReader when a parsing problem occurs. |
WKBConstants.java | Interface | |
WKBReader.java | Class | Reads a
Geometry from a byte stream in Well-Known Binary format.
Supports use of an
InStream , which allows easy use
with arbitary byte stream sources.
This class reads the format describe in
WKBWriter . |
WKBWriter.java | Class | Writes a
Geometry into Well-Known Binary format.
Supports use of an
OutStream , which allows easy use
with arbitary byte stream sinks.
The WKB format is specified in the OGC Simple Features for SQL specification.
This implementation supports the extended WKB standard for representing
3-dimensional coordinates. |
WKTReader.java | Class | Converts a geometry in Well-Known Text format to a
Geometry .
WKTReader supports
extracting Geometry objects from either
Reader s or
String s. |
WKTWriter.java | Class | Outputs the Well-Known Text representation of a
Geometry .
The Well-known Text format is defined in the
OGC Simple Features Specification for SQL.
The WKTWriter outputs coordinates rounded to the precision
model. |