class Proj::DatumEnsemble
Public Instance Methods
[](index)
click to toggle source
Returns a member from a datum ensemble.
@see proj.org/development/reference/functions.html#c.proj_datum_ensemble_get_member
@param index [Integer] Index of the datum member to extract. Should be between 0 and DatumEnsembel#count - 1.
@return [Integer]
# File lib/proj/datum_ensemble.rb, line 20 def [](index) ptr = Api.proj_datum_ensemble_get_member(self.context, self, index) self.class.create_object(ptr, self.context) end
accuracy()
click to toggle source
Returns the positional accuracy of the datum ensemble
@see proj.org/development/reference/functions.html#c.proj_datum_ensemble_get_accuracy
@return [Float] The data ensemble accuracy or -1 in case of error
# File lib/proj/datum_ensemble.rb, line 30 def accuracy Api.proj_datum_ensemble_get_accuracy(self.context, self) end
count()
click to toggle source
Returns the number of members of a datum ensemble
@see proj.org/development/reference/functions.html#c.proj_datum_ensemble_get_member_count
@return [Integer]
# File lib/proj/datum_ensemble.rb, line 9 def count Api.proj_datum_ensemble_get_member_count(self.context, self) end