abstract class GeoJSON::Coordinates::CoordinateTree
- GeoJSON::Coordinates::CoordinateTree
- Reference
- Object
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
- Enumerable(GeoJSON::Coordinates::CoordinateTree)
Direct Known Subclasses
- GeoJSON::Coordinates::CoordinateTree::Branch
- GeoJSON::Coordinates::CoordinateTree::Leaf
- GeoJSON::Coordinates::CoordinateTree::Root
Defined in:
geojson/coordinates/coordinate_tree.crConstructors
-
.new(parser : JSON::PullParser)
Creates a new
CoordinateTreestructure based on the given parser.
Instance Method Summary
-
#leaf_value : Float64
Gets the leaf value of this
CoordinateTreenode.
Constructor Detail
def self.new(parser : JSON::PullParser)
#
Creates a new CoordinateTree structure based on the given parser.
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.