abstract struct WKB::Object
- WKB::Object
- Struct
- Value
- Object
Direct Known Subclasses
Defined in:
wkb/geojson.crwkb/object.cr
Constructors
-
.new(pull : JSON::PullParser)
NOTE It's necessary to require the GeoJSON extension after loading the library.
Instance Method Summary
-
#children
Returns the object's child entities as an array.
-
#empty?
Returns
true
if the object has no children. -
#has_m?
Returns
true
if the M coordinate is supported. -
#has_z?
Returns
true
if the Z coordinate is supported. -
#has_zm?
Returns
true
if both Z and M coordinates are supported. -
#mode : WKB::Mode
Returns the object's coordinate mode.
-
#size
Returns the size of the object's children.
-
#srid : Int32
Returns the object's SRID.
-
#to_json(builder : JSON::Builder)
NOTE It's necessary to require the GeoJSON extension after loading the library.
Constructor Detail
def self.new(pull : JSON::PullParser)
#
NOTE It's necessary to require the GeoJSON extension after loading the library.
Instance Method Detail
abstract
def to_json(builder : JSON::Builder)
#
NOTE It's necessary to require the GeoJSON extension after loading the library.