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.crConstructors
-
.new(coordinates : Array(T))
Creates a new geometry with the given coordinates.
-
.new(coordinates : Array(E))
Creates a new geometry with the given coordinates.
-
.new(coordinate_tree : CoordinateTree)
Creates a new geometry with coordinates based on the given coordinate_tree.
Instance Method Summary
-
#[](index : Int)
Gets a new
T
from the coordinates at the given index. -
#coordinates : Array(E)
Returns an array of this geometry's coordinates.
Constructor Detail
def self.new(coordinate_tree : CoordinateTree)
#
Creates a new geometry with coordinates based on the given coordinate_tree.