class GPXKML::GpxKml

Public Class Methods

gpx?(gpx) click to toggle source
# File lib/gpx_kml.rb, line 27
def self.gpx?(gpx)
  gpx.is_a?(GPX::Gpx) && gpx.gpx?
end
gpx_to_kml(gpx, destination_path) click to toggle source
# File lib/gpx_kml.rb, line 15
def self.gpx_to_kml(gpx, destination_path)
  CONVERTER::Converter.gpx_to_kml(gpx, destination_path)
end
kml?(kml) click to toggle source
# File lib/gpx_kml.rb, line 23
def self.kml?(kml)
  kml.is_a?(KML::Kml) && kml.kml?
end
kml_to_gpx(kml, destination_path) click to toggle source
# File lib/gpx_kml.rb, line 19
def self.kml_to_gpx(kml, destination_path)
  CONVERTER::Converter.kml_to_gpx(kml, destination_path)
end
new_gpx(file_path) click to toggle source
# File lib/gpx_kml.rb, line 35
def self.new_gpx(file_path)
  GPX::Gpx.new(file_path)
end
new_kml(file_path) click to toggle source
# File lib/gpx_kml.rb, line 31
def self.new_kml(file_path)
  KML::Kml.new(file_path)
end