Class: RGeo::CoordSys::CS::PrimeMeridian
- Defined in:
- lib/rgeo/coord_sys/cs/entities.rb
Overview
OGC spec description
A meridian used to take longitude measurements from.
Instance Attribute Summary collapse
-
#angular_unit ⇒ Object
readonly
Returns the AngularUnits.
-
#longitude ⇒ Object
readonly
Returns the longitude value relative to the Greenwich Meridian.
Attributes inherited from Info
#abbreviation, #alias, #authority, #authority_code, #name, #remarks
Class Method Summary collapse
-
.create(name_, angular_unit_, longitude_, *optional_) ⇒ Object
Create a PrimeMeridian given a name, AngularUnits, and the longitude relative to the Greenwich Meridian, expressed in the AngularUnits.
Instance Method Summary collapse
-
#_wkt_content(open_, close_) ⇒ Object
:nodoc:.
-
#_wkt_typename ⇒ Object
:nodoc:.
-
#initialize(name_, angular_unit_, longitude_, *optional_) ⇒ PrimeMeridian
constructor
:nodoc:.
Methods inherited from Base
#_to_wkt, #eql?, #inspect, #to_s, #to_wkt
Constructor Details
#initialize(name_, angular_unit_, longitude_, *optional_) ⇒ PrimeMeridian
:nodoc:
612 613 614 615 616 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 612 def initialize(name_, angular_unit_, longitude_, *optional_) # :nodoc: super(name_, *optional_) @angular_unit = angular_unit_ @longitude = longitude_.to_f end |
Instance Attribute Details
#angular_unit ⇒ Object (readonly)
Returns the AngularUnits.
620 621 622 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 620 def angular_unit @angular_unit end |
#longitude ⇒ Object (readonly)
Returns the longitude value relative to the Greenwich Meridian. The longitude is expressed in this objects angular units.
624 625 626 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 624 def longitude @longitude end |
Class Method Details
.create(name_, angular_unit_, longitude_, *optional_) ⇒ Object
Create a PrimeMeridian given a name, AngularUnits, and the longitude relative to the Greenwich Meridian, expressed in the AngularUnits. You may also provide the optional parameters specified by the Info interface.
644 645 646 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 644 def create(name_, angular_unit_, longitude_, *optional_) new(name_, angular_unit_, longitude_, *optional_) end |
Instance Method Details
#_wkt_content(open_, close_) ⇒ Object
:nodoc:
631 632 633 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 631 def _wkt_content(open_, close_) # :nodoc: [@longitude] end |
#_wkt_typename ⇒ Object
:nodoc:
627 628 629 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 627 def _wkt_typename # :nodoc: "PRIMEM" end |