module GeoJSON::SingleGeometry(T)
Overview
A SingleGeometry
is a Geometry
with a single Coordinates
member of
type T.
Direct including types
Defined in:
geojson/geometry/single_geometry.crConstructors
-
.new(coordinates : Array)
Create a new geometry with coordinates created from the given coordinates array.
-
.new(coordinates : CoordinateTree)
Create a new geometry from the given coordinates CoordinateTree.
-
.new(coordinates : T)
Create a new geometry with the given coordinates.
Instance Method Summary
-
#coordinates : T
Returns this geometry's coordinates.
Constructor Detail
def self.new(coordinates : Array)
#
Create a new geometry with coordinates created from the given coordinates array.
def self.new(coordinates : CoordinateTree)
#
Create a new geometry from the given coordinates CoordinateTree.