class GeoJSON::LineString

Overview

A LineString is a Geometry representing two or more points in geographic space connected consecutively by lines.

This class corresponds to the GeoJSON LineString.

Included Modules

Defined in:

geojson/geometry/line_string.cr

Constructors

Instance Method Summary

Instance methods inherited from module GeoJSON::SingleGeometry(GeoJSON::Coordinates::LineStringCoordinates)

coordinates : T coordinates

Constructor methods inherited from module GeoJSON::SingleGeometry(GeoJSON::Coordinates::LineStringCoordinates)

new(coordinates : Array)
new(coordinates : CoordinateTree)
new(coordinates : T)
new

Instance methods inherited from class GeoJSON::Geometry

==(other : self) ==, [](*args, **options)
[](*args, **options, &)
[]
, coordinates coordinates, hash(hasher) hash

Constructor methods inherited from class GeoJSON::Geometry

new(parser : JSON::PullParser) new

Class methods inherited from class GeoJSON::Geometry

from_json(geometry_json) from_json

Instance methods inherited from class GeoJSON::Base

type : String type

Constructor Detail

def self.new(pull : JSON::PullParser) #

Instance Method Detail

def type : String #

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


[View source]