struct WKB::MultiPoint

Defined in:

wkb/geojson.cr
wkb/multi_point.cr

Constructors

Instance Method Summary

Instance methods inherited from struct WKB::Geometry

to_coordinates to_coordinates, to_json(builder : JSON::Builder) : Nil to_json

Constructor methods inherited from struct WKB::Geometry

new(pull : JSON::PullParser) new

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(point_array : Array(Array(Float64)), mode = Mode::XY, srid = 0) #

[View source]
def self.new(pull : JSON::PullParser) #

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


[View source]

Instance Method Detail

def children : Array(WKB::Point) #
Description copied from struct WKB::Object

Returns the object's child entities as an array.


[View source]
def empty? #
Description copied from struct WKB::Object

Returns true if the object has no children.


[View source]
def kind : ObjectKind #

[View source]
def points : Array(Point) #

[View source]
def size #
Description copied from struct WKB::Object

Returns the size of the object's children.


[View source]
def to_coordinates : Array(Array(Float64)) #
Description copied from struct WKB::Geometry

Returns a representation of coordinates as a nested array.


[View source]