Class: RGeo::CoordSys::CS::HorizontalDatum

Inherits:
Datum show all
Defined in:
lib/rgeo/coord_sys/cs/entities.rb

Overview

OGC spec description

Procedure used to measure positions on the surface of the Earth.

Instance Attribute Summary collapse

Attributes inherited from Datum

#datum_type

Attributes inherited from Info

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

Class Method Summary collapse

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, ellipsoid, wgs84_parameters, *optional) ⇒ HorizontalDatum

:nodoc:


791
792
793
794
795
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 791

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

Instance Attribute Details

#ellipsoidObject (readonly)

Returns the Ellipsoid.


798
799
800
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 798

def ellipsoid
  @ellipsoid
end

#wgs84_parametersObject (readonly)

Gets preferred parameters for a Bursa Wolf transformation into WGS84. The 7 returned values correspond to (dx,dy,dz) in meters, (ex,ey,ez) in arc-seconds, and scaling in parts-per-million.


803
804
805
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 803

def wgs84_parameters
  @wgs84_parameters
end

Class Method Details

.create(name, datum_type, ellipsoid, wgs84_parameters, *optional) ⇒ Object

Create a HorizontalDatum given a name, datum type code, Ellipsoid, and WGS84ConversionInfo. The WGS84ConversionInfo is optional and may be set to nil. You may also provide the optional parameters specified by the Info interface.


815
816
817
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 815

def create(name, datum_type, ellipsoid, wgs84_parameters, *optional)
  new(name, datum_type, ellipsoid, wgs84_parameters, *optional)
end

Instance Method Details

#wkt_typenameObject


805
806
807
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 805

def wkt_typename
  "DATUM"
end