class

GeoJSON::MultiLineString

Inherits GeoJSON::Object < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

A MultiLineString is a Geometry representing several LineStrings.

This class corresponds to the GeoJSON MultiLineString.

Constructors

new(pull : JSON::PullParser)

A MultiLineString is a Geometry representing several LineStrings.

This class corresponds to the GeoJSON MultiLineString.

Source
new(coordinates : Array(LineString), *, bbox = nil)

Create a new MultiLineString with the given coordinates and optional bounding box bbox.

Source
new(coordinates : Array(Array(Array(Float64))), *, bbox = nil)

Create a new MultiLineString with the given coordinates and optional bounding box bbox.

Source

Instance methods

<<(line_string : Array(LineString))

Adds the given line_string to this MultiLineString.

Source
<<(coordinate : Array(Array(Float64)))

Adds the given coordinate to this MultiLineString.

Source
[](*args, **options)

Gets the LineString at the given index.

Source
[](*args, **options, &)

Gets the LineString at the given index.

Source
bbox

Calculates the bounding box for any GeoJSON object, including FeatureCollection.

Source
coordinates

Returns an array of this MultiLineString's coordinates.

Source
type

Gets this MultiLineString's GeoJSON type ("MultiLineString")

Source