Class WKBReader


  • public class WKBReader
    extends Object
    Reads a Geometryfrom a byte stream in Postgis Extended Well-Known Binary format. Supports use of an InStream, which allows easy use with arbitrary byte stream sources.

    This class reads the format describe in WKBWriter. It also partially handles the Extended WKB format used by PostGIS and SQLServer, by parsing and storing SRID values and supporting . The reader repairs structurally-invalid input (specifically, LineStrings and LinearRings which contain too few points have vertices added, and non-closed rings are closed).

    This class is designed to support reuse of a single instance to read multiple geometries. This class is not thread-safe; each thread should create its own instance.

    See Also:
    for a formal format specification