Class: Proj4::Datum

Inherits:
Def
  • Object
show all
Defined in:
ext/projrb.c,
lib/proj4rb.rb

Class Method Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from Def

#<=>, #==, get, #initialize, #to_s

Constructor Details

This class inherits a constructor from Proj4::Def

Class Method Details

+ (Object) list

*Return list of all datums we know about.

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


# File 'ext/projrb.c'

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

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

 */
static VALUE datum_list(VALUE self){

Instance Method Details

- (Object) comments

*Get comments about the datum.

call-seq: comments -> String


# File 'ext/projrb.c'

/**Get comments about the datum.

   call-seq: comments -> String

 */
static VALUE datum_get_comments(VALUE self){

- (Object) defn

*Get definition of the datum.

call-seq: defn -> String


# File 'ext/projrb.c'

/**Get definition of the datum.

   call-seq: defn -> String

 */
static VALUE datum_get_defn(VALUE self){

- (Object) ellipse_id

*Get ID of the ellipse used by the datum.

call-seq: ellipse_id -> String


# File 'ext/projrb.c'

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

   call-seq: ellipse_id -> String

 */
static VALUE datum_get_ellipse_id(VALUE self){

- (Object) id

*Get ID of the datum.

call-seq: id -> String


# File 'ext/projrb.c'

/**Get ID of the datum.

   call-seq: id -> String

 */
static VALUE datum_get_id(VALUE self){

- (Object) inspect

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

call-seq: inspect -> String



403
404
405
# File 'lib/proj4rb.rb', line 403

def inspect
    "#<Proj4::Datum id=\"#{id}\", ellipse_id=\"#{ellipse_id}\", defn=\"#{defn}\", comments=\"#{comments}\">"
end