Show / Hide Table of Contents

    Class GeometryFromWKB

    Converts Well-known Binary representations to a Geometry instance.

    Inheritance
    System.Object
    GeometryFromWKB
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Mapsui.Geometries.WellKnownBinary
    Assembly: Mapsui.Geometries.dll
    Syntax
    public static class GeometryFromWKB
    Remarks

    The Well-known Binary Representation for Geometry (WKBGeometry) provides a portable representation of a Geometry value as a contiguous stream of bytes. It permits Geometry values to be exchanged between an ODBC client and an SQL database in binary form.

    The Well-known Binary Representation for Geometry is obtained by serializing a Geometry instance as a sequence of numeric types drawn from the set {Unsigned Integer, Double} and then serializing each numeric type as a sequence of bytes using one of two well defined, standard, binary representations for numeric types (NDR, XDR). The specific binary encoding (NDR or XDR) used for a geometry byte stream is described by a one byte tag that precedes the serialized bytes. The only difference between the two encodings of geometry is one of byte order, the XDR encoding is Big Endian, the NDR encoding is Little Endian.

    Methods

    | Improve this Doc View Source

    Parse(Byte[])

    Creates a Geometry from the supplied byte[] containing the Well-known Binary representation.

    Declaration
    public static Geometry Parse(byte[] bytes)
    Parameters
    Type Name Description
    System.Byte[] bytes

    byte[] containing the Well-known Binary representation.

    Returns
    Type Description
    Geometry

    A Geometry bases on the supplied Well-known Binary representation.

    | Improve this Doc View Source

    Parse(BinaryReader)

    Creates a Geometry based on the Well-known binary representation.

    Declaration
    public static Geometry Parse(BinaryReader reader)
    Parameters
    Type Name Description
    System.IO.BinaryReader reader

    A System.IO.BinaryReader used to read the Well-known binary representation.

    Returns
    Type Description
    Geometry

    A Geometry based on the Well-known binary representation.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX