Changeset 7692 for trunk/src/index.php


Ignore:
Timestamp:
Apr 7, 2010, 12:24:40 PM (15 years ago)
Author:
Pieter Naber
Message:

Fixed KML output, it's now valid. Added ID's to the placemarkers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/index.php

    r7661 r7692  
    3131$kml->addPlacemark($kmlPlacemark1);
    3232$kml->addPlacemark($kmlPlacemark2);
    33 echo $kml->toString();
    34 
    35 echo "\r\n\r\n\r\n\r\n\r\n -------------------------------------------------- \r\n\r\n\r\n\r\n\r\n";
     33/*
     34 * For testing, echo the example KML file
     35 * echo $kml->toString();
     36 * echo "\r\n\r\n\r\n\r\n\r\n -------------------------------------------------- \r\n\r\n\r\n\r\n\r\n";
     37 */
    3638
    3739// Now let's try reading from files and parsing the data in the files.
     
    4244$nodeLocation = new FileHandler($config['node_location_file']);
    4345$kmlFile->parseLocationFile($nodeLocation->getFile());
    44 echo $kmlFile->toString();
    45 
    46 echo "\r\n\r\n\r\n\r\n\r\n -------------------------------------------------- \r\n\r\n\r\n\r\n\r\n";
     46/*
     47 * For testing, echo the example KML file
     48 * echo $kmlFile->toString();
     49 * echo "\r\n\r\n\r\n\r\n\r\n -------------------------------------------------- \r\n\r\n\r\n\r\n\r\n";
     50 */
    4751
    4852// Let's try to read the node status file
     
    5054$kmlFile->parseStatusFile($nodeStatus->getFile());
    5155echo $kmlFile->toString();
    52 /*
    53  * TODO: Needs better parsing of the file now we have two seperate
    54  * files for the location and the status of the nodes
    55  */
    5656?>
Note: See TracChangeset for help on using the changeset viewer.