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

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

Constructor Details

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

:nodoc:


845
846
847
848
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 845

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.


852
853
854
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 852

def datum_type
  @datum_type
end

Instance Method Details

#_wkt_content(open_, close_) ⇒ Object

:nodoc:


855
856
857
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 855

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