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
-
#_wkt_content(open_, close_) ⇒ Object
:nodoc:.
-
#_wkt_typename ⇒ Object
:nodoc:.
-
#initialize(name_, datum_type_, ellipsoid_, wgs84_parameters_, *optional_) ⇒ HorizontalDatum
constructor
:nodoc:.
Methods inherited from Base
#_to_wkt, #eql?, #inspect, #to_s, #to_wkt
Constructor Details
#initialize(name_, datum_type_, ellipsoid_, wgs84_parameters_, *optional_) ⇒ HorizontalDatum
:nodoc:
868 869 870 871 872 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 868 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.
876 877 878 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 876 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.
881 882 883 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 881 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.
903 904 905 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 903 def create(name_, datum_type_, ellipsoid_, wgs84_parameters_, *optional_) new(name_, datum_type_, ellipsoid_, wgs84_parameters_, *optional_) end |
Instance Method Details
#_wkt_content(open_, close_) ⇒ Object
:nodoc:
888 889 890 891 892 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 888 def _wkt_content(open_, close_) # :nodoc: array_ = [@ellipsoid._to_wkt(open_, close_)] array_ << @wgs84_parameters._to_wkt(open_, close_) if @wgs84_parameters array_ end |
#_wkt_typename ⇒ Object
:nodoc:
884 885 886 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 884 def _wkt_typename # :nodoc: "DATUM" end |