Class: RGeo::CoordSys::CS::ProjectionParameter
- Defined in:
- lib/rgeo/coord_sys/cs/entities.rb
Overview
OGC spec description
A named projection parameter value. The linear units of parameters’ values match the linear units of the containing projected coordinate system. The angular units of parameter values match the angular units of the geographic coordinate system that the projected coordinate system is based on.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
The parameter name.
-
#value ⇒ Object
readonly
The parameter value.
Class Method Summary collapse
-
.create(name, value) ⇒ Object
Create a parameter given the name and value.
Instance Method Summary collapse
-
#initialize(name, value) ⇒ ProjectionParameter
constructor
:nodoc:.
- #wkt_typename ⇒ Object
Methods inherited from Base
#encode_with, #eql?, #hash, #init_with, #inspect, #marshal_dump, #marshal_load, #to_s, #to_wkt
Constructor Details
#initialize(name, value) ⇒ ProjectionParameter
:nodoc:
305 306 307 308 309 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 305 def initialize(name, value) # :nodoc: super() @name = name @value = value.to_f end |
Instance Attribute Details
#name ⇒ Object (readonly)
The parameter name.
312 313 314 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 312 def name @name end |
#value ⇒ Object (readonly)
The parameter value.
315 316 317 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 315 def value @value end |
Class Method Details
.create(name, value) ⇒ Object
Create a parameter given the name and value.
324 325 326 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 324 def create(name, value) new(name, value) end |
Instance Method Details
#wkt_typename ⇒ Object
317 318 319 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 317 def wkt_typename "PARAMETER" end |