abstract class GeoJSON::Coordinates::CoordinateTree

Overview

A CoordinateTree is a standard tree structure in which there is a defined, parent-less Root, intermediate Branch nodes, and Leaf nodes which have floating-point values and lack children.

Included Modules

Direct Known Subclasses

Defined in:

geojson/coordinates/coordinate_tree.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(parser : JSON::PullParser) #

Creates a new CoordinateTree structure based on the given parser.


[View source]

Instance Method Detail

abstract def leaf_value : Float64 #

Gets the leaf value of this CoordinateTree node.

CoordinateTree::Root and CoordinateTree::Branch nodes will raise when this method is called.


[View source]