Changeset 7642 for trunk/src/index.php
- Timestamp:
- Apr 1, 2010, 8:26:53 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/index.php
r7640 r7642 12 12 $kmlPlacemark1 = new KMLPlacemark(); 13 13 $kmlPlacemark1->setName('Test name'); 14 $kmlPlacemark1->setDescription('Test description'); 14 $kmlPlacemark1->setDescriptionLocation('Test location description'); 15 $kmlPlacemark1->setDescriptionStatus('Test status description'); 15 16 $kmlPlacemark1->setLatitude(52.138476); 16 17 $kmlPlacemark1->setLongitude(4.463046); … … 20 21 $kmlPlacemark2 = new KMLPlacemark(); 21 22 $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'); 23 25 $kmlPlacemark2->setLatitude(52.638476); 24 26 $kmlPlacemark2->setLongitude(4.063046); … … 31 33 echo $kml->toString(); 32 34 35 echo "\r\n\r\n\r\n\r\n\r\n -------------------------------------------------- \r\n\r\n\r\n\r\n\r\n"; 36 33 37 // Now let's try reading from files and parsing the data in the files. 34 38 // First off, we create a new KMLFile object … … 40 44 echo $kmlFile->toString(); 41 45 46 echo "\r\n\r\n\r\n\r\n\r\n -------------------------------------------------- \r\n\r\n\r\n\r\n\r\n"; 47 42 48 // Let's try to read the node status file 43 49 $nodeStatus = new FileHandler($config['node_status_file']); 44 50 $kmlFile->parseStatusFile($nodeStatus->getFile()); 51 echo $kmlFile->toString(); 45 52 /* 46 53 * TODO: Needs better parsing of the file now we have two seperate
Note:
See TracChangeset
for help on using the changeset viewer.