abstract struct WKB::Geometry

Direct Known Subclasses

Defined in:

wkb/geojson.cr:88
wkb/geojson.cr:144
wkb/geometry.cr

Constructors

Instance Method Summary

Instance methods inherited from struct WKB::Object

children children, empty? empty?, has_m? has_m?, has_z? has_z?, has_zm? has_zm?, mode : WKB::Mode mode, size size, srid : Int32 srid, to_json(builder : JSON::Builder) to_json

Constructor methods inherited from struct WKB::Object

new(pull : JSON::PullParser) new

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 to_coordinates #

Returns a representation of coordinates as a nested array.


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

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


[View source]