Sha256: ca093b37efdc565c7fe023457a450c85ee17c588a02c88b5effc4a2981e445b6

Contents?: true

Size: 342 Bytes

Versions: 2

Compression:

Stored size: 342 Bytes

Contents

class Float
  # Converts a packed DMS value (DDDMMMSSS.SS) into decimal degrees.
  #
  # @return [Float]
  def to_decimal_degrees
    FFI::GDAL::GDAL.GDALPackedDMSToDec(self)
  end

  # Converts decimal degrees int a packed DMS value (DDDMMMSSS.SS).
  #
  # @return [Float]
  def to_dms
    FFI::GDAL::GDAL.GDALDecToPackedDMS(self)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ffi-gdal-1.0.0.beta7 lib/ext/float_ext.rb
ffi-gdal-1.0.0.beta6 lib/ext/float_ext.rb