Sha256: 9f787d4f5ad5f04df696aa56001d96a8f2db1545764777dc82bc8a8ff8ee032c

Contents?: true

Size: 330 Bytes

Versions: 2

Compression:

Stored size: 330 Bytes

Contents

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ffi-gdal-1.0.0.beta5 lib/ext/float_ext.rb
ffi-gdal-1.0.0.beta4 lib/ext/float_ext.rb