class GeoJSON::MultiLineString
- GeoJSON::MultiLineString
- GeoJSON::Object
- Reference
- Object
Overview
A MultiLineString
is a Geometry
representing several LineString
s.
This class corresponds to the GeoJSON MultiLineString.
Defined in:
geojson/multi_line_string.crConstructors
-
.new(pull : JSON::PullParser)
A
MultiLineString
is aGeometry
representing severalLineString
s. -
.new(coordinates : Array(LineString), *, bbox = nil)
Create a new
MultiLineString
with the given coordinates and optional bounding box bbox. -
.new(coordinates : Array(Array(Array(Float64))), *, bbox = nil)
Create a new
MultiLineString
with the given coordinates and optional bounding box bbox.
Instance Method Summary
-
#<<(line_string : Array(LineString))
Adds the given line_string to this MultiLineString.
-
#<<(coordinate : Array(Array(Float64)))
Adds the given coordinate to this MultiLineString.
-
#[](*args, **options)
Gets the
LineString
at the given index. -
#[](*args, **options, &)
Gets the
LineString
at the given index. -
#bbox
Calculates the bounding box for any GeoJSON object, including
FeatureCollection
. -
#coordinates : Array(Array(GeoJSON::Coordinates))
Returns an array of this MultiLineString's coordinates.
-
#type : String
Gets this MultiLineString's GeoJSON type ("MultiLineString")
Instance methods inherited from class GeoJSON::Object
bbox
bbox,
type : String
type
Constructor methods inherited from class GeoJSON::Object
new(pull : JSON::PullParser)
new
Constructor Detail
A MultiLineString
is a Geometry
representing several LineString
s.
This class corresponds to the GeoJSON MultiLineString.
Create a new MultiLineString
with the given coordinates and optional
bounding box bbox.
Instance Method Detail
Calculates the bounding box for any GeoJSON object, including FeatureCollection
.
Returns an array of this MultiLineString's coordinates.