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
-
#initialize(name, angular_unit, longitude, *optional) ⇒ PrimeMeridian
constructor
:nodoc:.
- #wkt_typename ⇒ Object
Methods inherited from Info
Methods inherited from Base
#encode_with, #eql?, #hash, #init_with, #inspect, #marshal_dump, #marshal_load, #to_s, #to_wkt
Constructor Details
#initialize(name, angular_unit, longitude, *optional) ⇒ PrimeMeridian
:nodoc:
573 574 575 576 577 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 573 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.
580 581 582 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 580 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.
584 585 586 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 584 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.
596 597 598 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 596 def create(name, angular_unit, longitude, *optional) new(name, angular_unit, longitude, *optional) end |
Instance Method Details
#wkt_typename ⇒ Object
586 587 588 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 586 def wkt_typename "PRIMEM" end |