abstract struct WKB::Object

Direct Known Subclasses

Defined in:

wkb/geojson.cr
wkb/object.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

NOTE It's necessary to require the GeoJSON extension after loading the library.


[View source]

Instance Method Detail

abstract def children #

Returns the object's child entities as an array.


[View source]
abstract def empty? #

Returns true if the object has no children.


[View source]
def has_m? #

Returns true if the M coordinate is supported.


[View source]
def has_z? #

Returns true if the Z coordinate is supported.


[View source]
def has_zm? #

Returns true if both Z and M coordinates are supported.


[View source]
def mode : WKB::Mode #

Returns the object's coordinate mode.


[View source]
abstract def size #

Returns the size of the object's children.


[View source]
def srid : Int32 #

Returns the object's SRID.


[View source]
abstract def to_json(builder : JSON::Builder) #

NOTE It's necessary to require the GeoJSON extension after loading the library.


[View source]