Login   Register  
PHP Classes
elePHPant
Icontem

File: gpxAltimeter.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2006-11-09 12:48
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();
?>