module GeoJSON::MultiGeometry(T, E)

Overview

A MultiGeometry is a Geometry corresponding to a "normal geometry" type T and which can contain multiple coordinates of type E.

Direct including types

Defined in:

geojson/geometry/multi_geometry.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(coordinates : Array(T)) #

Creates a new geometry with the given coordinates.


[View source]
def self.new(coordinates : Array(E)) #

Creates a new geometry with the given coordinates.


[View source]
def self.new(coordinate_tree : CoordinateTree) #

Creates a new geometry with coordinates based on the given coordinate_tree.


[View source]

Instance Method Detail

def [](index : Int) #

Gets a new T from the coordinates at the given index.


[View source]
def coordinates : Array(E) #

Returns an array of this geometry's coordinates.


[View source]