class RGeo::CoordSys::CS::Unit

OGC spec description

Base interface for defining units.

Notes

Normally, you will instantiate one of the subclasses LinearUnit or AngularUnit. However, it is possible to instantiate Unit if it is not clear whether the data refers to a LinearUnit or AngularUnit.

Attributes

conversion_factor[R]

This field is not part of the OGC CT spec, but is part of the SFS. It is an alias of the appropriate field in the subclass, i.e. RGeo::CoordSys::CS::LinearUnit#meters_per_unit or RGeo::CoordSys::CS::AngularUnit#radians_per_unit.

Public Class Methods

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

Create a bare Unit that does not specify whether it is a LinearUnit or an AngularUnit, given a unit name and a conversion factor. You may also provide the optional parameters specified by the Info interface.

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