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.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(coordinates : Array) #

Create a new geometry with coordinates created from the given coordinates array.


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

Create a new geometry from the given coordinates CoordinateTree.


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

Create a new geometry with the given coordinates.


[View source]

Instance Method Detail

def coordinates : T #

Returns this geometry's coordinates.


[View source]