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:



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

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.



795
796
797
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 795

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.



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

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.



812
813
814
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 812

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

Instance Method Details

#wkt_typenameObject



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

def wkt_typename
  "DATUM"
end