Class: GlobalConvert::Projection

Inherits:
Proj4::Projection
  • Object
show all
Defined in:
lib/global_convert/projection.rb

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Projection

Returns a new instance of Projection.



5
6
7
8
# File 'lib/global_convert/projection.rb', line 5

def initialize(name)
  raise 'Projection not found' unless settings = projections[name.to_s]
  super(settings['projection'])
end