class GeoJSON::Point
- GeoJSON::Point
- GeoJSON::Geometry
- GeoJSON::Base
- Reference
- Object
Overview
A Point
is a Geometry
representing a single Position
in geographic
space.
This class corresponds to the GeoJSON Point.
Included Modules
- GeoJSON::SingleGeometry(GeoJSON::Coordinates::Position)
- JSON::Serializable
Defined in:
geojson/geometry/point.crConstructors
- .new(pull : JSON::PullParser)
-
.new(*, longitude lon, latitude lat, altivation alt = nil)
Creates a new
Point
at the given longitude, latitude, and altitude/elevation (altivation).
Instance Method Summary
-
#altivation(*args, **options)
Gets this Point's altitude/elevation.
-
#altivation(*args, **options, &)
Gets this Point's altitude/elevation.
-
#latitude(*args, **options)
Gets this Point's latitude in decimal degrees according to WGS84.
-
#latitude(*args, **options, &)
Gets this Point's latitude in decimal degrees according to WGS84.
-
#longitude(*args, **options)
Gets this Point's longitude in decimal degrees according to WGS84.
-
#longitude(*args, **options, &)
Gets this Point's longitude in decimal degrees according to WGS84.
-
#type : String
Gets this Point's GeoJSON type ("Point")
Instance methods inherited from module GeoJSON::SingleGeometry(GeoJSON::Coordinates::Position)
coordinates : T
coordinates
Constructor methods inherited from module GeoJSON::SingleGeometry(GeoJSON::Coordinates::Position)
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
Creates a new Point
at the given longitude, latitude, and
altitude/elevation (altivation).
Instance Method Detail
Gets this Point's altitude/elevation.
Technically, this positional value is meant to be the height in meters above the WGS84 ellipsoid.
Gets this Point's altitude/elevation.
Technically, this positional value is meant to be the height in meters above the WGS84 ellipsoid.
Gets this Point's latitude in decimal degrees according to WGS84.
Gets this Point's longitude in decimal degrees according to WGS84.
Gets this Point's longitude in decimal degrees according to WGS84.