Changeset 7642 for trunk/src/index.php


Ignore:
Timestamp:
Apr 1, 2010, 8:26:53 AM (15 years ago)
Author:
Pieter Naber
Message:

Application reads the node location file and the node status file and creates a KML file!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/index.php

    r7640 r7642  
    1212$kmlPlacemark1 = new KMLPlacemark();
    1313$kmlPlacemark1->setName('Test name');
    14 $kmlPlacemark1->setDescription('Test description');
     14$kmlPlacemark1->setDescriptionLocation('Test location description');
     15$kmlPlacemark1->setDescriptionStatus('Test status description');
    1516$kmlPlacemark1->setLatitude(52.138476);
    1617$kmlPlacemark1->setLongitude(4.463046);
     
    2021$kmlPlacemark2 = new KMLPlacemark();
    2122$kmlPlacemark2->setName('Placemark 2 name');
    22 $kmlPlacemark2->setDescription('This is the second placemark description');
     23$kmlPlacemark2->setDescriptionLocation('This is the second placemark location description');
     24$kmlPlacemark2->setDescriptionStatus('This is the second placemark status description');
    2325$kmlPlacemark2->setLatitude(52.638476);
    2426$kmlPlacemark2->setLongitude(4.063046);
     
    3133echo $kml->toString();
    3234
     35echo "\r\n\r\n\r\n\r\n\r\n -------------------------------------------------- \r\n\r\n\r\n\r\n\r\n";
     36
    3337// Now let's try reading from files and parsing the data in the files.
    3438// First off, we create a new KMLFile object
     
    4044echo $kmlFile->toString();
    4145
     46echo "\r\n\r\n\r\n\r\n\r\n -------------------------------------------------- \r\n\r\n\r\n\r\n\r\n";
     47
    4248// Let's try to read the node status file
    4349$nodeStatus = new FileHandler($config['node_status_file']);
    4450$kmlFile->parseStatusFile($nodeStatus->getFile());
     51echo $kmlFile->toString();
    4552/*
    4653 * TODO: Needs better parsing of the file now we have two seperate
Note: See TracChangeset for help on using the changeset viewer.