class GeoJSON::FeatureCollection

Overview

A FeatureCollection represents a GeoJSON FeatureCollection object and contains one or more Features.

Included Modules

Defined in:

geojson/feature_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(features : Array(Feature)) #

Creates a new FeatureCollection with the given features.


[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?.


def features : Array(Feature) #

Returns this FeatureCollections array of features.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def type : String #

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


[View source]