Class Proj4::Def
In: ext/projrb.c
lib/proj4.rb
Parent: Object

Abstract base class for several types of definitions: Proj4::Datum, Proj4::Ellipsoid, Proj4::PrimeMeridian, Proj4::ProjectionType, Proj4::Unit.

Note that these classes only work if the version of the Proj.4 C library used is at least 449.

Methods

<=>   ==   get   to_s  

Public Class methods

Get the definition with given id.

[Source]

     # File lib/proj4.rb, line 367
367:         def self.get(id)
368:             self.list.select{ |u| u.id == id }.first
369:         end

Public Instance methods

Compares definitions by comparing ids.

[Source]

     # File lib/proj4.rb, line 383
383:         def <=>(other)
384:             self.id <=> other.id
385:         end

Compares definitions by comparing ids.

[Source]

     # File lib/proj4.rb, line 375
375:         def ==(other)
376:             self.id == other.id
377:         end

Stringify definition. Returns ID of this definition.

[Source]

     # File lib/proj4.rb, line 391
391:         def to_s
392:             id
393:         end

[Validate]