class WKB::BinDecoder

Overview

Binary decoder of well-known representations of geometry objects (WKB).

Decoding of all supported flavors is automatic.

NOTE All #decode metods raise a WKB::Error if there was a decoding error, and IO error, or if the geometry object is not valid.

Defined in:

wkb/bin_decoder.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(default_srid : Int32 = 0) #

[View source]

Instance Method Detail

def decode(io : IO) : Object #

[View source]
def decode(data : Bytes) : Object #

[View source]
def decode(data : String) : Object #

[View source]
def default_srid : Int32 #

[View source]