class GeoJSON::Coordinates::PolyRings
- GeoJSON::Coordinates::PolyRings
- GeoJSON::Coordinates::Coordinates(GeoJSON::Coordinates::LinearRing)
- Reference
- Object
Overview
A PolyRings represents a collection of LinearRing coordinates. There are
no validity restrictions on how many LinearRing coordinates may be in a
PolyRings.
Defined in:
geojson/coordinates/poly_rings.crConstructors
-
.new(coordinates : Array(T))
Creates new
Coordinatesbacked by the given coordinates. -
.new(other : self)
Creates a new
Coordinatesthat is a copy of the otherCoordinates. -
.new(coordinates : Array)
Creates a new
Coordinatesfrom the given coordinates array. -
.new(parser : JSON::PullParser)
Creates new
Coordinatesusing the given parser. -
.new(coordinate_tree : CoordinateTree)
Creates new
Coordinatesfrom the given coordinate_tree.
Instance Method Summary
-
#raise_if_invalid
Never raises.
Instance methods inherited from class GeoJSON::Coordinates::Coordinates(GeoJSON::Coordinates::LinearRing)
==(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::LinearRing)
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.