Changeset 7640 for trunk/src/index.php


Ignore:
Timestamp:
Mar 31, 2010, 10:46:12 PM (15 years ago)
Author:
Pieter Naber
Message:

KMLFile can read from the node location file provided. It parses the file into nodes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/index.php

    r7639 r7640  
    3131echo $kml->toString();
    3232
     33// Now let's try reading from files and parsing the data in the files.
     34// First off, we create a new KMLFile object
     35$kmlFile = new KMLFile();
     36
    3337// Let's try to read the node location file
    3438$nodeLocation = new FileHandler($config['node_location_file']);
    35 // TODO: Needs parsing
     39$kmlFile->parseLocationFile($nodeLocation->getFile());
     40echo $kmlFile->toString();
    3641
    3742// Let's try to read the node status file
    3843$nodeStatus = new FileHandler($config['node_status_file']);
    39 $kmlFile = KMLFile::parseFile($nodeStatus->getFile());
     44$kmlFile->parseStatusFile($nodeStatus->getFile());
    4045/*
    4146 * TODO: Needs better parsing of the file now we have two seperate
Note: See TracChangeset for help on using the changeset viewer.