forked from kamba4/sunders
added new db-dump
All checks were successful
Build (and tag) Images / build (push) Successful in 2m17s
All checks were successful
Build (and tag) Images / build (push) Successful in 2m17s
This commit is contained in:
parent
4c28ff9b0a
commit
108c40bcf5
5 changed files with 4565191 additions and 117674 deletions
File diff suppressed because it is too large
Load diff
4565185
data_handler/data_init/sunders_6822255.sql
Normal file
4565185
data_handler/data_init/sunders_6822255.sql
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -136,21 +136,18 @@ function endElement ($parser, $name) {
|
|||
$latitude = (int) ($curNodeAttrs['lat'] * 10000000);
|
||||
$longitude = (int) ($curNodeAttrs['lon'] * 10000000);
|
||||
$sql_statement = $sql_statement . "INSERT INTO position (id, latitude, longitude) VALUES ($id, $latitude , $longitude);\n";
|
||||
if (! $insertStmt->execute()) {
|
||||
echo "***** Error : inserting $id ($latitude x $longitude) : ". $insertStmt->error . "\n";
|
||||
}
|
||||
|
||||
|
||||
$k = 'lat';
|
||||
$v = $curNodeAttrs['lat'];
|
||||
$sql_statement = $sql_statement . "INSERT INTO tag (id, k, v) VALUES ($id, '$k', '$v');\n";
|
||||
if (! $insertTagStmt->execute()) {
|
||||
echo "***** Error : inserting latitude $v for $id : ". $insertTagStmt->error . "\n";
|
||||
}
|
||||
|
||||
|
||||
$k = 'lon';
|
||||
$v = $curNodeAttrs['lon'];
|
||||
$sql_statement = $sql_statement . "INSERT INTO tag (id, k, v) VALUES ($id, '$k', '$v');\n";
|
||||
|
||||
|
||||
$k = 'userid';
|
||||
$v = $curNodeAttrs['user'];
|
||||
$sql_statement = $sql_statement . "INSERT INTO tag (id, k, v) VALUES ($id, '$k', '$v');\n";
|
||||
|
|
@ -161,10 +158,10 @@ function endElement ($parser, $name) {
|
|||
$sql_statement = $sql_statement . "INSERT INTO tag (id, k, v) VALUES ($id, '$k', '$v');\n";
|
||||
|
||||
|
||||
|
||||
$k = 'timestamp';
|
||||
$v = $curNodeAttrs['timestamp'];
|
||||
$sql_statement = $sql_statement . "INSERT INTO tag (id, k, v) VALUES ($id, '$k', '$v');\n";
|
||||
|
||||
|
||||
foreach($curNodeTags as $k => $v) {
|
||||
$sql_statement = $sql_statement . "INSERT INTO tag (id, k, v) VALUES ($id, '$k', '$v');\n";
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
ini_set("memory_limit", "400M");
|
||||
// Admin credentials (must have privileges to create DB/users)
|
||||
$dbHost = getenv('MYSQL_HOST');
|
||||
$dbAdmin = getenv('MYSQL_USER');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue