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

The ProjectionType class holds information about projections types (‘merc’, ‘aea’, …) known to Proj.4.

Methods

descr   id   inspect   list   name  

Public Class methods

Return list of all projection types we know about.

[Source]

/**Return list of all projection types we know about.

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

 */
static VALUE projection_type_list(VALUE self){

Public Instance methods

Get description of this projection type as a multiline string.

[Source]

/**Get description of this projection type as a multiline string.

   call-seq: descr -> String

 */
static VALUE projection_type_get_descr(VALUE self){

Get ID of this projection type.

[Source]

/**Get ID of this projection type.

   call-seq: id -> String

 */
static VALUE projection_type_get_id(VALUE self){

Returns a projection type as string in format ’#<Proj4::PrimeMeridian id="…", name="…">’.

[Source]

     # File lib/proj4.rb, line 439
439:         def inspect
440:             "#<Proj4::ProjectionType id=\"#{id}\", name=\"#{name}\">"
441:         end

Gets name of this projection type.

[Source]

     # File lib/proj4.rb, line 447
447:         def name
448:             descr.sub(/\n.*/m, '')
449:         end

[Validate]