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

The Datum class holds information about datums (‘WGS84’, ‘potsdam’, …) known to Proj.4.

Methods

comments   defn   ellipse_id   id   inspect   list  

Public Class methods

Return list of all datums we know about.

[Source]

/**Return list of all datums we know about.

   call-seq: list -> Array of Proj4::Datum

 */
static VALUE datum_list(VALUE self){

Public Instance methods

Get comments about the datum.

[Source]

/**Get comments about the datum.

   call-seq: comments -> String

 */
static VALUE datum_get_comments(VALUE self){

Get definition of the datum.

[Source]

/**Get definition of the datum.

   call-seq: defn -> String

 */
static VALUE datum_get_defn(VALUE self){

Get ID of the ellipse used by the datum.

[Source]

/**Get ID of the ellipse used by the datum.

   call-seq: ellipse_id -> String

 */
static VALUE datum_get_ellipse_id(VALUE self){

Get ID of the datum.

[Source]

/**Get ID of the datum.

   call-seq: id -> String

 */
static VALUE datum_get_id(VALUE self){

Returns datum definition as string in format ’#<Proj4::Datum id="…", ellipse_id="…", defn="…", comments="…">’.

[Source]

     # File lib/proj4.rb, line 403
403:         def inspect
404:             "#<Proj4::Datum id=\"#{id}\", ellipse_id=\"#{ellipse_id}\", defn=\"#{defn}\", comments=\"#{comments}\">"
405:         end

[Validate]