Interface WkbDecoder


  • public interface WkbDecoder
    A decoder for WKB (Well-Known Binary) encoded Geometries.

    In general WkbDecoder implementations are not be thread-safe.

    Author:
    Karel Maesen, Geovise BVBA creation-date: 9/29/12
    • Method Detail

      • decode

        Geometry<?> decode​(ByteBuffer byteBuffer)
        Decodes a WKB encoded representation of a Geometry
        Parameters:
        byteBuffer - the WKB encoded binary representation
        Returns:
        the represented Geometry
        Throws:
        WkbDecodeException - if the specified ByteBuffer is an illegal or unsupported WKB representation
      • decode

        <P extends PositionGeometry<P> decode​(ByteBuffer byteBuffer,
                                                CoordinateReferenceSystem<P> crs)
        Decodes a WKB encoded representation of a Geometry, assuming the specified CoordinateReferenceSystem
        Type Parameters:
        P - the Position type for the (base)
        Parameters:
        byteBuffer - the WKB encoded binary representation
        crs - the base coordinate reference system assumed for the wkt
        Returns:
        the represented Geometry
        Throws:
        WkbDecodeException - if the specified ByteBuffer is an illegal or unsupported WKB representation