Class: RGeo::CoordSys::CS::Datum

Inherits:
Info
  • Object
show all
Defined in:
lib/rgeo/coord_sys/cs/entities.rb

Overview

OGC spec description

A set of quantities from which other quantities are calculated. For the OGC abstract model, it can be defined as a set of real points on the earth that have coordinates. EG. A datum can be thought of as a set of parameters defining completely the origin and orientation of a coordinate system with respect to the earth. A textual description and/or a set of parameters describing the relationship of a coordinate system to some predefined physical locations (such as center of mass) and physical directions (such as axis of spin). The definition of the datum may also include the temporal behavior (such as the rate of change of the orientation of the coordinate axes).

Notes

This is a non-instantiable abstract class. You must instantiate one of the subclasses HorizontalDatum, VerticalDatum, or LocalDatum.

Direct Known Subclasses

HorizontalDatum, LocalDatum, VerticalDatum

Instance Attribute Summary collapse

Attributes inherited from Info

#abbreviation, #alias, #authority, #authority_code, #name, #remarks

Instance Method Summary collapse

Methods inherited from Info

#extension

Methods inherited from Base

#encode_with, #eql?, #hash, #init_with, #inspect, #marshal_dump, #marshal_load, #to_s, #to_wkt

Constructor Details

#initialize(name, datum_type, *optional) ⇒ Datum

:nodoc:



719
720
721
722
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 719

def initialize(name, datum_type, *optional) # :nodoc:
  super(name, *optional)
  @datum_type = datum_type.to_i
end

Instance Attribute Details

#datum_typeObject (readonly)

Gets the type of the datum as an enumerated code.



725
726
727
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 725

def datum_type
  @datum_type
end