Class: RGeo::CoordSys::CS::ProjectionParameter

Inherits:
Base
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

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:



304
305
306
307
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 304

def initialize(name, value) # :nodoc:
  @name = name
  @value = value.to_f
end

Instance Attribute Details

#nameObject (readonly)

The parameter name.



310
311
312
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 310

def name
  @name
end

#valueObject (readonly)

The parameter value.



313
314
315
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 313

def value
  @value
end

Class Method Details

.create(name, value) ⇒ Object

Create a parameter given the name and value.



322
323
324
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 322

def create(name, value)
  new(name, value)
end

Instance Method Details

#wkt_typenameObject



315
316
317
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 315

def wkt_typename
  "PARAMETER"
end