class GeoJSON::GeometryCollection
- GeoJSON::GeometryCollection
- GeoJSON::Base
- Reference
- Object
Overview
A GeometryCollection represents a collection of several geometries
(Geometry objects).
This class corresponds to the GeoJSON GeometryCollection.
Included Modules
- JSON::Serializable
Defined in:
geojson/geometry/geometry_collection.crConstructors
- .new(pull : JSON::PullParser)
-
.new(geometries : Array(Geometry))
Creates a new
GeometryCollectioncontaining the given geometries.
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#[](*args, **options)
Gets the geometry at the given index.
-
#[](*args, **options, &)
Gets the geometry at the given index.
-
#geometries : Array(Geometry)
Returns an array of the geometries in this
GeometryCollection -
#type : String
Gets this GeometryCollection's GeoJSON type ("GeometryCollection")
Instance methods inherited from class GeoJSON::Base
type : String
type
Constructor Detail
Creates a new GeometryCollection containing the given geometries.
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true if this reference is the same as other. Invokes same?.
Returns an array of the geometries in this GeometryCollection