Class: Proj::Datum

Inherits:
PjObject show all
Defined in:
lib/proj/datum.rb

Instance Method Summary collapse

Methods inherited from PjObject

#accuracy, #angular_input?, #angular_output?, #area_of_use, #auth, #auth_name, #context, #context=, create, create_from_database, create_from_name, create_from_wkt, #definition, #degree_input?, #degree_output?, #deprecated?, #description, #equivalent_to?, #errno, #errorno, #factors, #geod_distance, #has_inverse?, #id, #id_code, #info, #initialize, #initialize_copy, #lp_distance, #lpz_distance, #name, #non_deprecated, #proj_type, #remarks, #scope, #source_crs, #target_crs, #to_json, #to_proj_string, #to_ptr, #to_s, #to_wkt, #xy_distance, #xyz_distance

Constructor Details

This class inherits a constructor from Proj::PjObject

Instance Method Details

#ellipsoidPjObject

Return the ellipsoid



17
18
19
20
# File 'lib/proj/datum.rb', line 17

def ellipsoid
  ptr = Api.proj_get_ellipsoid(self.context, self)
  self.class.create_object(ptr, self.context)
end

#frame_reference_epochFloat

Returns the frame reference epoch of a dynamic geodetic or vertical reference frame

Returns:

  • (Float)

    The frame reference epoch as decimal year, or -1 in case of error.

See Also:



8
9
10
# File 'lib/proj/datum.rb', line 8

def frame_reference_epoch
  Api.proj_dynamic_datum_get_frame_reference_epoch(self.context, self)
end

#prime_meridianPjObject

Returns the prime meridian



27
28
29
30
# File 'lib/proj/datum.rb', line 27

def prime_meridian
  ptr = Api.proj_get_prime_meridian(self.context, self)
  self.class.create_object(ptr, self.context)
end