Class: RGeo::CoordSys::CS::WGS84ConversionInfo
- Defined in:
- lib/rgeo/coord_sys/cs/entities.rb
Overview
OGC spec description
Parameters for a geographic transformation into WGS84. The Bursa Wolf parameters should be applied to geocentric coordinates, where the X axis points towards the Greenwich Prime Meridian, the Y axis points East, and the Z axis points North.
Instance Attribute Summary collapse
-
#dx ⇒ Object
readonly
Bursa Wolf shift in meters.
-
#dy ⇒ Object
readonly
Bursa Wolf shift in meters.
-
#dz ⇒ Object
readonly
Bursa Wolf shift in meters.
-
#ex ⇒ Object
readonly
Bursa Wolf rotation in arc seconds.
-
#ey ⇒ Object
readonly
Bursa Wolf rotation in arc seconds.
-
#ez ⇒ Object
readonly
Bursa Wolf rotation in arc seconds.
-
#ppm ⇒ Object
readonly
Bursa Wolf scaling in in parts per million.
Class Method Summary collapse
-
.create(dx_, dy_, dz_, ex_, ey_, ez_, ppm_) ⇒ Object
Create the horizontal datum shift transformation into WGS84, given the seven Bursa Wolf parameters.
Instance Method Summary collapse
-
#_to_wkt(open_, close_) ⇒ Object
:nodoc:.
-
#initialize(dx_, dy_, dz_, ex_, ey_, ez_, ppm_) ⇒ WGS84ConversionInfo
constructor
:nodoc:.
Methods inherited from Base
#encode_with, #eql?, #hash, #init_with, #inspect, #marshal_dump, #marshal_load, #to_s, #to_wkt
Constructor Details
#initialize(dx_, dy_, dz_, ex_, ey_, ez_, ppm_) ⇒ WGS84ConversionInfo
:nodoc:
332 333 334 335 336 337 338 339 340 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 332 def initialize(dx_, dy_, dz_, ex_, ey_, ez_, ppm_) # :nodoc: @dx = dx_.to_f @dy = dy_.to_f @dz = dz_.to_f @ex = ex_.to_f @ey = ey_.to_f @ez = ez_.to_f @ppm = ppm_.to_f end |
Instance Attribute Details
#dx ⇒ Object (readonly)
Bursa Wolf shift in meters.
343 344 345 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 343 def dx @dx end |
#dy ⇒ Object (readonly)
Bursa Wolf shift in meters.
346 347 348 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 346 def dy @dy end |
#dz ⇒ Object (readonly)
Bursa Wolf shift in meters.
349 350 351 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 349 def dz @dz end |
#ex ⇒ Object (readonly)
Bursa Wolf rotation in arc seconds.
352 353 354 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 352 def ex @ex end |
#ey ⇒ Object (readonly)
Bursa Wolf rotation in arc seconds.
355 356 357 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 355 def ey @ey end |
#ez ⇒ Object (readonly)
Bursa Wolf rotation in arc seconds.
358 359 360 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 358 def ez @ez end |
#ppm ⇒ Object (readonly)
Bursa Wolf scaling in in parts per million.
361 362 363 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 361 def ppm @ppm end |
Class Method Details
.create(dx_, dy_, dz_, ex_, ey_, ez_, ppm_) ⇒ Object
Create the horizontal datum shift transformation into WGS84, given the seven Bursa Wolf parameters. The Bursa Wolf shift should be in meters, the rotation in arc seconds, and the scaling in parts per million.
373 374 375 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 373 def create(dx_, dy_, dz_, ex_, ey_, ez_, ppm_) new(dx_, dy_, dz_, ex_, ey_, ez_, ppm_) end |
Instance Method Details
#_to_wkt(open_, close_) ⇒ Object
:nodoc:
363 364 365 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 363 def _to_wkt(open_, close_) # :nodoc: "TOWGS84#{open_}#{@dx},#{@dy},#{@dz},#{@ex},#{@ey},#{@ez},#{@ppm}#{close_}" end |