struct WKB::GeometryCollection
- WKB::GeometryCollection
- WKB::Object
- Struct
- Value
- Object
Defined in:
wkb/geojson.cr:132wkb/geojson.cr:144
wkb/geometry_collection.cr
Constructors
- .new(geometries : Array(Geometry), mode = Mode::XY, srid = 0)
-
.new(pull : JSON::PullParser)
NOTE It's necessary to require the GeoJSON extension after loading the library.
Instance Method Summary
-
#children : Array(WKB::Geometry)
Returns the object's child entities as an array.
-
#empty?
Returns
true
if the object has no children. - #geometries : Array(Geometry)
- #kind : ObjectKind
-
#size
Returns the size of the object's children.
-
#to_json(builder : JSON::Builder) : Nil
NOTE It's necessary to require the GeoJSON extension after loading the library.
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.
Instance Method Detail
def children : Array(WKB::Geometry)
#
Description copied from struct WKB::Object
Returns the object's child entities as an array.
def to_json(builder : JSON::Builder) : Nil
#
NOTE It's necessary to require the GeoJSON extension after loading the library.