Difference between revisions of "Nominatim for Traffic Accident Database"
From stgo
(→Setup of Nominatim VM) |
(→Setup of Nominatim VM) |
||
Line 31: | Line 31: | ||
# optional - set VRDE port: | # optional - set VRDE port: | ||
#* <code>VBoxManage modifyvm nominatim --vrdeport 7761</code> (Note: 3389 is the default port anyway) | #* <code>VBoxManage modifyvm nominatim --vrdeport 7761</code> (Note: 3389 is the default port anyway) | ||
+ | # check all settings with <code>VBoxManage showvminfo nominatim</code> | ||
# start the VM | # start the VM | ||
#: <code>VBoxHeadless -s nominatim --vrde on &</code> | #: <code>VBoxHeadless -s nominatim --vrde on &</code> | ||
Line 39: | Line 40: | ||
#: => solve this by adding ''ServerName nominatim'' as the last line in ''/etc/apache2/apache2.conf'' file | #: => solve this by adding ''ServerName nominatim'' as the last line in ''/etc/apache2/apache2.conf'' file | ||
# shut the VM down to resize the HDD if necessary | # shut the VM down to resize the HDD if necessary | ||
− | # check the HDD size: <code>VBoxManage showhdinfo nominatim.vdi</code> returns: | + | #* check the HDD size: <code>VBoxManage showhdinfo nominatim.vdi</code> returns: |
UUID: e148d758-00ac-4b60-a067-d5c97316069d | UUID: e148d758-00ac-4b60-a067-d5c97316069d | ||
− | Parent UUID: base | + | Parent UUID: base</br> |
State: created | State: created | ||
Type: normal (base) | Type: normal (base) | ||
Line 50: | Line 51: | ||
Size on disk: 6224 MBytes | Size on disk: 6224 MBytes | ||
In use by VMs: nominatim (UUID: be795392-3786-4f3b-9714-a9445f91855d) | In use by VMs: nominatim (UUID: be795392-3786-4f3b-9714-a9445f91855d) | ||
− | + | :* so I resized the disk to 200GB as, according to Nominatim infos the disk size for a full planet is 700GB | |
− | + | :*: <code>VBoxManage modifyhd nominatim.vdi --resize 200000</code> |
Revision as of 11:55, 4 March 2015
>> return Cedeus_IDE
Objective
Develop a script for automated geo-referencing of Chiles transit accident database.
Tools
- Nominatim
- MS-Access / LibreOffice : need to load the MS Access DB from Carabineros de Chile in OpenOffice/LibreOffice: http://askubuntu.com/questions/187389/is-it-possible-to-open-an-access-2010-database-file-without-using-wine-or-virtua/519571#519571
- iPython + Notebook
Installing Nominatim
- Nominatim installation manual: https://wiki.openstreetmap.org/wiki/Nominatim/Installation
Setup of Nominatim VM
- copying basicubunutu1404.vdi file and renaming to nominatim.vdi
- creating the nominatim VM on CedeusDB (ip.18):
-
VBoxManage createvm --name nominatim --ostype Ubuntu_64 --register
-
VBoxManage modifyvm nominatim --memory 4096
-
VBoxManage modifyvm nominatim --cpus 4
-
VBoxManage modifyvm nominatim --nic1 nat
-
VBoxManage storagectl nominatim --name "SATA Controller" --add sata --controller IntelAhci
- assign the (old) disk image a new uuid
-
VBoxManage internalcommands sethduuid nominatim.vdi
-
- attach the (old) disk image:
-
VBoxManage storageattach "nominatim" --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium nominatim.vdi
-
-
VBoxManage storagectl nominatim --name "IDE Controller" --add ide --controller PIIX4
- set the nat rules (ports):
-
VBoxManage modifyvm nominatim --natpf1 "ssh,tcp,,20022,,22"
-
VBoxManage modifyvm nominatim --natpf1 "apache,tcp,,20080,,80"
-
-
- optional - set VRDE port:
-
VBoxManage modifyvm nominatim --vrdeport 7761
(Note: 3389 is the default port anyway)
-
- check all settings with
VBoxManage showvminfo nominatim
- start the VM
-
VBoxHeadless -s nominatim --vrde on &
- the VM will listen on port 7761 - connect with GTKvncViewer to check
- check if ssh connection works
-
- change the computers name in /etc/hosts and /etc/hostname
- restarting Apache gives the error message: "apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 ..."
- => solve this by adding ServerName nominatim as the last line in /etc/apache2/apache2.conf file
- shut the VM down to resize the HDD if necessary
- check the HDD size:
VBoxManage showhdinfo nominatim.vdi
returns:
- check the HDD size:
UUID: e148d758-00ac-4b60-a067-d5c97316069d Parent UUID: base</br> State: created Type: normal (base) Location: /home/ssteinig/nominatim.vdi Storage format: VDI Format variant: dynamic default Capacity: 100000 MBytes Size on disk: 6224 MBytes In use by VMs: nominatim (UUID: be795392-3786-4f3b-9714-a9445f91855d)
- so I resized the disk to 200GB as, according to Nominatim infos the disk size for a full planet is 700GB
-
VBoxManage modifyhd nominatim.vdi --resize 200000
-
- so I resized the disk to 200GB as, according to Nominatim infos the disk size for a full planet is 700GB