class GeoJSON::FeatureCollection
- GeoJSON::FeatureCollection
- GeoJSON::Base
- Reference
- Object
Overview
A FeatureCollection
represents a GeoJSON FeatureCollection object
and contains one or more Feature
s.
Included Modules
- JSON::Serializable
Defined in:
geojson/feature_collection.crConstructors
- .new(pull : JSON::PullParser)
-
.new(features : Array(Feature))
Creates a new
FeatureCollection
with the given features.
Instance Method Summary
-
#==(other : self)
Returns
true
if this reference is the same as other. -
#features : Array(Feature)
Returns this
FeatureCollections
array of features. -
#hash(hasher)
See
Object#hash(hasher)
-
#type : String
Gets this FeatureCollection's GeoJSON type ("FeatureCollection")
Instance methods inherited from class GeoJSON::Base
type : String
type
Constructor Detail
Creates a new FeatureCollection
with the given features.
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.