More rdoc tweaks.
parent
37886363be
commit
39d1d89aad
14
README.rdoc
14
README.rdoc
|
@ -18,15 +18,15 @@ etc).
|
||||||
== Examples
|
== Examples
|
||||||
|
|
||||||
Reading a GPX file, and cropping its contents to a given area:
|
Reading a GPX file, and cropping its contents to a given area:
|
||||||
<tt>gpx = GPX::GPXFile.new(:gpx_file => filename) # Read GPX file</tt>
|
gpx = GPX::GPXFile.new(:gpx_file => filename) # Read GPX file
|
||||||
<tt>bounds = GPX::Bounds.new(params) # Create a rectangular area to crop</tt>
|
bounds = GPX::Bounds.new(params) # Create a rectangular area to crop
|
||||||
<tt>gpx.crop(bounds) # Crop it</tt>
|
gpx.crop(bounds) # Crop it
|
||||||
<tt>gpx.write(filename) # Save it</tt>
|
gpx.write(filename) # Save it
|
||||||
|
|
||||||
Converting a Magellan track log to GPX:
|
Converting a Magellan track log to GPX:
|
||||||
<tt>if GPX::MagellanTrackLog::is_magellan_file?(filename)</tt>
|
if GPX::MagellanTrackLog::is_magellan_file?(filename)
|
||||||
<tt> GPX::MagellanTrackLog::convert_to_gpx(filename, "#{filename}.gpx")</tt>
|
GPX::MagellanTrackLog::convert_to_gpx(filename, "#{filename}.gpx")
|
||||||
<tt>end</tt>
|
end
|
||||||
|
|
||||||
|
|
||||||
== Notes
|
== Notes
|
||||||
|
|
Loading…
Reference in New Issue