class RGeo::CoordSys::CS::LinearUnit

OGC spec description

Definition of linear units.

Public Class Methods

create(name_, meters_per_unit_, *optional_) click to toggle source

Create a LinearUnit given a unit name and a conversion factor in meters per unit. You may also provide the optional parameters specified by the Info interface.

# File lib/rgeo/coord_sys/cs/entities.rb, line 631
def create(name_, meters_per_unit_, *optional_)
  new(name_, meters_per_unit_, *optional_)
end

Public Instance Methods

meters_per_unit() click to toggle source

Returns the number of meters per LinearUnit. Also available as RGeo::CoordSys::CS::Unit#conversion_factor.

# File lib/rgeo/coord_sys/cs/entities.rb, line 619
def meters_per_unit
  @conversion_factor
end