<?
/*
GPX Altimer
Version: 1.0
Author: David Boardman
URL: http://www.netzfunk.org/?usr=d
Licenced under Creative Commons Attribution-NonCommercial-ShareAlike 2.5
If redistributed in any form, please include credits and a link to http://www.netzfunk.org/?usr=d
*/
//GPX ALTIMETER
include("inc/config.php");
set_time_limit($config['timelimit']);
require_once("cls/cls.gpxAltimeter.php");
require_once('cls/cls.SofeeXmlParser.php');
// VARS
$mapname="altmha4";
$mapwidth=1650;
$mapheight=1100;
$scale=2200;
$xmlfile=$config['mainfolder'].$config['gpxfolder']."/esempioGPX.xml";
$width=2600;
$height=500;
$rapp=20;
// PARSING FILE GPX
$xml = new SofeeXmlParser();
$xml->parseFile($xmlfile);
$tree = $xml->getTree();
unset($xml);
// ISTANZA GPX DRAWER
$alt=new gpxAltimeter($config,$mapname,$tree,$width,$height,$rapp);
// COLLECT DATA
$trkpt=$alt->collectTRKPT();
$alt->collectAltData();
//DRAW ALTIMETER
$alt->drawAltimeter();
?>
|