Sha256: 336b1768512c01f9a1b7ca4bc9b682ca2a5afe237129d3066c9512b00a3055ab

Contents?: true

Size: 495 Bytes

Versions: 49

Compression:

Stored size: 495 Bytes

Contents

require 'libxml'

100.times do
  doc = XML::Document.new
  doc.encoding = 'UTF-8'

  root = XML::Node.new 'gpx'
  root['version'] = '1.0'
  root['creator'] = 'OpenStreetMap.org'
  root['xmlns'] = "http://www.topografix.com/GPX/1/0/"

  doc.root = root

  track = XML::Node.new 'trk'
  doc.root << track

  trkseg = XML::Node.new 'trkseg'
  track << trkseg

  1.upto(1000) do |n|
    trkpt = XML::Node.new 'trkpt'
    trkpt['lat'] = n.to_s
    trkpt['lon'] = n.to_s
    trkseg << trkpt
  end
end

Version data entries

49 entries across 49 versions & 7 rubygems

Version Path
libxml-ruby-0.9.1-x86-mswin32-60 test/ets_gpx.rb
libxml-ruby-0.9.2 test/ets_gpx.rb
libxml-ruby-0.9.0-x86-mswin32-60 test/ets_gpx.rb
libxml-ruby-0.9.0 test/ets_gpx.rb
libxml-ruby-0.8.3-x86-mswin32-60 test/ets_gpx.rb
libxml-ruby-0.9.1 test/ets_gpx.rb
libxml-ruby-0.9.5 test/ets_gpx.rb
libxml-ruby-0.9.4-x86-mswin32-60 test/ets_gpx.rb
libxml-ruby-0.9.3 test/ets_gpx.rb
libxml-ruby-0.9.6 test/ets_gpx.rb
libxml-ruby-0.9.6-x86-mswin32-60 test/ets_gpx.rb
libxml-ruby-0.9.4 test/ets_gpx.rb
libxml-ruby-0.9.5-x86-mswin32-60 test/ets_gpx.rb
libxml-ruby-0.9.7-x86-mswin32-60 test/ets_gpx.rb
libxml-ruby-0.9.7 test/ets_gpx.rb
libxml-ruby-1.0.0-x86-mswin32-60 test/ets_gpx.rb
libxml-ruby-0.9.8 test/ets_gpx.rb
libxml-ruby-0.9.8-x86-mswin32-60 test/ets_gpx.rb
libxml-ruby-0.9.9 test/ets_gpx.rb
libxml-ruby-0.9.9-x86-mswin32-60 test/ets_gpx.rb