PHP Classes

File: gpxAltimeter.php

Recommend this page to a friend!
  Classes of david boardman   GPX Mapper & CMS   gpxAltimeter.php   Download  
File: gpxAltimeter.php
Role: Example script
Content type: text/plain
Description: gpxAltimer class callback
Class: GPX Mapper & CMS
Save maps GPX location files from coordinates
Author: By
Last change:
Date: 17 years ago
Size: 954 bytes
 

Contents

Class file image Download
<?

/*
    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();
?>