| 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.
Get the definition with given id.
# File lib/proj4.rb, line 367
367: def self.get(id)
368: self.list.select{ |u| u.id == id }.first
369: end
Compares definitions by comparing ids.
# File lib/proj4.rb, line 383
383: def <=>(other)
384: self.id <=> other.id
385: end
Compares definitions by comparing ids.
# File lib/proj4.rb, line 375
375: def ==(other)
376: self.id == other.id
377: end