class GeoJSON::GeometryCollection

Overview

A GeometryCollection represents a collection of several geometries (Geometry objects).

This class corresponds to the GeoJSON GeometryCollection.

Included Modules

Defined in:

geojson/geometry/geometry_collection.cr

Constructors

Instance Method Summary

Instance methods inherited from class GeoJSON::Base

type : String type

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(geometries : Array(Geometry)) #

Creates a new GeometryCollection containing the given geometries.


[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


[View source]
def [](*args, **options) #

Gets the geometry at the given index.


[View source]
def [](*args, **options, &) #

Gets the geometry at the given index.


[View source]
def geometries : Array(Geometry) #

Returns an array of the geometries in this GeometryCollection


[View source]
def type : String #

Gets this GeometryCollection's GeoJSON type ("GeometryCollection")


[View source]