forked from vpcom/unhcr2hxl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
48 lines (40 loc) · 1.6 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
// PHP 5.2.9 minimum
include_once('inc/init.php');
$log = new Logging();
$log->file($logETL);
?>
<h1>ETL for the 2012 UNHCR Mali Emergency data dump</h1>
<h2>Description</h2>
The ETL works with the data dump as a source of data but also uses a translation table to convert the location into Affected People Location (hxl:APL) or Populated places (hxl:PopulatedPlace).<br />
The first step lies in the creation of missing location so that the population count can be located.<br />
Then the ETL will create te description of populations and connect it to places.<br />
<br />
Scripts help to remove a container or all the containers about an emergency, Please, note that you can check first what you want to delete before validating the form.<br />
<h2>ETL</h2>
<a href="locationCreator.php" >Location creator</a>. Creates locations according the translation table if they don't already exist. Update the settlement pcodes table with known pcodes manually first.<br />
<br />
<a href="etl.php" >Complete ETL</a>. Analyses the data and then proposes several steps to store the data.<br />
<br />
<h2>Delete</h2>
<a href="deleteAContainer.php" >Delete a container</a>.<br />
<br />
<a href="deleteAllContainersFromEmergency.php" >Delete ALL containers about an emergency</a>.<br />
<br />
<h2>Misc</h2>
<a href="printPcodeTable.php" >Display the settlement pcode table</a>.<br />
<br />
<a href="edit" >Edit the pcodes of the pcode table</a>.<br />
<br />
<br />
<br />
<br />
<br />
<?php
if (!function_exists('curl_init'))
{
$log->write("CURL is not installed!");
$log->close();
die('CURL is not installed!');
}
?>