New to Telerik UI for WinForms? Start a free 30-day trial

Reads WKB geometry values from a memory stream using the byte order declared in the WKB data.

Definition

Constructors

Initializes a reader over a memory stream containing WKB data.

C#
public WkbStreamReader(MemoryStream stream)
Parameters:streamMemoryStream

The stream to read.

Methods

Moves the stream position to its end, discarding any unread bytes.

C#
public void CompleteReading()

Gets whether the reader is positioned at the end of the underlying stream.

C#
public bool Eof()
Returns:

bool

true if no bytes remain; otherwise, false.

Reads a 64-bit floating-point value using the byte order selected by SetConverterByteOrder().

C#
public override double ReadDouble()
Returns:

double

The decoded value.

Overrides: BinaryReader.ReadDouble()

Skips the specified number of 64-bit values following a WKB point's longitude and latitude.

C#
public void ReadPointTrail(int count)
Parameters:countint

The number of trailing values to skip; nonpositive values leave the stream position unchanged.

Reads a 32-bit unsigned integer using the byte order selected by SetConverterByteOrder().

C#
public override uint ReadUInt32()
Returns:

uint

The decoded integer.

Overrides: BinaryReader.ReadUInt32()

Consumes the WKB byte-order marker and selects the byte order used by subsequent numeric reads.

C#
public void SetConverterByteOrder()