class GeoJSON::FeatureCollection
- GeoJSON::FeatureCollection
- GeoJSON::Object
- Reference
- Object
Overview
A FeatureCollection represents a GeoJSON FeatureCollection object
and contains one or more Features.
Defined in:
geojson/feature_collection.crConstructors
-
.new(pull : JSON::PullParser)
A
FeatureCollectionrepresents a GeoJSON FeatureCollection object and contains one or moreFeatures. -
.new(features : Array(Feature), *, bbox = nil)
Creates a new
FeatureCollectionwith the given features.
Instance Method Summary
-
#bbox
Calculates the bounding box for any GeoJSON object, including
FeatureCollection. -
#features : Array(Feature)
Returns this
FeatureCollectionsarray of features. -
#type : String
Gets this FeatureCollection's GeoJSON type ("FeatureCollection")
Instance methods inherited from class GeoJSON::Object
bbox
bbox,
type : String
type
Constructor methods inherited from class GeoJSON::Object
new(pull : JSON::PullParser)
new
Constructor Detail
def self.new(pull : JSON::PullParser)
#
A FeatureCollection represents a GeoJSON FeatureCollection object
and contains one or more Features.
Creates a new FeatureCollection with the given features.
Instance Method Detail
def bbox
#
Description copied from class GeoJSON::Object
Calculates the bounding box for any GeoJSON object, including FeatureCollection.