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
-
#_wkt_content(open_, close_) ⇒ Object
:nodoc:.
-
#_wkt_typename ⇒ Object
:nodoc:.
-
#initialize(name_, value_) ⇒ ProjectionParameter
constructor
:nodoc:.
Methods inherited from Base
#_to_wkt, #eql?, #inspect, #to_s, #to_wkt
Constructor Details
#initialize(name_, value_) ⇒ ProjectionParameter
:nodoc:
305 306 307 308 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 305 def initialize(name_, value_) # :nodoc: @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.
332 333 334 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 332 def create(name_, value_) new(name_, value_) end |
Instance Method Details
#_wkt_content(open_, close_) ⇒ Object
:nodoc:
322 323 324 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 322 def _wkt_content(open_, close_) # :nodoc: [@value] end |
#_wkt_typename ⇒ Object
:nodoc:
318 319 320 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 318 def _wkt_typename # :nodoc: "PARAMETER" end |