Class: RGeo::CoordSys::CS::HorizontalDatum
- 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
-
#ellipsoid ⇒ Object
readonly
Returns the Ellipsoid.
-
#wgs84_parameters ⇒ Object
readonly
Gets preferred parameters for a Bursa Wolf transformation into WGS84.
Attributes inherited from Datum
Attributes inherited from Info
#abbreviation, #alias, #authority, #authority_code, #name, #remarks
Class Method Summary collapse
-
.create(name, datum_type, ellipsoid, wgs84_parameters, *optional) ⇒ Object
Create a HorizontalDatum given a name, datum type code, Ellipsoid, and WGS84ConversionInfo.
Instance Method Summary collapse
-
#initialize(name, datum_type, ellipsoid, wgs84_parameters, *optional) ⇒ HorizontalDatum
constructor
:nodoc:.
- #wkt_typename ⇒ Object
Methods inherited from Info
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
#ellipsoid ⇒ Object (readonly)
Returns the Ellipsoid.
799 800 801 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 799 def ellipsoid @ellipsoid end |
#wgs84_parameters ⇒ Object (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_typename ⇒ Object
806 807 808 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 806 def wkt_typename "DATUM" end |