Class: GeojsonModel::GeometryCollection
- Inherits:
-
Object
- Object
- GeojsonModel::GeometryCollection
- Includes:
- Base
- Defined in:
- lib/geojson_model/geometry_collection.rb
Instance Method Summary collapse
Methods included from Base
Instance Method Details
#to_feature_collection ⇒ FeatureCollection
11 12 13 |
# File 'lib/geojson_model/geometry_collection.rb', line 11 def to_feature_collection FeatureCollection.new(features: geometries.map { |geo| Feature.new(geometry: geo) }) end |