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:



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

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.



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

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.



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

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.



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

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

Instance Method Details

#wkt_typenameObject



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

def wkt_typename
  "DATUM"
end