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 Base

#_to_wkt, #eql?, #inspect, #to_s, #to_wkt

Constructor Details

#initialize(name_, datum_type_, *optional_) ⇒ Datum

:nodoc:



778
779
780
781
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 778

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.



785
786
787
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 785

def datum_type
  @datum_type
end

Instance Method Details

#_wkt_content(open_, close_) ⇒ Object

:nodoc:



788
789
790
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 788

def _wkt_content(open_, close_)  # :nodoc:
  []
end