class GeoJSON::MultiPoint
- GeoJSON::MultiPoint
- GeoJSON::Object
- Reference
- Object
Overview
A MultiPoint
is a Geometry
representing several Point
s.
This class corresponds to the GeoJSON MultiPoint.
Defined in:
geojson/multi_point.crConstructors
-
.new(pull : JSON::PullParser)
A
MultiPoint
is aGeometry
representing severalPoint
s. -
.new(coordinates : Array(Point), *, bbox = nil)
Create a new
MultiPoint
with the given coordinates and optional bounding box bbox. -
.new(coordinates : Array(Array(Float64)), *, bbox = nil)
Create a new
MultiPoint
with the given coordinates and optional bounding box bbox.
Instance Method Summary
-
#<<(point : Array(Point))
Adds the given point to this MultiPoint.
-
#<<(coordinate : Array(Float64))
Adds the given coordinate to this MultiPoint.
-
#[](*args, **options)
Gets the
Point
at the given index. -
#[](*args, **options, &)
Gets the
Point
at the given index. -
#bbox
Calculates the bounding box for any GeoJSON object, including
FeatureCollection
. -
#coordinates : Array(Coordinates)
Returns an array of this MultiPoint's coordinates.
-
#type : String
Gets this MultiPoint's GeoJSON type ("MultiPoint")
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 MultiPoint
is a Geometry
representing several Point
s.
This class corresponds to the GeoJSON MultiPoint.
Create a new MultiPoint
with the given coordinates and optional
bounding box bbox.
Instance Method Detail
Calculates the bounding box for any GeoJSON object, including FeatureCollection
.