Conditions | 2 |
Paths | 2 |
Total Lines | 23 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | function display_file($filename) |
||
8 | { |
||
9 | $shp = new ShapeFile(1); |
||
10 | $shp->loadFromFile($filename); |
||
11 | |||
12 | $i = 1; |
||
13 | foreach ($shp->records as $i => $record) { |
||
14 | echo "<pre>"; |
||
15 | echo "Record No. $i:\n\n\n"; |
||
16 | // All the data related to the record |
||
17 | echo "SHP Data = "; |
||
18 | print_r($record->SHPData); |
||
19 | print_r("\n\n\n"); |
||
20 | // All the information related to each record |
||
21 | echo "DBF Data = "; |
||
22 | print_r($record->DBFData); |
||
23 | print_r("\n\n\n"); |
||
24 | echo "</pre>"; |
||
25 | } |
||
26 | |||
27 | echo "The ShapeFile was completely readed.<br />\n"; |
||
28 | echo "Return to the <a href='index.php'>index</a>."; |
||
29 | } |
||
30 |