class GeoJSON::Coordinates::LinearRing
- GeoJSON::Coordinates::LinearRing
- GeoJSON::Coordinates::LineStringCoordinates
- GeoJSON::Coordinates::Coordinates(GeoJSON::Coordinates::Position)
- Reference
- Object
Overview
A LinearRing
is a closed set of LineStringCoordinates
. To satisfy this
requirement, it must consist of at least four postions, and the first and
last positions must be the same.
Defined in:
geojson/coordinates/linear_ring.crConstructors
-
.new(coordinates : Array(T))
Creates new
Coordinates
backed by the given coordinates. -
.new(other : self)
Creates a new
Coordinates
that is a copy of the otherCoordinates
. -
.new(coordinates : Array)
Creates a new
Coordinates
from the given coordinates array. -
.new(parser : JSON::PullParser)
Creates new
Coordinates
using the given parser. -
.new(coordinate_tree : CoordinateTree)
Creates new
Coordinates
from the given coordinate_tree.
Instance methods inherited from class GeoJSON::Coordinates::LineStringCoordinates
==(other : LineStringCoordinates)
==
Constructor methods inherited from class GeoJSON::Coordinates::LineStringCoordinates
new(coordinates : Array(T))new(other : self)
new(coordinates : Array)
new(parser : JSON::PullParser)
new(coordinate_tree : CoordinateTree) new
Instance methods inherited from class GeoJSON::Coordinates::Coordinates(GeoJSON::Coordinates::Position)
==(other : self)
==,
[](*args, **options)[](*args, **options, &) [], clone clone, coordinates : Array(T) coordinates, hash(hasher) hash, raise_if_invalid raise_if_invalid, to_json(*args, **options)
to_json(*args, **options, &) to_json
Constructor methods inherited from class GeoJSON::Coordinates::Coordinates(GeoJSON::Coordinates::Position)
new(coordinates : Array(T))new(other : self)
new(coordinates : Array)
new(parser : JSON::PullParser)
new(coordinate_tree : CoordinateTree) new
Constructor Detail
Creates new Coordinates
backed by the given coordinates.
def self.new(coordinate_tree : CoordinateTree)
#
Creates new Coordinates
from the given coordinate_tree. The tree's
structure is assumed to be correct for the particular kind of
Coordinates
that are being created.