<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mentaer</id>
		<title>stgo - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mentaer"/>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Special:Contributions/Mentaer"/>
		<updated>2026-04-09T16:18:22Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.22.7</generator>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Accessing_server_infra</id>
		<title>Accessing server infra</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Accessing_server_infra"/>
				<updated>2014-05-13T20:20:42Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* unix commands */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== apt-get ==&lt;br /&gt;
an intro can be found [http://newbiedoc.sourceforge.net/tutorials/apt-get-intro/info.html here]&lt;br /&gt;
* see what is installed &amp;lt;code&amp;gt;dpkg -l&amp;lt;/code&amp;gt;&lt;br /&gt;
* info on a  particular package &amp;lt;code&amp;gt;apt-cache show PackageName&amp;lt;/code&amp;gt;&lt;br /&gt;
* upgrade &amp;lt;code&amp;gt;apt-get upgrade PackageName&amp;lt;/code&amp;gt; or: &amp;lt;code&amp;gt;sudo apt-get install libssl1.0.0&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== git stuff ==&lt;br /&gt;
*git diff&lt;br /&gt;
*git pull&lt;br /&gt;
*git status&lt;br /&gt;
*git reset --hard HEAD&lt;br /&gt;
*git reset HEAD~1&lt;br /&gt;
*git reset HEAD opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/analyst/IsoChrone.java&lt;br /&gt;
*git log -p&lt;br /&gt;
*git add opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/analyst/IsoChrone.java&lt;br /&gt;
*git commit -m 'added debug code to be able to figure why some edges are traversed to fast (aside fromom u-shaped roads)'&lt;br /&gt;
*gitk&lt;br /&gt;
*git push origin master&lt;br /&gt;
*git show-ref&lt;br /&gt;
*git stash list&lt;br /&gt;
*git log origin/master..master&lt;br /&gt;
*git fetch upstream&lt;br /&gt;
*git remote add upstream https://github.com/openplans/OpenTripPlanner.git&lt;br /&gt;
*git remote show origin&lt;br /&gt;
*git remote set-url origin git://github.com/mentaer/OpenTripPlanner.git&lt;br /&gt;
*git remote set-url origin git@github.com:mentaer/OpenTripPlanner.git&lt;br /&gt;
*git diff &amp;gt; /Volumes/WINDOOF/walkingslopeeffects.patch&lt;br /&gt;
*patch -p1 -R &amp;lt; IsoChrone2.patch&lt;br /&gt;
*git apply --check /Volumes/WINDOOF/IsoChrone.patch&lt;br /&gt;
&lt;br /&gt;
== maven stuff ==&lt;br /&gt;
*mvn package -DskipTests&lt;br /&gt;
&lt;br /&gt;
== postgres stuff ==&lt;br /&gt;
&lt;br /&gt;
*echo 'export PATH=/Library/PostgreSQL/9.2/bin:$PATH' &amp;gt;&amp;gt; ~/.bash_profile&lt;br /&gt;
&lt;br /&gt;
*psql&lt;br /&gt;
*sudo mkdir /Library/PostgreSQL/9.2/data/&lt;br /&gt;
*sudo chown postgres /Library/PostgreSQL/9.2/data/&lt;br /&gt;
*sudo -u postgres initdb -D /Library/PostgreSQL/9.2/data/&lt;br /&gt;
*service postgresql start&lt;br /&gt;
*sudo -u postgres pg_ctl -D /Library/PostgreSQL/9.2/data -l logfile start&lt;br /&gt;
*sudo -u postgres postgres -D /Library/PostgreSQL/9.2/data &amp;amp;&lt;br /&gt;
*sudo -u postgres createdb santiagotest&lt;br /&gt;
*sudo -u postgres createuser -P -s -e mentaer&lt;br /&gt;
*psql santiagotest&lt;br /&gt;
&lt;br /&gt;
== using VirtualBox ==&lt;br /&gt;
&amp;quot; use ''ssh -X sstein..@xxx'' to enable a visual client&lt;br /&gt;
* vboxgtk (start visual client)&lt;br /&gt;
&lt;br /&gt;
create and start a VM from comandline:&lt;br /&gt;
* &amp;lt;code&amp;gt;VBoxManage createvm --name ubuntu --register&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;VBoxManage modifyvm ubuntu --ostype ubuntu_64 --cpus 4&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;VBoxManage modifyvm ubuntu --memory 8000&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;VBoxManage startvm ubuntu&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
other:&lt;br /&gt;
* options of ip-addressing/web access: NAT (Network Address Translation) or Bridge (see also this [http://catlingmindswipe.blogspot.com/2012/06/how-to-virtualbox-networking-part-two.html blog entry]) &lt;br /&gt;
* downloading .iso archives/vm from OSGeo (use commands ''curl'' or ''wget -c''), e.g.:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget -c &amp;quot;http://downloads.sourceforge.net/project/osgeo-live/7.0/osgeo-live-7.0.iso?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fosgeo-live%2Ffiles%2F%2F7.0%2Fosgeo-live-7.0.iso%2Fdownload&amp;amp;ts=1384444616&amp;amp;use_mirror=ufpr&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* showing list of running VMs: &amp;lt;code&amp;gt;VBoxManage list runningvms&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
a VM contains 3 files: .img + .vbox (an editable xml) + .vbox-prev&lt;br /&gt;
&lt;br /&gt;
== OpenTripPlanner ==&lt;br /&gt;
* start with &amp;quot;sh start-server.sh&amp;quot;; use &amp;quot;&amp;amp;&amp;quot; at the end to keep the process running&lt;br /&gt;
* make sure that winstone.jar is executable, with chmod 755&lt;br /&gt;
* define in the start-server.sh file also where the webapps folder is located (physical location), so winstone knows that&lt;br /&gt;
* define in the WEB-INF/classes/data-sources.xml file where the graph is stored (physical location) - the files is within /otp/webapps/opentripplanner-api-webapp.war (or: the deflated war folder)&lt;br /&gt;
* kill winstone server (or OTP) process: use &amp;lt;pre&amp;gt;ps aux | grep winstone&amp;lt;/pre&amp;gt; to find the associated PID, and use &amp;lt;code&amp;gt;kill pid&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== unix commands ==&lt;br /&gt;
http://www.computerhope.com/issues/ch000623.htm&lt;br /&gt;
&lt;br /&gt;
connect to server:&lt;br /&gt;
*ssh stefan@136.159.xxx.xxx&lt;br /&gt;
*ssh sstein@146.155.xxx.xxx.&lt;br /&gt;
*pid&lt;br /&gt;
* (sudo) kill pid, e.g. kill 320&lt;br /&gt;
*top or: htop&lt;br /&gt;
*process&lt;br /&gt;
* &amp;quot;sudo shutdown now -h&amp;quot; or &amp;quot;sudo reboot&amp;quot;&lt;br /&gt;
* seeing system info: &amp;lt;code&amp;gt;cat /etc/*-release&amp;lt;/code&amp;gt; + htop (needs to be installed first)&lt;br /&gt;
* '''grep''': search for files in the folder ''/var/.../static/'' that contain the string ''nav-pills'' with: &amp;lt;code&amp;gt;grep -r -i &amp;quot;nav-pills&amp;quot; /var/www/geonode/static/&amp;lt;/code&amp;gt;&lt;br /&gt;
* find files/folders by name: &amp;lt;code&amp;gt;find / -name game&amp;lt;/code&amp;gt;&lt;br /&gt;
and:&lt;br /&gt;
*commands to display/figure out processes: http://www.howtogeek.com/107217/&lt;br /&gt;
*kill process: http://www.cyberciti.biz/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems/&lt;br /&gt;
*configuration info: http://www.cyberciti.biz/faq/linux-command-to-find-the-system-configuration-and-hardware-information/&lt;br /&gt;
*use of ''grep'': http://www.cyberciti.biz/faq/howto-use-grep-command-in-linux-unix/&lt;br /&gt;
*used ports: &amp;lt;code&amp;gt;netstat -a&amp;lt;/code&amp;gt;&lt;br /&gt;
*mac addresses: &amp;lt;code&amp;gt;ifconfig -a&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installing lightweight XFCE Desktop GUI on Ubuntu Server ==&lt;br /&gt;
* use &amp;lt;code&amp;gt;sudo apt-get install xubuntu-desktop&amp;lt;/code&amp;gt; to install XFCE client (see [http://help.ubuntu.com/community/ServerGUI here]).&lt;br /&gt;
* this will also install xauth, which allows remote window clients&lt;br /&gt;
* disable start of GUI-based login on system startup with Grub (taken from [http://askubuntu.com/questions/174312/how-can-i-set-my-ubuntu-12-04-lts-to-boot-to-console-without-gui here]):&lt;br /&gt;
** Change (edit) in /etc/default/grub file: &amp;lt;code&amp;gt;GRUB_CMDLINE_LINUX_DEFAULT=&amp;quot;text&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
** then do &amp;lt;code&amp;gt;sudo update-grub&amp;lt;/code&amp;gt;&lt;br /&gt;
* start the desktop GUI session using &amp;lt;code&amp;gt;startx&amp;lt;/code&amp;gt;&lt;br /&gt;
* end the desktop GUI session using &amp;quot;logout&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
== Enabling Remote Desktop for Windows ==&lt;br /&gt;
got the info from [http://www.ubuntututorials.com/remote-desktop-ubuntu-12-04-windows-7/ here]&lt;br /&gt;
* install XRDP: &amp;lt;code&amp;gt;sudo apt-get install xrdp&amp;lt;/code&amp;gt;&lt;br /&gt;
* connect via Windows Remote Desktop using the IP etc. &lt;br /&gt;
* if not needed, switch off the remote desktop server using: &amp;lt;code&amp;gt;sudo service xrdp stop&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== other stuff ==&lt;br /&gt;
* gdalinfo cgydem_fromgrid.tif&lt;br /&gt;
* if computer crashs: boot from a LiveDVD and the run &amp;lt;code&amp;gt;fsck&amp;lt;/code&amp;gt; (see http://www.thegeekstuff.com/2012/08/fsck-command-examples/)&lt;br /&gt;
* '''compress''': &lt;br /&gt;
** files by using: &amp;lt;code&amp;gt;zip newzipfile.zip fileToZip.obj&amp;lt;/code&amp;gt;&lt;br /&gt;
** whole folders by using: &amp;lt;code&amp;gt;tar -cvzf tarfilename.tgz /folder/to/compress&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''uncompress''':&lt;br /&gt;
** zip files, using: &amp;lt;code&amp;gt;unzip filename.zip&amp;lt;/code&amp;gt;, &lt;br /&gt;
** bz2 files with: &amp;lt;code&amp;gt;bunzip2 filename.bz2&amp;lt;/code&amp;gt;&lt;br /&gt;
** tar files: &amp;lt;code&amp;gt;tar -C / -xvzf tarfilename.tgz&amp;lt;/code&amp;gt; . ''Attention !!!'' This will restore the data exactly in the same place on the computer, and overwrite existing folders and files.&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_osgeo_vm</id>
		<title>Setting up osgeo vm</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_osgeo_vm"/>
				<updated>2014-05-07T18:06:07Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Further VMs that I am running */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return [[Cedeus IDE]] &lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== Setup of an OSGeo Virtual Machine with VirtualBox ==&lt;br /&gt;
&lt;br /&gt;
Setting up a [http://live.osgeo.org/es/ OSGeo VirtualBox-VM] on Lautaro with SuseLinux - but using command line (because creating the VM via the graphical interface ''vboxgtk'' did not work properly).&lt;br /&gt;
The general documentation was taken from here: http://stdioe.blogspot.com/2012/01/creating-virtual-machine-with.html&lt;br /&gt;
&lt;br /&gt;
'''Steps''': &lt;br /&gt;
# install virtualbox on server/computer (done by Daniel, needs admin rights of course)&lt;br /&gt;
# download the iso with the OS, for ubuntu (= not OSGeo live): &amp;lt;pre&amp;gt;curl -L -O  http://releases.ubuntu.com/12.04.3/ubuntu-12.04.3-server-i386.iso &amp;gt; ubuntu12043server.iso&amp;lt;/pre&amp;gt;&lt;br /&gt;
# create a VM based on Ubuntu: &amp;lt;pre&amp;gt;VBoxManage createvm --name osgeo  --ostype Ubuntu --register&amp;lt;/pre&amp;gt;&lt;br /&gt;
# check it is there: &amp;lt;pre&amp;gt;VBoxManage showvminfo osgeo&amp;lt;/pre&amp;gt;&lt;br /&gt;
# set the memory/ram: &amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --memory 8192&amp;lt;/pre&amp;gt; (which is 8GB)&lt;br /&gt;
# check the memory/ram: &amp;lt;pre&amp;gt;VBoxManage showvminfo osgeo | grep &amp;quot;Memory size&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
# set the number of cpu's to use (here 4): &amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --cpus 4&amp;lt;/pre&amp;gt;&lt;br /&gt;
# set the network connection/routing &amp;lt;br/&amp;gt;nat: like behind a firewall, access from host, e.g. PostgisVM - vs. - bridge: want to be visible from outside, using my own IP, e.g. GeoNodeVM &amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --nic1 nat&amp;lt;/pre&amp;gt; Here we use 'nat'-ing instead of a bridge. For a bridge we have to use unstead: first this command: &amp;lt;code&amp;gt;VBoxManage modifyvm osgeo --bridgeadapter1 eth0&amp;lt;/code&amp;gt; and then, this command: &amp;lt;code&amp;gt;VBoxManage modifyvm osgeo --nic1 bridged&amp;lt;/code&amp;gt;.&lt;br /&gt;
# create a harddisk of 100GB size:&amp;lt;pre&amp;gt;VBoxManage createhd --filename osgeo.vdi --size 100000&amp;lt;/pre&amp;gt;&lt;br /&gt;
# define the VM's disk controller:&amp;lt;pre&amp;gt;VBoxManage storagectl osgeo --name &amp;quot;SATA Controller&amp;quot; --add sata --controller IntelAhci&amp;lt;/pre&amp;gt;&lt;br /&gt;
# mount the disk:&amp;lt;pre&amp;gt;VBoxManage storageattach &amp;quot;osgeo&amp;quot; --storagectl &amp;quot;SATA Controller&amp;quot; --port 0 --device 0 --type hdd --medium osgeo.vdi&amp;lt;/pre&amp;gt;&lt;br /&gt;
# check if everything is there:&amp;lt;pre&amp;gt;VBoxManage showvminfo osgeo&amp;lt;/pre&amp;gt;&lt;br /&gt;
# add DVD device:&amp;lt;pre&amp;gt;VBoxManage storagectl osgeo --name &amp;quot;IDE Controller&amp;quot; --add ide --controller PIIX4&amp;lt;/pre&amp;gt;&lt;br /&gt;
# load the DVD device with the Ubuntu VM/osgeo ''iso'' file (check if the iso has proper rights, i.e. maybe do a chmod 775):&amp;lt;pre&amp;gt;VBoxManage storageattach osgeo --storagectl &amp;quot;IDE Controller&amp;quot; --port 1 --device 0 --type dvddrive --medium yyy/osgeolive7.iso &amp;lt;/pre&amp;gt;&lt;br /&gt;
# starting VM &amp;lt;pre&amp;gt;VBoxHeadless -s osgeo -n -m 7777 &amp;amp; &amp;lt;/pre&amp;gt; The -s is for start, 7777 defines the port for conecting with VNC, and the &amp;amp; is for keeping the VM running when I disconnect from the server. Headless actually means, that we have no monitor...&lt;br /&gt;
# don't forget to install VNC Viewer (e.g. [http://www.realvnc.com/ RealVNC]), and then connect via the defined port - to &amp;quot;146.155.xx.xxx:7777&amp;quot;&lt;br /&gt;
# ... do a real install of the osgeo VM, etc.&lt;br /&gt;
#  install ssh server &amp;lt;pre&amp;gt;sudo apt-get install openssh-server&amp;lt;/pre&amp;gt;&lt;br /&gt;
# how to do a mapping for ssh (&amp;amp; ftp), so that the guest VM can be reached from the host machine is described here: http://blogs.oracle.com/rmanus/entry/virtualbox_how_to_ftp_from  &amp;lt;br&amp;gt;In particular one has to do the following: &amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --natpf1 &amp;quot;ssh,tcp,,2222,,22&amp;quot;&amp;lt;/pre&amp;gt;These entries are then added to osgeo.vbox xml file. For ftp the port would be 21 instead of 22. To enable Apache, do the same but use: config folder &amp;quot;apache&amp;quot;, HostPort &amp;quot;8888&amp;quot;, GuestPort &amp;quot;80&amp;quot;, Protocol &amp;quot;TCP&amp;quot;, e.g. (as one line): &amp;lt;pre&amp;gt; VBoxManage modifyvm osgeo --natpf1 &amp;quot;apache,tcp,,8888,,80&amp;quot;&amp;lt;/pre&amp;gt; and for Tomcat: &amp;lt;pre&amp;gt; VBoxManage modifyvm osgeo --natpf1 &amp;quot;tomcat,tcp,,8889,,8080&amp;quot;&amp;lt;/pre&amp;gt;  &lt;br /&gt;
#* Note, if a &amp;quot;Error: failed to start machine. Error message: Configuration error: Failed to get the &amp;quot;MAC&amp;quot; value (VERR_CFGM_VALUE_NOT_FOUND)&amp;quot; appears, then it may be necessary to change the network adapter to PCnet-FAST III (Am79C973), according to this [http://room2blog.wordpress.com/2010/10/04/setting-up-post-forwarding-for-virtual-box-on-ubuntu-10-04/ Blog entry]&lt;br /&gt;
# check here on how to detach the medium use: &amp;lt;pre&amp;gt;VBoxManage storageattach osgeo --storagectl &amp;quot;IDE Controller&amp;quot; --port 1 --device 0 --type dvddrive --medium none&amp;lt;/pre&amp;gt;&lt;br /&gt;
# shutting down the vm per vboxmanage : &amp;lt;pre&amp;gt;VBoxManage controlvm &amp;lt;uuid&amp;gt;|&amp;lt;name&amp;gt; pause|resume|reset|poweroff|savestate|acpipowerbutton|acpisleepbutton&amp;lt;/pre&amp;gt;&lt;br /&gt;
# tomcat 6 can be found in /usr/share/tomcat6/bin. However, the start/stop command is simply: &amp;lt;pre&amp;gt;sudo service tomcat6 start&amp;lt;/pre&amp;gt; Check out: [http://hendrelouw73.wordpress.com/2012/06/06/how-to-install-apache-tomcat-6-0-35-on-ubuntu-12-04-linux/ Blog: How to instal Tomcat 6 on Ubuntu 12.04]. Also, don't forget to create users for the manager interface (see [http://www.mkyong.com/tomcat/tomcat-default-administrator-password/ this Blog post]). Finally, the right amount of memory can be assigned in the file ''/etc/tomcat6/tomcat6.conf''. However, I did not had this file. So I created a new file setenv.sh in ''/usr/share/tomcat6/bin'' via &amp;lt;pre&amp;gt;sudo touch setenv.sh&amp;lt;/pre&amp;gt; and then edited it adding the following lines: &amp;lt;pre&amp;gt;#!/bin/sh &amp;amp;#10;JAVA_OPTS=&amp;quot;-Xms512m -Xmx4g -XX:MaxPermSize=270m -server -Djava.awt.headless=true -Djava.util.prefs.systemRoot=$CATALINA_HOME/content/thredds/javaUtilPrefs&amp;quot; &amp;amp;#10;export JAVA_OPTS&amp;lt;/pre&amp;gt;Then I stopped and re-started tomcat. The above method also worked with Tomcat7.&lt;br /&gt;
# displaying catalina output: &amp;lt;pre&amp;gt;cd /var/lib/tomcat6&amp;lt;/pre&amp;gt;&amp;lt;pre&amp;gt;tail -f logs/catalina.out&amp;lt;/pre&amp;gt;&lt;br /&gt;
# activate remote desktop for VBox:&amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --vrde on&amp;lt;/pre&amp;gt;&amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --vrdemulticon on&amp;lt;/pre&amp;gt;and define the port number&amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --vrdeport XXXX&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Other Notes ==&lt;br /&gt;
&lt;br /&gt;
=== '''Install &amp;amp; updates''' ===&lt;br /&gt;
When Installing Ubuntu server, I got actually problems with the update sever, and had to switch to main. For that I used:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/apt/sources.list&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then locate &amp;lt;code&amp;gt;http://cl.archive.ubuntu.com/ubuntu&amp;lt;/code&amp;gt; and replace it with &amp;lt;code&amp;gt;http://archive.ubuntu.com/ubuntu&amp;lt;/code&amp;gt;.&amp;lt;br/&amp;gt;&lt;br /&gt;
Afterwards, installing htop with &amp;lt;code&amp;gt;sudo apt-get install htop&amp;lt;/code&amp;gt; worked as well, why it did not work before.&lt;br /&gt;
&lt;br /&gt;
=== '''Installing a GUI''' ===&lt;br /&gt;
Installing a (optional) GUI for Ubuntu is described here: http://www.maketecheasier.com/use-a-gui-on-a-ubuntu-server/&amp;lt;br/&amp;gt;&lt;br /&gt;
See also my notes on the [[accessing server infra]] page.&lt;br /&gt;
&lt;br /&gt;
=== '''Changing Vbox mac address''' ===&lt;br /&gt;
use &amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --macaddress1 08002783b21e&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After that my eth0 disappeared and stayed without internet connection! I got it back by deleting: ''/etc/udev/rules.d/70-persistent-net.rules'' and rebooting. This tip came from [https://forums.virtualbox.org/viewtopic.php?f=7&amp;amp;t=43090 here].&lt;br /&gt;
&lt;br /&gt;
Next I had to set the IP manually, using command line. How to do this via command line is described [http://www.cyberciti.biz/tips/howto-ubuntu-linux-convert-dhcp-network-configuration-to-static-ip-configuration.html here]&lt;br /&gt;
&lt;br /&gt;
=== '''Changing the max upload size of wars for Tomcat 7''' ===&lt;br /&gt;
&lt;br /&gt;
use &amp;lt;pre&amp;gt;/usr/share/tomcat7-admin/manager/WEB-INF$ sudo nano web.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
and change the max file setting. (Note, the  ''tomcat7-admin'' package needs to be installed first).&lt;br /&gt;
&lt;br /&gt;
More info on installing tomcat: http://help.ubuntu.com/13.04/serverguide/tomcat.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== '''Copying a VDI (Harddisk) file to attach it to another VM''' ===&lt;br /&gt;
&lt;br /&gt;
If a vdi is copied and/or renamed, and then should be attached to a different VM one needs to assign a new UUID, otherwise the following message appears:&lt;br /&gt;
&amp;lt;pre&amp;gt;VBoxManage: error: Cannot register the hard disk '/home/sstein/backuppostgis.vdi' {60886f08-fedb-49dc-aec0-a1a9ae54a43b} because a hard disk '/home/sstein/backupgeonode.vdi' with UUID {60886f08-fedb-49dc-aec0-a1a9ae54a43b} already exists [...]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In my case I wanted to create a new VM (backuppostgis) without installing ubuntu again.&lt;br /&gt;
&lt;br /&gt;
To assign a new UUID use: &amp;lt;code&amp;gt;VBoxManage internalcommands sethduuid backuppostgis.vdi&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note, that re-using a harddisk/vdi with another/new VM means, that the network connection of the VM will not work, as we have a new network card. To solve this see above (comment out the now two network card adapters in ''/etc/udev/rules.d/70-persistent-net.rules'' and do a reboot).&lt;br /&gt;
&lt;br /&gt;
The computers name can be change by editing ''/etc/hostname''. Still, on &amp;quot;sudo&amp;quot; may appear: &amp;quot;unable to resolve host xxx&amp;quot;. This indicates that the hostname should be changed as well in ''/etc/hosts''.&lt;br /&gt;
&lt;br /&gt;
== Fast setup of VM from existing VM disk tarball ==&lt;br /&gt;
I have a tarball of a VM disk with a fresh Ubuntu Server install (the tar file is called &amp;quot;vmBackupGeoNodeDisk.tgz&amp;quot;). This can serve to setup fairly fast a new Ubuntu based VM.&lt;br /&gt;
* untar the disk tarball with Ubuntu installed &amp;lt;code&amp;gt;tar -C /home/sstein/untar -xvzf /home/sstein/vmbackup/vmBackupGeoNodeDisk.tgz&amp;lt;/code&amp;gt;&lt;br /&gt;
* copy and rename VM disk file to folder with other disk files: &amp;lt;code&amp;gt;mv untar/home/sstein/backupgeonode.vdi /home/sstein/wypwps.vdi&amp;lt;/code&amp;gt;&lt;br /&gt;
* assign a new serial ID to the disk so it can be used by the new VM: &amp;lt;code&amp;gt;VBoxManage internalcommands sethduuid wypwps.vdi &amp;lt;/code&amp;gt;&lt;br /&gt;
* create new VM: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
VBoxManage createvm --name wyp  --ostype Ubuntu --register&lt;br /&gt;
VBoxManage modifyvm wyp --memory 4096&lt;br /&gt;
VBoxManage modifyvm wyp --cpus 4&lt;br /&gt;
VBoxManage modifyvm wyp --nic1 nat&lt;br /&gt;
VBoxManage storagectl wyp --name &amp;quot;SATA Controller&amp;quot; --add sata --controller IntelAhci&lt;br /&gt;
VBoxManage storageattach &amp;quot;wyp&amp;quot; --storagectl &amp;quot;SATA Controller&amp;quot; --port 0 --device 0 --type hdd --medium wypwps.vdi&lt;br /&gt;
VBoxManage modifyvm wyp --natpf1 &amp;quot;ssh,tcp,,17022,,22&amp;quot;&lt;br /&gt;
VBoxManage modifyvm wyp --natpf1 &amp;quot;apache,tcp,,17080,,80&amp;quot;&lt;br /&gt;
VBoxManage modifyvm wyp --natpf1 &amp;quot;tomcat7,tcp,,17088,,8080&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* start the VM: &amp;lt;code&amp;gt;VBoxHeadless -s wyp -n -m 7773 &amp;amp;&amp;lt;/code&amp;gt;&lt;br /&gt;
* login with usual name (ss-) and password (2*-*s) &lt;br /&gt;
* note, the VM has a bit weird keyboard setting. So I haven't figured where / etc is - which makes navigation difficult. So, connecting via ssh, after solving the problem below, is best.&lt;br /&gt;
* fix network connection problem by commenting out the two network card adapters in ''/etc/udev/rules.d/70-persistent-net.rules'' and do a reboots in&lt;br /&gt;
&lt;br /&gt;
== Further VMs that I am running ==&lt;br /&gt;
* VBoxHeadless -s geonode -n -m 7779 &amp;amp; =&amp;gt; bridged (with own IP)&lt;br /&gt;
* VBoxHeadless -s postgis -n -m 7778 &amp;amp; =&amp;gt; nat (9022, 9080)&lt;br /&gt;
* VBoxHeadless -s backupgeonode -n -m 7776 &amp;amp; =&amp;gt; nat (14022, 14080) : powered down&lt;br /&gt;
* VBoxHeadless -s backuppostgis -n -m 7775 &amp;amp; =&amp;gt; nat (15022, 15080) : powered down&lt;br /&gt;
* VBoxHeadless -s tilestream -n -m 7774 &amp;amp; =&amp;gt; nat (16022, 16080) : should be running - with TileStream PID 4672 on port 16088&lt;br /&gt;
* VBoxHeadless -s wyp -n -m 7773 &amp;amp; =&amp;gt; nat (17022, 17080) : should be running&lt;br /&gt;
* osgeo VM should be powered down, as it was only for testing&lt;br /&gt;
* check running VMs using: &amp;lt;code&amp;gt;VBoxManage list runningvms&amp;lt;/code&amp;gt;&lt;br /&gt;
* existing VMs using: &amp;lt;code&amp;gt;VBoxManage list vms&amp;lt;/code&amp;gt;&lt;br /&gt;
* stopping an unresponsive VM: &amp;lt;code&amp;gt;VBoxManage controlvm VMNAME poweroff&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_osgeo_vm</id>
		<title>Setting up osgeo vm</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_osgeo_vm"/>
				<updated>2014-05-07T17:54:29Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Further VMs that I am running */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return [[Cedeus IDE]] &lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== Setup of an OSGeo Virtual Machine with VirtualBox ==&lt;br /&gt;
&lt;br /&gt;
Setting up a [http://live.osgeo.org/es/ OSGeo VirtualBox-VM] on Lautaro with SuseLinux - but using command line (because creating the VM via the graphical interface ''vboxgtk'' did not work properly).&lt;br /&gt;
The general documentation was taken from here: http://stdioe.blogspot.com/2012/01/creating-virtual-machine-with.html&lt;br /&gt;
&lt;br /&gt;
'''Steps''': &lt;br /&gt;
# install virtualbox on server/computer (done by Daniel, needs admin rights of course)&lt;br /&gt;
# download the iso with the OS, for ubuntu (= not OSGeo live): &amp;lt;pre&amp;gt;curl -L -O  http://releases.ubuntu.com/12.04.3/ubuntu-12.04.3-server-i386.iso &amp;gt; ubuntu12043server.iso&amp;lt;/pre&amp;gt;&lt;br /&gt;
# create a VM based on Ubuntu: &amp;lt;pre&amp;gt;VBoxManage createvm --name osgeo  --ostype Ubuntu --register&amp;lt;/pre&amp;gt;&lt;br /&gt;
# check it is there: &amp;lt;pre&amp;gt;VBoxManage showvminfo osgeo&amp;lt;/pre&amp;gt;&lt;br /&gt;
# set the memory/ram: &amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --memory 8192&amp;lt;/pre&amp;gt; (which is 8GB)&lt;br /&gt;
# check the memory/ram: &amp;lt;pre&amp;gt;VBoxManage showvminfo osgeo | grep &amp;quot;Memory size&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
# set the number of cpu's to use (here 4): &amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --cpus 4&amp;lt;/pre&amp;gt;&lt;br /&gt;
# set the network connection/routing &amp;lt;br/&amp;gt;nat: like behind a firewall, access from host, e.g. PostgisVM - vs. - bridge: want to be visible from outside, using my own IP, e.g. GeoNodeVM &amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --nic1 nat&amp;lt;/pre&amp;gt; Here we use 'nat'-ing instead of a bridge. For a bridge we have to use unstead: first this command: &amp;lt;code&amp;gt;VBoxManage modifyvm osgeo --bridgeadapter1 eth0&amp;lt;/code&amp;gt; and then, this command: &amp;lt;code&amp;gt;VBoxManage modifyvm osgeo --nic1 bridged&amp;lt;/code&amp;gt;.&lt;br /&gt;
# create a harddisk of 100GB size:&amp;lt;pre&amp;gt;VBoxManage createhd --filename osgeo.vdi --size 100000&amp;lt;/pre&amp;gt;&lt;br /&gt;
# define the VM's disk controller:&amp;lt;pre&amp;gt;VBoxManage storagectl osgeo --name &amp;quot;SATA Controller&amp;quot; --add sata --controller IntelAhci&amp;lt;/pre&amp;gt;&lt;br /&gt;
# mount the disk:&amp;lt;pre&amp;gt;VBoxManage storageattach &amp;quot;osgeo&amp;quot; --storagectl &amp;quot;SATA Controller&amp;quot; --port 0 --device 0 --type hdd --medium osgeo.vdi&amp;lt;/pre&amp;gt;&lt;br /&gt;
# check if everything is there:&amp;lt;pre&amp;gt;VBoxManage showvminfo osgeo&amp;lt;/pre&amp;gt;&lt;br /&gt;
# add DVD device:&amp;lt;pre&amp;gt;VBoxManage storagectl osgeo --name &amp;quot;IDE Controller&amp;quot; --add ide --controller PIIX4&amp;lt;/pre&amp;gt;&lt;br /&gt;
# load the DVD device with the Ubuntu VM/osgeo ''iso'' file (check if the iso has proper rights, i.e. maybe do a chmod 775):&amp;lt;pre&amp;gt;VBoxManage storageattach osgeo --storagectl &amp;quot;IDE Controller&amp;quot; --port 1 --device 0 --type dvddrive --medium yyy/osgeolive7.iso &amp;lt;/pre&amp;gt;&lt;br /&gt;
# starting VM &amp;lt;pre&amp;gt;VBoxHeadless -s osgeo -n -m 7777 &amp;amp; &amp;lt;/pre&amp;gt; The -s is for start, 7777 defines the port for conecting with VNC, and the &amp;amp; is for keeping the VM running when I disconnect from the server. Headless actually means, that we have no monitor...&lt;br /&gt;
# don't forget to install VNC Viewer (e.g. [http://www.realvnc.com/ RealVNC]), and then connect via the defined port - to &amp;quot;146.155.xx.xxx:7777&amp;quot;&lt;br /&gt;
# ... do a real install of the osgeo VM, etc.&lt;br /&gt;
#  install ssh server &amp;lt;pre&amp;gt;sudo apt-get install openssh-server&amp;lt;/pre&amp;gt;&lt;br /&gt;
# how to do a mapping for ssh (&amp;amp; ftp), so that the guest VM can be reached from the host machine is described here: http://blogs.oracle.com/rmanus/entry/virtualbox_how_to_ftp_from  &amp;lt;br&amp;gt;In particular one has to do the following: &amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --natpf1 &amp;quot;ssh,tcp,,2222,,22&amp;quot;&amp;lt;/pre&amp;gt;These entries are then added to osgeo.vbox xml file. For ftp the port would be 21 instead of 22. To enable Apache, do the same but use: config folder &amp;quot;apache&amp;quot;, HostPort &amp;quot;8888&amp;quot;, GuestPort &amp;quot;80&amp;quot;, Protocol &amp;quot;TCP&amp;quot;, e.g. (as one line): &amp;lt;pre&amp;gt; VBoxManage modifyvm osgeo --natpf1 &amp;quot;apache,tcp,,8888,,80&amp;quot;&amp;lt;/pre&amp;gt; and for Tomcat: &amp;lt;pre&amp;gt; VBoxManage modifyvm osgeo --natpf1 &amp;quot;tomcat,tcp,,8889,,8080&amp;quot;&amp;lt;/pre&amp;gt;  &lt;br /&gt;
#* Note, if a &amp;quot;Error: failed to start machine. Error message: Configuration error: Failed to get the &amp;quot;MAC&amp;quot; value (VERR_CFGM_VALUE_NOT_FOUND)&amp;quot; appears, then it may be necessary to change the network adapter to PCnet-FAST III (Am79C973), according to this [http://room2blog.wordpress.com/2010/10/04/setting-up-post-forwarding-for-virtual-box-on-ubuntu-10-04/ Blog entry]&lt;br /&gt;
# check here on how to detach the medium use: &amp;lt;pre&amp;gt;VBoxManage storageattach osgeo --storagectl &amp;quot;IDE Controller&amp;quot; --port 1 --device 0 --type dvddrive --medium none&amp;lt;/pre&amp;gt;&lt;br /&gt;
# shutting down the vm per vboxmanage : &amp;lt;pre&amp;gt;VBoxManage controlvm &amp;lt;uuid&amp;gt;|&amp;lt;name&amp;gt; pause|resume|reset|poweroff|savestate|acpipowerbutton|acpisleepbutton&amp;lt;/pre&amp;gt;&lt;br /&gt;
# tomcat 6 can be found in /usr/share/tomcat6/bin. However, the start/stop command is simply: &amp;lt;pre&amp;gt;sudo service tomcat6 start&amp;lt;/pre&amp;gt; Check out: [http://hendrelouw73.wordpress.com/2012/06/06/how-to-install-apache-tomcat-6-0-35-on-ubuntu-12-04-linux/ Blog: How to instal Tomcat 6 on Ubuntu 12.04]. Also, don't forget to create users for the manager interface (see [http://www.mkyong.com/tomcat/tomcat-default-administrator-password/ this Blog post]). Finally, the right amount of memory can be assigned in the file ''/etc/tomcat6/tomcat6.conf''. However, I did not had this file. So I created a new file setenv.sh in ''/usr/share/tomcat6/bin'' via &amp;lt;pre&amp;gt;sudo touch setenv.sh&amp;lt;/pre&amp;gt; and then edited it adding the following lines: &amp;lt;pre&amp;gt;#!/bin/sh &amp;amp;#10;JAVA_OPTS=&amp;quot;-Xms512m -Xmx4g -XX:MaxPermSize=270m -server -Djava.awt.headless=true -Djava.util.prefs.systemRoot=$CATALINA_HOME/content/thredds/javaUtilPrefs&amp;quot; &amp;amp;#10;export JAVA_OPTS&amp;lt;/pre&amp;gt;Then I stopped and re-started tomcat. The above method also worked with Tomcat7.&lt;br /&gt;
# displaying catalina output: &amp;lt;pre&amp;gt;cd /var/lib/tomcat6&amp;lt;/pre&amp;gt;&amp;lt;pre&amp;gt;tail -f logs/catalina.out&amp;lt;/pre&amp;gt;&lt;br /&gt;
# activate remote desktop for VBox:&amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --vrde on&amp;lt;/pre&amp;gt;&amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --vrdemulticon on&amp;lt;/pre&amp;gt;and define the port number&amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --vrdeport XXXX&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Other Notes ==&lt;br /&gt;
&lt;br /&gt;
=== '''Install &amp;amp; updates''' ===&lt;br /&gt;
When Installing Ubuntu server, I got actually problems with the update sever, and had to switch to main. For that I used:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/apt/sources.list&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then locate &amp;lt;code&amp;gt;http://cl.archive.ubuntu.com/ubuntu&amp;lt;/code&amp;gt; and replace it with &amp;lt;code&amp;gt;http://archive.ubuntu.com/ubuntu&amp;lt;/code&amp;gt;.&amp;lt;br/&amp;gt;&lt;br /&gt;
Afterwards, installing htop with &amp;lt;code&amp;gt;sudo apt-get install htop&amp;lt;/code&amp;gt; worked as well, why it did not work before.&lt;br /&gt;
&lt;br /&gt;
=== '''Installing a GUI''' ===&lt;br /&gt;
Installing a (optional) GUI for Ubuntu is described here: http://www.maketecheasier.com/use-a-gui-on-a-ubuntu-server/&amp;lt;br/&amp;gt;&lt;br /&gt;
See also my notes on the [[accessing server infra]] page.&lt;br /&gt;
&lt;br /&gt;
=== '''Changing Vbox mac address''' ===&lt;br /&gt;
use &amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --macaddress1 08002783b21e&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After that my eth0 disappeared and stayed without internet connection! I got it back by deleting: ''/etc/udev/rules.d/70-persistent-net.rules'' and rebooting. This tip came from [https://forums.virtualbox.org/viewtopic.php?f=7&amp;amp;t=43090 here].&lt;br /&gt;
&lt;br /&gt;
Next I had to set the IP manually, using command line. How to do this via command line is described [http://www.cyberciti.biz/tips/howto-ubuntu-linux-convert-dhcp-network-configuration-to-static-ip-configuration.html here]&lt;br /&gt;
&lt;br /&gt;
=== '''Changing the max upload size of wars for Tomcat 7''' ===&lt;br /&gt;
&lt;br /&gt;
use &amp;lt;pre&amp;gt;/usr/share/tomcat7-admin/manager/WEB-INF$ sudo nano web.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
and change the max file setting. (Note, the  ''tomcat7-admin'' package needs to be installed first).&lt;br /&gt;
&lt;br /&gt;
More info on installing tomcat: http://help.ubuntu.com/13.04/serverguide/tomcat.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== '''Copying a VDI (Harddisk) file to attach it to another VM''' ===&lt;br /&gt;
&lt;br /&gt;
If a vdi is copied and/or renamed, and then should be attached to a different VM one needs to assign a new UUID, otherwise the following message appears:&lt;br /&gt;
&amp;lt;pre&amp;gt;VBoxManage: error: Cannot register the hard disk '/home/sstein/backuppostgis.vdi' {60886f08-fedb-49dc-aec0-a1a9ae54a43b} because a hard disk '/home/sstein/backupgeonode.vdi' with UUID {60886f08-fedb-49dc-aec0-a1a9ae54a43b} already exists [...]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In my case I wanted to create a new VM (backuppostgis) without installing ubuntu again.&lt;br /&gt;
&lt;br /&gt;
To assign a new UUID use: &amp;lt;code&amp;gt;VBoxManage internalcommands sethduuid backuppostgis.vdi&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note, that re-using a harddisk/vdi with another/new VM means, that the network connection of the VM will not work, as we have a new network card. To solve this see above (comment out the now two network card adapters in ''/etc/udev/rules.d/70-persistent-net.rules'' and do a reboot).&lt;br /&gt;
&lt;br /&gt;
The computers name can be change by editing ''/etc/hostname''. Still, on &amp;quot;sudo&amp;quot; may appear: &amp;quot;unable to resolve host xxx&amp;quot;. This indicates that the hostname should be changed as well in ''/etc/hosts''.&lt;br /&gt;
&lt;br /&gt;
== Fast setup of VM from existing VM disk tarball ==&lt;br /&gt;
I have a tarball of a VM disk with a fresh Ubuntu Server install (the tar file is called &amp;quot;vmBackupGeoNodeDisk.tgz&amp;quot;). This can serve to setup fairly fast a new Ubuntu based VM.&lt;br /&gt;
* untar the disk tarball with Ubuntu installed &amp;lt;code&amp;gt;tar -C /home/sstein/untar -xvzf /home/sstein/vmbackup/vmBackupGeoNodeDisk.tgz&amp;lt;/code&amp;gt;&lt;br /&gt;
* copy and rename VM disk file to folder with other disk files: &amp;lt;code&amp;gt;mv untar/home/sstein/backupgeonode.vdi /home/sstein/wypwps.vdi&amp;lt;/code&amp;gt;&lt;br /&gt;
* assign a new serial ID to the disk so it can be used by the new VM: &amp;lt;code&amp;gt;VBoxManage internalcommands sethduuid wypwps.vdi &amp;lt;/code&amp;gt;&lt;br /&gt;
* create new VM: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
VBoxManage createvm --name wyp  --ostype Ubuntu --register&lt;br /&gt;
VBoxManage modifyvm wyp --memory 4096&lt;br /&gt;
VBoxManage modifyvm wyp --cpus 4&lt;br /&gt;
VBoxManage modifyvm wyp --nic1 nat&lt;br /&gt;
VBoxManage storagectl wyp --name &amp;quot;SATA Controller&amp;quot; --add sata --controller IntelAhci&lt;br /&gt;
VBoxManage storageattach &amp;quot;wyp&amp;quot; --storagectl &amp;quot;SATA Controller&amp;quot; --port 0 --device 0 --type hdd --medium wypwps.vdi&lt;br /&gt;
VBoxManage modifyvm wyp --natpf1 &amp;quot;ssh,tcp,,17022,,22&amp;quot;&lt;br /&gt;
VBoxManage modifyvm wyp --natpf1 &amp;quot;apache,tcp,,17080,,80&amp;quot;&lt;br /&gt;
VBoxManage modifyvm wyp --natpf1 &amp;quot;tomcat7,tcp,,17088,,8080&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* start the VM: &amp;lt;code&amp;gt;VBoxHeadless -s wyp -n -m 7773 &amp;amp;&amp;lt;/code&amp;gt;&lt;br /&gt;
* login with usual name (ss-) and password (2*-*s) &lt;br /&gt;
* note, the VM has a bit weird keyboard setting. So I haven't figured where / etc is - which makes navigation difficult. So, connecting via ssh, after solving the problem below, is best.&lt;br /&gt;
* fix network connection problem by commenting out the two network card adapters in ''/etc/udev/rules.d/70-persistent-net.rules'' and do a reboots in&lt;br /&gt;
&lt;br /&gt;
== Further VMs that I am running ==&lt;br /&gt;
* VBoxHeadless -s geonode -n -m 7779 &amp;amp; =&amp;gt; bridged (with own IP)&lt;br /&gt;
* VBoxHeadless -s postgis -n -m 7778 &amp;amp; =&amp;gt; nat (9022, 9080)&lt;br /&gt;
* VBoxHeadless -s backupgeonode -n -m 7776 &amp;amp; =&amp;gt; nat (14022, 14080) : powered down&lt;br /&gt;
* VBoxHeadless -s backuppostgis -n -m 7775 &amp;amp; =&amp;gt; nat (15022, 15080) : powered down&lt;br /&gt;
* VBoxHeadless -s tilestream -n -m 7774 &amp;amp; =&amp;gt; nat (16022, 16080) : should be running - with TileStream PID 4672 on port 16088&lt;br /&gt;
* VBoxHeadless -s wyp -n -m 7773 &amp;amp; =&amp;gt; nat (17022, 17080) : should be running&lt;br /&gt;
* osgeo VM should be powered down, as it was only for testing&lt;br /&gt;
* check running VMs using: &amp;lt;code&amp;gt;VBoxManage list runningvms&amp;lt;/code&amp;gt;&lt;br /&gt;
* existing VMs using: &amp;lt;code&amp;gt;VBoxManage list vms&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_osgeo_vm</id>
		<title>Setting up osgeo vm</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_osgeo_vm"/>
				<updated>2014-05-07T17:50:25Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Further VMs that I am running */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return [[Cedeus IDE]] &lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== Setup of an OSGeo Virtual Machine with VirtualBox ==&lt;br /&gt;
&lt;br /&gt;
Setting up a [http://live.osgeo.org/es/ OSGeo VirtualBox-VM] on Lautaro with SuseLinux - but using command line (because creating the VM via the graphical interface ''vboxgtk'' did not work properly).&lt;br /&gt;
The general documentation was taken from here: http://stdioe.blogspot.com/2012/01/creating-virtual-machine-with.html&lt;br /&gt;
&lt;br /&gt;
'''Steps''': &lt;br /&gt;
# install virtualbox on server/computer (done by Daniel, needs admin rights of course)&lt;br /&gt;
# download the iso with the OS, for ubuntu (= not OSGeo live): &amp;lt;pre&amp;gt;curl -L -O  http://releases.ubuntu.com/12.04.3/ubuntu-12.04.3-server-i386.iso &amp;gt; ubuntu12043server.iso&amp;lt;/pre&amp;gt;&lt;br /&gt;
# create a VM based on Ubuntu: &amp;lt;pre&amp;gt;VBoxManage createvm --name osgeo  --ostype Ubuntu --register&amp;lt;/pre&amp;gt;&lt;br /&gt;
# check it is there: &amp;lt;pre&amp;gt;VBoxManage showvminfo osgeo&amp;lt;/pre&amp;gt;&lt;br /&gt;
# set the memory/ram: &amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --memory 8192&amp;lt;/pre&amp;gt; (which is 8GB)&lt;br /&gt;
# check the memory/ram: &amp;lt;pre&amp;gt;VBoxManage showvminfo osgeo | grep &amp;quot;Memory size&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
# set the number of cpu's to use (here 4): &amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --cpus 4&amp;lt;/pre&amp;gt;&lt;br /&gt;
# set the network connection/routing &amp;lt;br/&amp;gt;nat: like behind a firewall, access from host, e.g. PostgisVM - vs. - bridge: want to be visible from outside, using my own IP, e.g. GeoNodeVM &amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --nic1 nat&amp;lt;/pre&amp;gt; Here we use 'nat'-ing instead of a bridge. For a bridge we have to use unstead: first this command: &amp;lt;code&amp;gt;VBoxManage modifyvm osgeo --bridgeadapter1 eth0&amp;lt;/code&amp;gt; and then, this command: &amp;lt;code&amp;gt;VBoxManage modifyvm osgeo --nic1 bridged&amp;lt;/code&amp;gt;.&lt;br /&gt;
# create a harddisk of 100GB size:&amp;lt;pre&amp;gt;VBoxManage createhd --filename osgeo.vdi --size 100000&amp;lt;/pre&amp;gt;&lt;br /&gt;
# define the VM's disk controller:&amp;lt;pre&amp;gt;VBoxManage storagectl osgeo --name &amp;quot;SATA Controller&amp;quot; --add sata --controller IntelAhci&amp;lt;/pre&amp;gt;&lt;br /&gt;
# mount the disk:&amp;lt;pre&amp;gt;VBoxManage storageattach &amp;quot;osgeo&amp;quot; --storagectl &amp;quot;SATA Controller&amp;quot; --port 0 --device 0 --type hdd --medium osgeo.vdi&amp;lt;/pre&amp;gt;&lt;br /&gt;
# check if everything is there:&amp;lt;pre&amp;gt;VBoxManage showvminfo osgeo&amp;lt;/pre&amp;gt;&lt;br /&gt;
# add DVD device:&amp;lt;pre&amp;gt;VBoxManage storagectl osgeo --name &amp;quot;IDE Controller&amp;quot; --add ide --controller PIIX4&amp;lt;/pre&amp;gt;&lt;br /&gt;
# load the DVD device with the Ubuntu VM/osgeo ''iso'' file (check if the iso has proper rights, i.e. maybe do a chmod 775):&amp;lt;pre&amp;gt;VBoxManage storageattach osgeo --storagectl &amp;quot;IDE Controller&amp;quot; --port 1 --device 0 --type dvddrive --medium yyy/osgeolive7.iso &amp;lt;/pre&amp;gt;&lt;br /&gt;
# starting VM &amp;lt;pre&amp;gt;VBoxHeadless -s osgeo -n -m 7777 &amp;amp; &amp;lt;/pre&amp;gt; The -s is for start, 7777 defines the port for conecting with VNC, and the &amp;amp; is for keeping the VM running when I disconnect from the server. Headless actually means, that we have no monitor...&lt;br /&gt;
# don't forget to install VNC Viewer (e.g. [http://www.realvnc.com/ RealVNC]), and then connect via the defined port - to &amp;quot;146.155.xx.xxx:7777&amp;quot;&lt;br /&gt;
# ... do a real install of the osgeo VM, etc.&lt;br /&gt;
#  install ssh server &amp;lt;pre&amp;gt;sudo apt-get install openssh-server&amp;lt;/pre&amp;gt;&lt;br /&gt;
# how to do a mapping for ssh (&amp;amp; ftp), so that the guest VM can be reached from the host machine is described here: http://blogs.oracle.com/rmanus/entry/virtualbox_how_to_ftp_from  &amp;lt;br&amp;gt;In particular one has to do the following: &amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --natpf1 &amp;quot;ssh,tcp,,2222,,22&amp;quot;&amp;lt;/pre&amp;gt;These entries are then added to osgeo.vbox xml file. For ftp the port would be 21 instead of 22. To enable Apache, do the same but use: config folder &amp;quot;apache&amp;quot;, HostPort &amp;quot;8888&amp;quot;, GuestPort &amp;quot;80&amp;quot;, Protocol &amp;quot;TCP&amp;quot;, e.g. (as one line): &amp;lt;pre&amp;gt; VBoxManage modifyvm osgeo --natpf1 &amp;quot;apache,tcp,,8888,,80&amp;quot;&amp;lt;/pre&amp;gt; and for Tomcat: &amp;lt;pre&amp;gt; VBoxManage modifyvm osgeo --natpf1 &amp;quot;tomcat,tcp,,8889,,8080&amp;quot;&amp;lt;/pre&amp;gt;  &lt;br /&gt;
#* Note, if a &amp;quot;Error: failed to start machine. Error message: Configuration error: Failed to get the &amp;quot;MAC&amp;quot; value (VERR_CFGM_VALUE_NOT_FOUND)&amp;quot; appears, then it may be necessary to change the network adapter to PCnet-FAST III (Am79C973), according to this [http://room2blog.wordpress.com/2010/10/04/setting-up-post-forwarding-for-virtual-box-on-ubuntu-10-04/ Blog entry]&lt;br /&gt;
# check here on how to detach the medium use: &amp;lt;pre&amp;gt;VBoxManage storageattach osgeo --storagectl &amp;quot;IDE Controller&amp;quot; --port 1 --device 0 --type dvddrive --medium none&amp;lt;/pre&amp;gt;&lt;br /&gt;
# shutting down the vm per vboxmanage : &amp;lt;pre&amp;gt;VBoxManage controlvm &amp;lt;uuid&amp;gt;|&amp;lt;name&amp;gt; pause|resume|reset|poweroff|savestate|acpipowerbutton|acpisleepbutton&amp;lt;/pre&amp;gt;&lt;br /&gt;
# tomcat 6 can be found in /usr/share/tomcat6/bin. However, the start/stop command is simply: &amp;lt;pre&amp;gt;sudo service tomcat6 start&amp;lt;/pre&amp;gt; Check out: [http://hendrelouw73.wordpress.com/2012/06/06/how-to-install-apache-tomcat-6-0-35-on-ubuntu-12-04-linux/ Blog: How to instal Tomcat 6 on Ubuntu 12.04]. Also, don't forget to create users for the manager interface (see [http://www.mkyong.com/tomcat/tomcat-default-administrator-password/ this Blog post]). Finally, the right amount of memory can be assigned in the file ''/etc/tomcat6/tomcat6.conf''. However, I did not had this file. So I created a new file setenv.sh in ''/usr/share/tomcat6/bin'' via &amp;lt;pre&amp;gt;sudo touch setenv.sh&amp;lt;/pre&amp;gt; and then edited it adding the following lines: &amp;lt;pre&amp;gt;#!/bin/sh &amp;amp;#10;JAVA_OPTS=&amp;quot;-Xms512m -Xmx4g -XX:MaxPermSize=270m -server -Djava.awt.headless=true -Djava.util.prefs.systemRoot=$CATALINA_HOME/content/thredds/javaUtilPrefs&amp;quot; &amp;amp;#10;export JAVA_OPTS&amp;lt;/pre&amp;gt;Then I stopped and re-started tomcat. The above method also worked with Tomcat7.&lt;br /&gt;
# displaying catalina output: &amp;lt;pre&amp;gt;cd /var/lib/tomcat6&amp;lt;/pre&amp;gt;&amp;lt;pre&amp;gt;tail -f logs/catalina.out&amp;lt;/pre&amp;gt;&lt;br /&gt;
# activate remote desktop for VBox:&amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --vrde on&amp;lt;/pre&amp;gt;&amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --vrdemulticon on&amp;lt;/pre&amp;gt;and define the port number&amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --vrdeport XXXX&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Other Notes ==&lt;br /&gt;
&lt;br /&gt;
=== '''Install &amp;amp; updates''' ===&lt;br /&gt;
When Installing Ubuntu server, I got actually problems with the update sever, and had to switch to main. For that I used:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/apt/sources.list&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then locate &amp;lt;code&amp;gt;http://cl.archive.ubuntu.com/ubuntu&amp;lt;/code&amp;gt; and replace it with &amp;lt;code&amp;gt;http://archive.ubuntu.com/ubuntu&amp;lt;/code&amp;gt;.&amp;lt;br/&amp;gt;&lt;br /&gt;
Afterwards, installing htop with &amp;lt;code&amp;gt;sudo apt-get install htop&amp;lt;/code&amp;gt; worked as well, why it did not work before.&lt;br /&gt;
&lt;br /&gt;
=== '''Installing a GUI''' ===&lt;br /&gt;
Installing a (optional) GUI for Ubuntu is described here: http://www.maketecheasier.com/use-a-gui-on-a-ubuntu-server/&amp;lt;br/&amp;gt;&lt;br /&gt;
See also my notes on the [[accessing server infra]] page.&lt;br /&gt;
&lt;br /&gt;
=== '''Changing Vbox mac address''' ===&lt;br /&gt;
use &amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --macaddress1 08002783b21e&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After that my eth0 disappeared and stayed without internet connection! I got it back by deleting: ''/etc/udev/rules.d/70-persistent-net.rules'' and rebooting. This tip came from [https://forums.virtualbox.org/viewtopic.php?f=7&amp;amp;t=43090 here].&lt;br /&gt;
&lt;br /&gt;
Next I had to set the IP manually, using command line. How to do this via command line is described [http://www.cyberciti.biz/tips/howto-ubuntu-linux-convert-dhcp-network-configuration-to-static-ip-configuration.html here]&lt;br /&gt;
&lt;br /&gt;
=== '''Changing the max upload size of wars for Tomcat 7''' ===&lt;br /&gt;
&lt;br /&gt;
use &amp;lt;pre&amp;gt;/usr/share/tomcat7-admin/manager/WEB-INF$ sudo nano web.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
and change the max file setting. (Note, the  ''tomcat7-admin'' package needs to be installed first).&lt;br /&gt;
&lt;br /&gt;
More info on installing tomcat: http://help.ubuntu.com/13.04/serverguide/tomcat.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== '''Copying a VDI (Harddisk) file to attach it to another VM''' ===&lt;br /&gt;
&lt;br /&gt;
If a vdi is copied and/or renamed, and then should be attached to a different VM one needs to assign a new UUID, otherwise the following message appears:&lt;br /&gt;
&amp;lt;pre&amp;gt;VBoxManage: error: Cannot register the hard disk '/home/sstein/backuppostgis.vdi' {60886f08-fedb-49dc-aec0-a1a9ae54a43b} because a hard disk '/home/sstein/backupgeonode.vdi' with UUID {60886f08-fedb-49dc-aec0-a1a9ae54a43b} already exists [...]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In my case I wanted to create a new VM (backuppostgis) without installing ubuntu again.&lt;br /&gt;
&lt;br /&gt;
To assign a new UUID use: &amp;lt;code&amp;gt;VBoxManage internalcommands sethduuid backuppostgis.vdi&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note, that re-using a harddisk/vdi with another/new VM means, that the network connection of the VM will not work, as we have a new network card. To solve this see above (comment out the now two network card adapters in ''/etc/udev/rules.d/70-persistent-net.rules'' and do a reboot).&lt;br /&gt;
&lt;br /&gt;
The computers name can be change by editing ''/etc/hostname''. Still, on &amp;quot;sudo&amp;quot; may appear: &amp;quot;unable to resolve host xxx&amp;quot;. This indicates that the hostname should be changed as well in ''/etc/hosts''.&lt;br /&gt;
&lt;br /&gt;
== Fast setup of VM from existing VM disk tarball ==&lt;br /&gt;
I have a tarball of a VM disk with a fresh Ubuntu Server install (the tar file is called &amp;quot;vmBackupGeoNodeDisk.tgz&amp;quot;). This can serve to setup fairly fast a new Ubuntu based VM.&lt;br /&gt;
* untar the disk tarball with Ubuntu installed &amp;lt;code&amp;gt;tar -C /home/sstein/untar -xvzf /home/sstein/vmbackup/vmBackupGeoNodeDisk.tgz&amp;lt;/code&amp;gt;&lt;br /&gt;
* copy and rename VM disk file to folder with other disk files: &amp;lt;code&amp;gt;mv untar/home/sstein/backupgeonode.vdi /home/sstein/wypwps.vdi&amp;lt;/code&amp;gt;&lt;br /&gt;
* assign a new serial ID to the disk so it can be used by the new VM: &amp;lt;code&amp;gt;VBoxManage internalcommands sethduuid wypwps.vdi &amp;lt;/code&amp;gt;&lt;br /&gt;
* create new VM: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
VBoxManage createvm --name wyp  --ostype Ubuntu --register&lt;br /&gt;
VBoxManage modifyvm wyp --memory 4096&lt;br /&gt;
VBoxManage modifyvm wyp --cpus 4&lt;br /&gt;
VBoxManage modifyvm wyp --nic1 nat&lt;br /&gt;
VBoxManage storagectl wyp --name &amp;quot;SATA Controller&amp;quot; --add sata --controller IntelAhci&lt;br /&gt;
VBoxManage storageattach &amp;quot;wyp&amp;quot; --storagectl &amp;quot;SATA Controller&amp;quot; --port 0 --device 0 --type hdd --medium wypwps.vdi&lt;br /&gt;
VBoxManage modifyvm wyp --natpf1 &amp;quot;ssh,tcp,,17022,,22&amp;quot;&lt;br /&gt;
VBoxManage modifyvm wyp --natpf1 &amp;quot;apache,tcp,,17080,,80&amp;quot;&lt;br /&gt;
VBoxManage modifyvm wyp --natpf1 &amp;quot;tomcat7,tcp,,17088,,8080&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* start the VM: &amp;lt;code&amp;gt;VBoxHeadless -s wyp -n -m 7773 &amp;amp;&amp;lt;/code&amp;gt;&lt;br /&gt;
* login with usual name (ss-) and password (2*-*s) &lt;br /&gt;
* note, the VM has a bit weird keyboard setting. So I haven't figured where / etc is - which makes navigation difficult. So, connecting via ssh, after solving the problem below, is best.&lt;br /&gt;
* fix network connection problem by commenting out the two network card adapters in ''/etc/udev/rules.d/70-persistent-net.rules'' and do a reboots in&lt;br /&gt;
&lt;br /&gt;
== Further VMs that I am running ==&lt;br /&gt;
* VBoxHeadless -s geonode -n -m 7779 &amp;amp; =&amp;gt; bridged (with own IP)&lt;br /&gt;
* VBoxHeadless -s postgis -n -m 7778 &amp;amp; =&amp;gt; nat (9022, 9080)&lt;br /&gt;
* VBoxHeadless -s backupgeonode -n -m 7776 &amp;amp; =&amp;gt; nat (14022, 14080) : powered down&lt;br /&gt;
* VBoxHeadless -s backuppostgis -n -m 7775 &amp;amp; =&amp;gt; nat (15022, 15080) : powered down&lt;br /&gt;
* VBoxHeadless -s tilestream -n -m 7774 &amp;amp; =&amp;gt; nat (16022, 16080) : should be running - with TileStream PID 4672 on port 16088&lt;br /&gt;
* VBoxHeadless -s wyp -n -m 7773 &amp;amp; =&amp;gt; nat (17022, 17080) : should be running - with TileStream PID 4672 on port 16088&lt;br /&gt;
* osgeo VM should be powered down, as it was only for testing&lt;br /&gt;
* check running VMs using: &amp;lt;code&amp;gt;VBoxManage list runningvms&amp;lt;/code&amp;gt;&lt;br /&gt;
* existing VMs using: &amp;lt;code&amp;gt;VBoxManage list vms&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-24T21:10:00Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Modify code for Santiago */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
== '''General prep steps''' ==&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
#* when using an existing VM image : &lt;br /&gt;
#** fix network issue (remove old card settings in ''/etc/udev/rules.d/70-persistent-net.rules'' and reboot)&lt;br /&gt;
#** set new machine name (in ''/etc/hostname'')&lt;br /&gt;
#** check if apache2 starts with an error message or not (for a fix see [[Setting up geonode]] &amp;gt; Basic Install for GeoNode v. 2.0)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== '''Install for Calgary''' ==&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end-point IP (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put client app in Apache's ''/var/www/'' (e.g.: /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; add this layer to the layer selection and set as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get back-end code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = one for each model or a single file for all (made recently by EP) =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' (which may be located under /var/lib/tomcat7/webapps/geoserver/...) =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. If not modified the Walkshed request is send to the GISciencegroup OTP server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL: &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [http://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; &lt;br /&gt;
#** it may be necessary to change run.py because I get an error at the moment as I am not having gnome-terminal available via command line. Hence, I am starting the scripts using commandline &amp;lt;code&amp;gt;python xxx.py &amp;amp;&amp;lt;/code&amp;gt;. Attention, the CrimeService.py and AggregationService.py script needs to be started from within its folder, otherwise config.py will not find the postgis.conf file (working directory issue).&lt;br /&gt;
#**# the Management Service (for pedestrian network) will listen on http://0.0.0.0:8363/&lt;br /&gt;
#**# the Crime Service will listen on http://0.0.0.0:8366/&lt;br /&gt;
#**# the Aggregation Service will listen on http://0.0.0.0:8364/&lt;br /&gt;
#**# the POI Service will listen on http://0.0.0.0:8365/&lt;br /&gt;
#** My running processes I can see then with &amp;lt;code&amp;gt;ps -u ssteinig&amp;lt;/code&amp;gt;&lt;br /&gt;
#** ToDo: check if it is possible to use &amp;quot;subprocess.Popen&amp;quot; or &amp;quot;Multiprocess&amp;quot; (see examples on stackoverflow and [http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args here])&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test if Calgary scenario works =&amp;gt; see next part&lt;br /&gt;
&lt;br /&gt;
== '''Testing Calgary scenario''' ==&lt;br /&gt;
# choosen params: &lt;br /&gt;
#* pos lat = 51.05747321278561&lt;br /&gt;
#* pos lon = -114.0794563293457&lt;br /&gt;
#* 15 min walkshed&lt;br /&gt;
#* walkspeed 1.38 m/sec&lt;br /&gt;
# Then this is how the web browser client request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
# the subsequent call to the managment service would be: &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=Execute&amp;amp;Version=1.0.0&amp;amp;Identifier=gs:Management&amp;amp;DataInputs=StartPoint=51.0574732128,-114.079456329;WalkingTimePeriod=15;WalkingSpeed=1.38&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''Routing/OTP WPS''': this call will return the pedestrian walkshed as JSON object &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Walkshed_Pedestrian&amp;amp;datainputs=StartPoint=51.0574732128,-114.079456329;WalkingPeriod=15;WalkingSpeed=1.38;WalkshedOutput=SHED&amp;lt;/pre&amp;gt; Note, that at the moment (8. April 2014) this will re-route the request to the Calgary OTP server. &lt;br /&gt;
#* '''Crime WPS''': for the same data and the pedestrian-network model we receive a list of crime features, with the following call: &lt;br /&gt;
#** Calgary server &amp;lt;pre&amp;gt;http://136.159.122.90:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed=%7B%22type%22:%22Polygon%22,%22coordinates%22:%5B%5B%5B-114.09364571378056,51.057144582993836%5D,%5B-114.09286815708892,51.05359381755474%5D,%5B-114.09101115708,51.050834058520664%5D,%5B-114.09075927937053,51.05080998647081%5D,%5B-114.0870286,51.0516827%5D,%5B-114.08586777200182,51.04970977429437%5D,%5B-114.0835059,51.0489783%5D,%5B-114.08184778623112,51.0498709384076%5D,%5B-114.081181,51.0536508%5D,%5B-114.0793914,51.0547065%5D,%5B-114.077687,51.0557314%5D,%5B-114.0756248,51.0568823%5D,%5B-114.0750158,51.0570965%5D,%5B-114.0736901,51.0573512%5D,%5B-114.06926177015508,51.055915080229724%5D,%5B-114.06619893997784,51.05694155563417%5D,%5B-114.06579011626843,51.0581622658825%5D,%5B-114.067673398873,51.058916548778726%5D,%5B-114.07143185670641,51.061423362491404%5D,%5B-114.07184987616904,51.06168921938163%5D,%5B-114.0741837,51.0613545%5D,%5B-114.07794224224338,51.06228401160695%5D,%5B-114.07918450576179,51.06260346516831%5D,%5B-114.07993046849634,51.06280359284396%5D,%5B-114.08066137191179,51.062350982627464%5D,%5B-114.08244401432806,51.06127600012983%5D,%5B-114.08582266933304,51.061346817139835%5D,%5B-114.08616082731021,51.06129711945887%5D,%5B-114.0888935,51.0575163%5D,%5B-114.09170271289915,51.05843118482227%5D,%5B-114.09364571378056,51.057144582993836%5D%5D%5D%7D&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** Stgo test server &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** if the python server/script is started, the crime data can also be retrieved using the following from the machines web browser itself (I think so...):&amp;lt;pre&amp;gt;http://127.0.0.1:8366/crime?walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''POI WPS''' : for the following call to my Stgo Server and by using a Calgary walkshed, we receive a list of POIs (raw about 1085 POIs): &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:POI_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** the direct request to MapQuest's Search API would look like this (limited to 10 results):&amp;lt;pre&amp;gt;http://www.mapquestapi.com/search/v2/polygon?key=Fmjtd%7Cluuan90bnh%2C8w%3Do5-96r5l4&amp;amp;callback=renderBasicSearchNarrative&amp;amp;maxMatches=10&amp;amp;outFormat=json&amp;amp;polygon=51.057144583,-114.093645714,51.0535938176,-114.092868157,51.0508340585,-114.091011157,51.0508099865,-114.090759279,51.0516827,-114.0870286,51.0497097743,-114.085867772,51.0489783,-114.0835059,51.0498709384,-114.081847786,51.0536508,-114.081181,51.0547065,-114.0793914,51.0557314,-114.077687,51.0568823,-114.0756248,51.0570965,-114.0750158,51.0573512,-114.0736901,51.0559150802,-114.06926177,51.0569415556,-114.06619894,51.0581622659,-114.065790116,51.0589165488,-114.067673399,51.0614233625,-114.071431857,51.0616892194,-114.071849876,51.0613545,-114.0741837,51.0622840116,-114.077942242,51.0626034652,-114.079184506,51.0628035928,-114.079930468,51.0623509826,-114.080661372,51.0612760001,-114.082444014,51.0613468171,-114.085822669,51.0612971195,-114.086160827,51.0575163,-114.0888935,51.0584311848,-114.091702713,51.057144583,-114.093645714&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Modify code for Santiago''' ==&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* client/js/main.js&lt;br /&gt;
#** modify map_center LatLng coordinates from Calgary to Santiago&lt;br /&gt;
#** add OpenStreetMap tile layer (see code line above) and activate as default - so we see actuall a map of Santiago&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* OTP location in backend (jar file)  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;br /&gt;
#* Test position:  lat_stgo = -33.426033 , lon_stgo = -70.602804&lt;br /&gt;
#* Test walkshed: walkshed = '{&amp;quot;type&amp;quot;:&amp;quot;Polygon&amp;quot;,&amp;quot;coordinates&amp;quot;:[[[-70.61385721469895,-33.42850272750062],[-70.61356058839867,-33.42798359634024],[-70.61166719271597,-33.424376104229665],[-70.61149124381222,-33.42287365565667],[-70.61147936570502,-33.422769669950966],[-70.61058034229507,-33.420920833612726],[-70.60923160172507,-33.417698238606526],[-70.60613267402977,-33.41653969373451],[-70.60437449601663,-33.41620583088737],[-70.60030327178143,-33.41791372437482],[-70.59803167295307,-33.41932217260385],[-70.5947452603848,-33.42089947313322],[-70.59156549154828,-33.42329525340425],[-70.5909228581005,-33.42413497204158],[-70.59144108932382,-33.42607438097505],[-70.59349562786792,-33.428834396229],[-70.59643931216023,-33.43259656603248],[-70.59747457131638,-33.43394922819952],[-70.59901486695664,-33.435784475786605],[-70.60099188713762,-33.43629105037291],[-70.60509364804035,-33.43430330941572],[-70.6057986466706,-33.43396166890046],[-70.60799109097594,-33.43291457173286],[-70.61016518642498,-33.43161181061516],[-70.61278409214731,-33.43061447386348],[-70.61385721469895,-33.42850272750062]]]}'&lt;br /&gt;
#* Request for Santiago location as it would be send by the client: &amp;lt;pre&amp;gt;http://146.155.17.113:17080/wypwps/call_wps.php?wps=pedestrian&amp;amp;start_point=-33.426,-70.602&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-24T21:09:06Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Testing Calgary scenario */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
== '''General prep steps''' ==&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
#* when using an existing VM image : &lt;br /&gt;
#** fix network issue (remove old card settings in ''/etc/udev/rules.d/70-persistent-net.rules'' and reboot)&lt;br /&gt;
#** set new machine name (in ''/etc/hostname'')&lt;br /&gt;
#** check if apache2 starts with an error message or not (for a fix see [[Setting up geonode]] &amp;gt; Basic Install for GeoNode v. 2.0)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== '''Install for Calgary''' ==&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end-point IP (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put client app in Apache's ''/var/www/'' (e.g.: /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; add this layer to the layer selection and set as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get back-end code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = one for each model or a single file for all (made recently by EP) =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' (which may be located under /var/lib/tomcat7/webapps/geoserver/...) =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. If not modified the Walkshed request is send to the GISciencegroup OTP server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL: &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [http://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; &lt;br /&gt;
#** it may be necessary to change run.py because I get an error at the moment as I am not having gnome-terminal available via command line. Hence, I am starting the scripts using commandline &amp;lt;code&amp;gt;python xxx.py &amp;amp;&amp;lt;/code&amp;gt;. Attention, the CrimeService.py and AggregationService.py script needs to be started from within its folder, otherwise config.py will not find the postgis.conf file (working directory issue).&lt;br /&gt;
#**# the Management Service (for pedestrian network) will listen on http://0.0.0.0:8363/&lt;br /&gt;
#**# the Crime Service will listen on http://0.0.0.0:8366/&lt;br /&gt;
#**# the Aggregation Service will listen on http://0.0.0.0:8364/&lt;br /&gt;
#**# the POI Service will listen on http://0.0.0.0:8365/&lt;br /&gt;
#** My running processes I can see then with &amp;lt;code&amp;gt;ps -u ssteinig&amp;lt;/code&amp;gt;&lt;br /&gt;
#** ToDo: check if it is possible to use &amp;quot;subprocess.Popen&amp;quot; or &amp;quot;Multiprocess&amp;quot; (see examples on stackoverflow and [http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args here])&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test if Calgary scenario works =&amp;gt; see next part&lt;br /&gt;
&lt;br /&gt;
== '''Testing Calgary scenario''' ==&lt;br /&gt;
# choosen params: &lt;br /&gt;
#* pos lat = 51.05747321278561&lt;br /&gt;
#* pos lon = -114.0794563293457&lt;br /&gt;
#* 15 min walkshed&lt;br /&gt;
#* walkspeed 1.38 m/sec&lt;br /&gt;
# Then this is how the web browser client request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
# the subsequent call to the managment service would be: &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=Execute&amp;amp;Version=1.0.0&amp;amp;Identifier=gs:Management&amp;amp;DataInputs=StartPoint=51.0574732128,-114.079456329;WalkingTimePeriod=15;WalkingSpeed=1.38&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''Routing/OTP WPS''': this call will return the pedestrian walkshed as JSON object &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Walkshed_Pedestrian&amp;amp;datainputs=StartPoint=51.0574732128,-114.079456329;WalkingPeriod=15;WalkingSpeed=1.38;WalkshedOutput=SHED&amp;lt;/pre&amp;gt; Note, that at the moment (8. April 2014) this will re-route the request to the Calgary OTP server. &lt;br /&gt;
#* '''Crime WPS''': for the same data and the pedestrian-network model we receive a list of crime features, with the following call: &lt;br /&gt;
#** Calgary server &amp;lt;pre&amp;gt;http://136.159.122.90:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed=%7B%22type%22:%22Polygon%22,%22coordinates%22:%5B%5B%5B-114.09364571378056,51.057144582993836%5D,%5B-114.09286815708892,51.05359381755474%5D,%5B-114.09101115708,51.050834058520664%5D,%5B-114.09075927937053,51.05080998647081%5D,%5B-114.0870286,51.0516827%5D,%5B-114.08586777200182,51.04970977429437%5D,%5B-114.0835059,51.0489783%5D,%5B-114.08184778623112,51.0498709384076%5D,%5B-114.081181,51.0536508%5D,%5B-114.0793914,51.0547065%5D,%5B-114.077687,51.0557314%5D,%5B-114.0756248,51.0568823%5D,%5B-114.0750158,51.0570965%5D,%5B-114.0736901,51.0573512%5D,%5B-114.06926177015508,51.055915080229724%5D,%5B-114.06619893997784,51.05694155563417%5D,%5B-114.06579011626843,51.0581622658825%5D,%5B-114.067673398873,51.058916548778726%5D,%5B-114.07143185670641,51.061423362491404%5D,%5B-114.07184987616904,51.06168921938163%5D,%5B-114.0741837,51.0613545%5D,%5B-114.07794224224338,51.06228401160695%5D,%5B-114.07918450576179,51.06260346516831%5D,%5B-114.07993046849634,51.06280359284396%5D,%5B-114.08066137191179,51.062350982627464%5D,%5B-114.08244401432806,51.06127600012983%5D,%5B-114.08582266933304,51.061346817139835%5D,%5B-114.08616082731021,51.06129711945887%5D,%5B-114.0888935,51.0575163%5D,%5B-114.09170271289915,51.05843118482227%5D,%5B-114.09364571378056,51.057144582993836%5D%5D%5D%7D&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** Stgo test server &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** if the python server/script is started, the crime data can also be retrieved using the following from the machines web browser itself (I think so...):&amp;lt;pre&amp;gt;http://127.0.0.1:8366/crime?walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''POI WPS''' : for the following call to my Stgo Server and by using a Calgary walkshed, we receive a list of POIs (raw about 1085 POIs): &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:POI_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** the direct request to MapQuest's Search API would look like this (limited to 10 results):&amp;lt;pre&amp;gt;http://www.mapquestapi.com/search/v2/polygon?key=Fmjtd%7Cluuan90bnh%2C8w%3Do5-96r5l4&amp;amp;callback=renderBasicSearchNarrative&amp;amp;maxMatches=10&amp;amp;outFormat=json&amp;amp;polygon=51.057144583,-114.093645714,51.0535938176,-114.092868157,51.0508340585,-114.091011157,51.0508099865,-114.090759279,51.0516827,-114.0870286,51.0497097743,-114.085867772,51.0489783,-114.0835059,51.0498709384,-114.081847786,51.0536508,-114.081181,51.0547065,-114.0793914,51.0557314,-114.077687,51.0568823,-114.0756248,51.0570965,-114.0750158,51.0573512,-114.0736901,51.0559150802,-114.06926177,51.0569415556,-114.06619894,51.0581622659,-114.065790116,51.0589165488,-114.067673399,51.0614233625,-114.071431857,51.0616892194,-114.071849876,51.0613545,-114.0741837,51.0622840116,-114.077942242,51.0626034652,-114.079184506,51.0628035928,-114.079930468,51.0623509826,-114.080661372,51.0612760001,-114.082444014,51.0613468171,-114.085822669,51.0612971195,-114.086160827,51.0575163,-114.0888935,51.0584311848,-114.091702713,51.057144583,-114.093645714&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Modify code for Santiago''' ==&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* client/js/main.js&lt;br /&gt;
#** modify map_center LatLng coordinates from Calgary to Santiago&lt;br /&gt;
#** add OpenStreetMap tile layer (see code line above) and activate as default - so we see actuall a map of Santiago&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* OTP location in backend (jar file)  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;br /&gt;
#* Test position:  lat_stgo = -33.426033 , lon_stgo = -70.602804&lt;br /&gt;
#* Test walkshed: walkshed = '{&amp;quot;type&amp;quot;:&amp;quot;Polygon&amp;quot;,&amp;quot;coordinates&amp;quot;:[[[-70.61385721469895,-33.42850272750062],[-70.61356058839867,-33.42798359634024],[-70.61166719271597,-33.424376104229665],[-70.61149124381222,-33.42287365565667],[-70.61147936570502,-33.422769669950966],[-70.61058034229507,-33.420920833612726],[-70.60923160172507,-33.417698238606526],[-70.60613267402977,-33.41653969373451],[-70.60437449601663,-33.41620583088737],[-70.60030327178143,-33.41791372437482],[-70.59803167295307,-33.41932217260385],[-70.5947452603848,-33.42089947313322],[-70.59156549154828,-33.42329525340425],[-70.5909228581005,-33.42413497204158],[-70.59144108932382,-33.42607438097505],[-70.59349562786792,-33.428834396229],[-70.59643931216023,-33.43259656603248],[-70.59747457131638,-33.43394922819952],[-70.59901486695664,-33.435784475786605],[-70.60099188713762,-33.43629105037291],[-70.60509364804035,-33.43430330941572],[-70.6057986466706,-33.43396166890046],[-70.60799109097594,-33.43291457173286],[-70.61016518642498,-33.43161181061516],[-70.61278409214731,-33.43061447386348],[-70.61385721469895,-33.42850272750062]]]}'&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-24T20:53:04Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Testing Calgary scenario */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
== '''General prep steps''' ==&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
#* when using an existing VM image : &lt;br /&gt;
#** fix network issue (remove old card settings in ''/etc/udev/rules.d/70-persistent-net.rules'' and reboot)&lt;br /&gt;
#** set new machine name (in ''/etc/hostname'')&lt;br /&gt;
#** check if apache2 starts with an error message or not (for a fix see [[Setting up geonode]] &amp;gt; Basic Install for GeoNode v. 2.0)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== '''Install for Calgary''' ==&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end-point IP (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put client app in Apache's ''/var/www/'' (e.g.: /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; add this layer to the layer selection and set as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get back-end code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = one for each model or a single file for all (made recently by EP) =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' (which may be located under /var/lib/tomcat7/webapps/geoserver/...) =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. If not modified the Walkshed request is send to the GISciencegroup OTP server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL: &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [http://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; &lt;br /&gt;
#** it may be necessary to change run.py because I get an error at the moment as I am not having gnome-terminal available via command line. Hence, I am starting the scripts using commandline &amp;lt;code&amp;gt;python xxx.py &amp;amp;&amp;lt;/code&amp;gt;. Attention, the CrimeService.py and AggregationService.py script needs to be started from within its folder, otherwise config.py will not find the postgis.conf file (working directory issue).&lt;br /&gt;
#**# the Management Service (for pedestrian network) will listen on http://0.0.0.0:8363/&lt;br /&gt;
#**# the Crime Service will listen on http://0.0.0.0:8366/&lt;br /&gt;
#**# the Aggregation Service will listen on http://0.0.0.0:8364/&lt;br /&gt;
#**# the POI Service will listen on http://0.0.0.0:8365/&lt;br /&gt;
#** My running processes I can see then with &amp;lt;code&amp;gt;ps -u ssteinig&amp;lt;/code&amp;gt;&lt;br /&gt;
#** ToDo: check if it is possible to use &amp;quot;subprocess.Popen&amp;quot; or &amp;quot;Multiprocess&amp;quot; (see examples on stackoverflow and [http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args here])&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test if Calgary scenario works =&amp;gt; see next part&lt;br /&gt;
&lt;br /&gt;
== '''Testing Calgary scenario''' ==&lt;br /&gt;
# choosen params: &lt;br /&gt;
#* pos lat = 51.05747321278561&lt;br /&gt;
#* pos lon = -114.0794563293457&lt;br /&gt;
#* 15 min walkshed&lt;br /&gt;
#* walkspeed 1.38 m/sec&lt;br /&gt;
# Then this is how the web browser client request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt; or &amp;lt;pre&amp;gt;http://146.155.17.113:17080/wypwps/call_wps.php?wps=pedestrian&amp;amp;start_point=-33.426,-70.602&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
# the subsequent call to the managment service would be: &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=Execute&amp;amp;Version=1.0.0&amp;amp;Identifier=gs:Management&amp;amp;DataInputs=StartPoint=51.0574732128,-114.079456329;WalkingTimePeriod=15;WalkingSpeed=1.38&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''Routing/OTP WPS''': this call will return the pedestrian walkshed as JSON object &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Walkshed_Pedestrian&amp;amp;datainputs=StartPoint=51.0574732128,-114.079456329;WalkingPeriod=15;WalkingSpeed=1.38;WalkshedOutput=SHED&amp;lt;/pre&amp;gt; Note, that at the moment (8. April 2014) this will re-route the request to the Calgary OTP server. &lt;br /&gt;
#* '''Crime WPS''': for the same data and the pedestrian-network model we receive a list of crime features, with the following call: &lt;br /&gt;
#** Calgary server &amp;lt;pre&amp;gt;http://136.159.122.90:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed=%7B%22type%22:%22Polygon%22,%22coordinates%22:%5B%5B%5B-114.09364571378056,51.057144582993836%5D,%5B-114.09286815708892,51.05359381755474%5D,%5B-114.09101115708,51.050834058520664%5D,%5B-114.09075927937053,51.05080998647081%5D,%5B-114.0870286,51.0516827%5D,%5B-114.08586777200182,51.04970977429437%5D,%5B-114.0835059,51.0489783%5D,%5B-114.08184778623112,51.0498709384076%5D,%5B-114.081181,51.0536508%5D,%5B-114.0793914,51.0547065%5D,%5B-114.077687,51.0557314%5D,%5B-114.0756248,51.0568823%5D,%5B-114.0750158,51.0570965%5D,%5B-114.0736901,51.0573512%5D,%5B-114.06926177015508,51.055915080229724%5D,%5B-114.06619893997784,51.05694155563417%5D,%5B-114.06579011626843,51.0581622658825%5D,%5B-114.067673398873,51.058916548778726%5D,%5B-114.07143185670641,51.061423362491404%5D,%5B-114.07184987616904,51.06168921938163%5D,%5B-114.0741837,51.0613545%5D,%5B-114.07794224224338,51.06228401160695%5D,%5B-114.07918450576179,51.06260346516831%5D,%5B-114.07993046849634,51.06280359284396%5D,%5B-114.08066137191179,51.062350982627464%5D,%5B-114.08244401432806,51.06127600012983%5D,%5B-114.08582266933304,51.061346817139835%5D,%5B-114.08616082731021,51.06129711945887%5D,%5B-114.0888935,51.0575163%5D,%5B-114.09170271289915,51.05843118482227%5D,%5B-114.09364571378056,51.057144582993836%5D%5D%5D%7D&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** Stgo test server &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** if the python server/script is started, the crime data can also be retrieved using the following from the machines web browser itself (I think so...):&amp;lt;pre&amp;gt;http://127.0.0.1:8366/crime?walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''POI WPS''' : for the following call to my Stgo Server and by using a Calgary walkshed, we receive a list of POIs (raw about 1085 POIs): &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:POI_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** the direct request to MapQuest's Search API would look like this (limited to 10 results):&amp;lt;pre&amp;gt;http://www.mapquestapi.com/search/v2/polygon?key=Fmjtd%7Cluuan90bnh%2C8w%3Do5-96r5l4&amp;amp;callback=renderBasicSearchNarrative&amp;amp;maxMatches=10&amp;amp;outFormat=json&amp;amp;polygon=51.057144583,-114.093645714,51.0535938176,-114.092868157,51.0508340585,-114.091011157,51.0508099865,-114.090759279,51.0516827,-114.0870286,51.0497097743,-114.085867772,51.0489783,-114.0835059,51.0498709384,-114.081847786,51.0536508,-114.081181,51.0547065,-114.0793914,51.0557314,-114.077687,51.0568823,-114.0756248,51.0570965,-114.0750158,51.0573512,-114.0736901,51.0559150802,-114.06926177,51.0569415556,-114.06619894,51.0581622659,-114.065790116,51.0589165488,-114.067673399,51.0614233625,-114.071431857,51.0616892194,-114.071849876,51.0613545,-114.0741837,51.0622840116,-114.077942242,51.0626034652,-114.079184506,51.0628035928,-114.079930468,51.0623509826,-114.080661372,51.0612760001,-114.082444014,51.0613468171,-114.085822669,51.0612971195,-114.086160827,51.0575163,-114.0888935,51.0584311848,-114.091702713,51.057144583,-114.093645714&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Modify code for Santiago''' ==&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* client/js/main.js&lt;br /&gt;
#** modify map_center LatLng coordinates from Calgary to Santiago&lt;br /&gt;
#** add OpenStreetMap tile layer (see code line above) and activate as default - so we see actuall a map of Santiago&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* OTP location in backend (jar file)  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;br /&gt;
#* Test position:  lat_stgo = -33.426033 , lon_stgo = -70.602804&lt;br /&gt;
#* Test walkshed: walkshed = '{&amp;quot;type&amp;quot;:&amp;quot;Polygon&amp;quot;,&amp;quot;coordinates&amp;quot;:[[[-70.61385721469895,-33.42850272750062],[-70.61356058839867,-33.42798359634024],[-70.61166719271597,-33.424376104229665],[-70.61149124381222,-33.42287365565667],[-70.61147936570502,-33.422769669950966],[-70.61058034229507,-33.420920833612726],[-70.60923160172507,-33.417698238606526],[-70.60613267402977,-33.41653969373451],[-70.60437449601663,-33.41620583088737],[-70.60030327178143,-33.41791372437482],[-70.59803167295307,-33.41932217260385],[-70.5947452603848,-33.42089947313322],[-70.59156549154828,-33.42329525340425],[-70.5909228581005,-33.42413497204158],[-70.59144108932382,-33.42607438097505],[-70.59349562786792,-33.428834396229],[-70.59643931216023,-33.43259656603248],[-70.59747457131638,-33.43394922819952],[-70.59901486695664,-33.435784475786605],[-70.60099188713762,-33.43629105037291],[-70.60509364804035,-33.43430330941572],[-70.6057986466706,-33.43396166890046],[-70.60799109097594,-33.43291457173286],[-70.61016518642498,-33.43161181061516],[-70.61278409214731,-33.43061447386348],[-70.61385721469895,-33.42850272750062]]]}'&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_osgeo_vm</id>
		<title>Setting up osgeo vm</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_osgeo_vm"/>
				<updated>2014-04-24T20:01:12Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Copying a VDI (Harddisk) file to attach it to another VM */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return [[Cedeus IDE]] &lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== Setup of an OSGeo Virtual Machine with VirtualBox ==&lt;br /&gt;
&lt;br /&gt;
Setting up a [http://live.osgeo.org/es/ OSGeo VirtualBox-VM] on Lautaro with SuseLinux - but using command line (because creating the VM via the graphical interface ''vboxgtk'' did not work properly).&lt;br /&gt;
The general documentation was taken from here: http://stdioe.blogspot.com/2012/01/creating-virtual-machine-with.html&lt;br /&gt;
&lt;br /&gt;
'''Steps''': &lt;br /&gt;
# install virtualbox on server/computer (done by Daniel, needs admin rights of course)&lt;br /&gt;
# download the iso with the OS, for ubuntu (= not OSGeo live): &amp;lt;pre&amp;gt;curl -L -O  http://releases.ubuntu.com/12.04.3/ubuntu-12.04.3-server-i386.iso &amp;gt; ubuntu12043server.iso&amp;lt;/pre&amp;gt;&lt;br /&gt;
# create a VM based on Ubuntu: &amp;lt;pre&amp;gt;VBoxManage createvm --name osgeo  --ostype Ubuntu --register&amp;lt;/pre&amp;gt;&lt;br /&gt;
# check it is there: &amp;lt;pre&amp;gt;VBoxManage showvminfo osgeo&amp;lt;/pre&amp;gt;&lt;br /&gt;
# set the memory/ram: &amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --memory 8192&amp;lt;/pre&amp;gt; (which is 8GB)&lt;br /&gt;
# check the memory/ram: &amp;lt;pre&amp;gt;VBoxManage showvminfo osgeo | grep &amp;quot;Memory size&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
# set the number of cpu's to use (here 4): &amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --cpus 4&amp;lt;/pre&amp;gt;&lt;br /&gt;
# set the network connection/routing &amp;lt;br/&amp;gt;nat: like behind a firewall, access from host, e.g. PostgisVM - vs. - bridge: want to be visible from outside, using my own IP, e.g. GeoNodeVM &amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --nic1 nat&amp;lt;/pre&amp;gt; Here we use 'nat'-ing instead of a bridge. For a bridge we have to use unstead: first this command: &amp;lt;code&amp;gt;VBoxManage modifyvm osgeo --bridgeadapter1 eth0&amp;lt;/code&amp;gt; and then, this command: &amp;lt;code&amp;gt;VBoxManage modifyvm osgeo --nic1 bridged&amp;lt;/code&amp;gt;.&lt;br /&gt;
# create a harddisk of 100GB size:&amp;lt;pre&amp;gt;VBoxManage createhd --filename osgeo.vdi --size 100000&amp;lt;/pre&amp;gt;&lt;br /&gt;
# define the VM's disk controller:&amp;lt;pre&amp;gt;VBoxManage storagectl osgeo --name &amp;quot;SATA Controller&amp;quot; --add sata --controller IntelAhci&amp;lt;/pre&amp;gt;&lt;br /&gt;
# mount the disk:&amp;lt;pre&amp;gt;VBoxManage storageattach &amp;quot;osgeo&amp;quot; --storagectl &amp;quot;SATA Controller&amp;quot; --port 0 --device 0 --type hdd --medium osgeo.vdi&amp;lt;/pre&amp;gt;&lt;br /&gt;
# check if everything is there:&amp;lt;pre&amp;gt;VBoxManage showvminfo osgeo&amp;lt;/pre&amp;gt;&lt;br /&gt;
# add DVD device:&amp;lt;pre&amp;gt;VBoxManage storagectl osgeo --name &amp;quot;IDE Controller&amp;quot; --add ide --controller PIIX4&amp;lt;/pre&amp;gt;&lt;br /&gt;
# load the DVD device with the Ubuntu VM/osgeo ''iso'' file (check if the iso has proper rights, i.e. maybe do a chmod 775):&amp;lt;pre&amp;gt;VBoxManage storageattach osgeo --storagectl &amp;quot;IDE Controller&amp;quot; --port 1 --device 0 --type dvddrive --medium yyy/osgeolive7.iso &amp;lt;/pre&amp;gt;&lt;br /&gt;
# starting VM &amp;lt;pre&amp;gt;VBoxHeadless -s osgeo -n -m 7777 &amp;amp; &amp;lt;/pre&amp;gt; The -s is for start, 7777 defines the port for conecting with VNC, and the &amp;amp; is for keeping the VM running when I disconnect from the server. Headless actually means, that we have no monitor...&lt;br /&gt;
# don't forget to install VNC Viewer (e.g. [http://www.realvnc.com/ RealVNC]), and then connect via the defined port - to &amp;quot;146.155.xx.xxx:7777&amp;quot;&lt;br /&gt;
# ... do a real install of the osgeo VM, etc.&lt;br /&gt;
#  install ssh server &amp;lt;pre&amp;gt;sudo apt-get install openssh-server&amp;lt;/pre&amp;gt;&lt;br /&gt;
# how to do a mapping for ssh (&amp;amp; ftp), so that the guest VM can be reached from the host machine is described here: http://blogs.oracle.com/rmanus/entry/virtualbox_how_to_ftp_from  &amp;lt;br&amp;gt;In particular one has to do the following: &amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --natpf1 &amp;quot;ssh,tcp,,2222,,22&amp;quot;&amp;lt;/pre&amp;gt;These entries are then added to osgeo.vbox xml file. For ftp the port would be 21 instead of 22. To enable Apache, do the same but use: config folder &amp;quot;apache&amp;quot;, HostPort &amp;quot;8888&amp;quot;, GuestPort &amp;quot;80&amp;quot;, Protocol &amp;quot;TCP&amp;quot;, e.g. (as one line): &amp;lt;pre&amp;gt; VBoxManage modifyvm osgeo --natpf1 &amp;quot;apache,tcp,,8888,,80&amp;quot;&amp;lt;/pre&amp;gt; and for Tomcat: &amp;lt;pre&amp;gt; VBoxManage modifyvm osgeo --natpf1 &amp;quot;tomcat,tcp,,8889,,8080&amp;quot;&amp;lt;/pre&amp;gt;  &lt;br /&gt;
#* Note, if a &amp;quot;Error: failed to start machine. Error message: Configuration error: Failed to get the &amp;quot;MAC&amp;quot; value (VERR_CFGM_VALUE_NOT_FOUND)&amp;quot; appears, then it may be necessary to change the network adapter to PCnet-FAST III (Am79C973), according to this [http://room2blog.wordpress.com/2010/10/04/setting-up-post-forwarding-for-virtual-box-on-ubuntu-10-04/ Blog entry]&lt;br /&gt;
# check here on how to detach the medium use: &amp;lt;pre&amp;gt;VBoxManage storageattach osgeo --storagectl &amp;quot;IDE Controller&amp;quot; --port 1 --device 0 --type dvddrive --medium none&amp;lt;/pre&amp;gt;&lt;br /&gt;
# shutting down the vm per vboxmanage : &amp;lt;pre&amp;gt;VBoxManage controlvm &amp;lt;uuid&amp;gt;|&amp;lt;name&amp;gt; pause|resume|reset|poweroff|savestate|acpipowerbutton|acpisleepbutton&amp;lt;/pre&amp;gt;&lt;br /&gt;
# tomcat 6 can be found in /usr/share/tomcat6/bin. However, the start/stop command is simply: &amp;lt;pre&amp;gt;sudo service tomcat6 start&amp;lt;/pre&amp;gt; Check out: [http://hendrelouw73.wordpress.com/2012/06/06/how-to-install-apache-tomcat-6-0-35-on-ubuntu-12-04-linux/ Blog: How to instal Tomcat 6 on Ubuntu 12.04]. Also, don't forget to create users for the manager interface (see [http://www.mkyong.com/tomcat/tomcat-default-administrator-password/ this Blog post]). Finally, the right amount of memory can be assigned in the file ''/etc/tomcat6/tomcat6.conf''. However, I did not had this file. So I created a new file setenv.sh in ''/usr/share/tomcat6/bin'' via &amp;lt;pre&amp;gt;sudo touch setenv.sh&amp;lt;/pre&amp;gt; and then edited it adding the following lines: &amp;lt;pre&amp;gt;#!/bin/sh &amp;amp;#10;JAVA_OPTS=&amp;quot;-Xms512m -Xmx4g -XX:MaxPermSize=270m -server -Djava.awt.headless=true -Djava.util.prefs.systemRoot=$CATALINA_HOME/content/thredds/javaUtilPrefs&amp;quot; &amp;amp;#10;export JAVA_OPTS&amp;lt;/pre&amp;gt;Then I stopped and re-started tomcat. The above method also worked with Tomcat7.&lt;br /&gt;
# displaying catalina output: &amp;lt;pre&amp;gt;cd /var/lib/tomcat6&amp;lt;/pre&amp;gt;&amp;lt;pre&amp;gt;tail -f logs/catalina.out&amp;lt;/pre&amp;gt;&lt;br /&gt;
# activate remote desktop for VBox:&amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --vrde on&amp;lt;/pre&amp;gt;&amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --vrdemulticon on&amp;lt;/pre&amp;gt;and define the port number&amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --vrdeport XXXX&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Other Notes ==&lt;br /&gt;
&lt;br /&gt;
=== '''Install &amp;amp; updates''' ===&lt;br /&gt;
When Installing Ubuntu server, I got actually problems with the update sever, and had to switch to main. For that I used:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo nano /etc/apt/sources.list&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then locate &amp;lt;code&amp;gt;http://cl.archive.ubuntu.com/ubuntu&amp;lt;/code&amp;gt; and replace it with &amp;lt;code&amp;gt;http://archive.ubuntu.com/ubuntu&amp;lt;/code&amp;gt;.&amp;lt;br/&amp;gt;&lt;br /&gt;
Afterwards, installing htop with &amp;lt;code&amp;gt;sudo apt-get install htop&amp;lt;/code&amp;gt; worked as well, why it did not work before.&lt;br /&gt;
&lt;br /&gt;
=== '''Installing a GUI''' ===&lt;br /&gt;
Installing a (optional) GUI for Ubuntu is described here: http://www.maketecheasier.com/use-a-gui-on-a-ubuntu-server/&amp;lt;br/&amp;gt;&lt;br /&gt;
See also my notes on the [[accessing server infra]] page.&lt;br /&gt;
&lt;br /&gt;
=== '''Changing Vbox mac address''' ===&lt;br /&gt;
use &amp;lt;pre&amp;gt;VBoxManage modifyvm osgeo --macaddress1 08002783b21e&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After that my eth0 disappeared and stayed without internet connection! I got it back by deleting: ''/etc/udev/rules.d/70-persistent-net.rules'' and rebooting. This tip came from [https://forums.virtualbox.org/viewtopic.php?f=7&amp;amp;t=43090 here].&lt;br /&gt;
&lt;br /&gt;
Next I had to set the IP manually, using command line. How to do this via command line is described [http://www.cyberciti.biz/tips/howto-ubuntu-linux-convert-dhcp-network-configuration-to-static-ip-configuration.html here]&lt;br /&gt;
&lt;br /&gt;
=== '''Changing the max upload size of wars for Tomcat 7''' ===&lt;br /&gt;
&lt;br /&gt;
use &amp;lt;pre&amp;gt;/usr/share/tomcat7-admin/manager/WEB-INF$ sudo nano web.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
and change the max file setting. (Note, the  ''tomcat7-admin'' package needs to be installed first).&lt;br /&gt;
&lt;br /&gt;
More info on installing tomcat: http://help.ubuntu.com/13.04/serverguide/tomcat.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== '''Copying a VDI (Harddisk) file to attach it to another VM''' ===&lt;br /&gt;
&lt;br /&gt;
If a vdi is copied and/or renamed, and then should be attached to a different VM one needs to assign a new UUID, otherwise the following message appears:&lt;br /&gt;
&amp;lt;pre&amp;gt;VBoxManage: error: Cannot register the hard disk '/home/sstein/backuppostgis.vdi' {60886f08-fedb-49dc-aec0-a1a9ae54a43b} because a hard disk '/home/sstein/backupgeonode.vdi' with UUID {60886f08-fedb-49dc-aec0-a1a9ae54a43b} already exists [...]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In my case I wanted to create a new VM (backuppostgis) without installing ubuntu again.&lt;br /&gt;
&lt;br /&gt;
To assign a new UUID use: &amp;lt;code&amp;gt;VBoxManage internalcommands sethduuid backuppostgis.vdi&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note, that re-using a harddisk/vdi with another/new VM means, that the network connection of the VM will not work, as we have a new network card. To solve this see above (comment out the now two network card adapters in ''/etc/udev/rules.d/70-persistent-net.rules'' and do a reboot).&lt;br /&gt;
&lt;br /&gt;
The computers name can be change by editing ''/etc/hostname''. Still, on &amp;quot;sudo&amp;quot; may appear: &amp;quot;unable to resolve host xxx&amp;quot;. This indicates that the hostname should be changed as well in ''/etc/hosts''.&lt;br /&gt;
&lt;br /&gt;
== Fast setup of VM from existing VM disk tarball ==&lt;br /&gt;
I have a tarball of a VM disk with a fresh Ubuntu Server install (the tar file is called &amp;quot;vmBackupGeoNodeDisk.tgz&amp;quot;). This can serve to setup fairly fast a new Ubuntu based VM.&lt;br /&gt;
* untar the disk tarball with Ubuntu installed &amp;lt;code&amp;gt;tar -C /home/sstein/untar -xvzf /home/sstein/vmbackup/vmBackupGeoNodeDisk.tgz&amp;lt;/code&amp;gt;&lt;br /&gt;
* copy and rename VM disk file to folder with other disk files: &amp;lt;code&amp;gt;mv untar/home/sstein/backupgeonode.vdi /home/sstein/wypwps.vdi&amp;lt;/code&amp;gt;&lt;br /&gt;
* assign a new serial ID to the disk so it can be used by the new VM: &amp;lt;code&amp;gt;VBoxManage internalcommands sethduuid wypwps.vdi &amp;lt;/code&amp;gt;&lt;br /&gt;
* create new VM: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
VBoxManage createvm --name wyp  --ostype Ubuntu --register&lt;br /&gt;
VBoxManage modifyvm wyp --memory 4096&lt;br /&gt;
VBoxManage modifyvm wyp --cpus 4&lt;br /&gt;
VBoxManage modifyvm wyp --nic1 nat&lt;br /&gt;
VBoxManage storagectl wyp --name &amp;quot;SATA Controller&amp;quot; --add sata --controller IntelAhci&lt;br /&gt;
VBoxManage storageattach &amp;quot;wyp&amp;quot; --storagectl &amp;quot;SATA Controller&amp;quot; --port 0 --device 0 --type hdd --medium wypwps.vdi&lt;br /&gt;
VBoxManage modifyvm wyp --natpf1 &amp;quot;ssh,tcp,,17022,,22&amp;quot;&lt;br /&gt;
VBoxManage modifyvm wyp --natpf1 &amp;quot;apache,tcp,,17080,,80&amp;quot;&lt;br /&gt;
VBoxManage modifyvm wyp --natpf1 &amp;quot;tomcat7,tcp,,17088,,8080&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* start the VM: &amp;lt;code&amp;gt;VBoxHeadless -s wyp -n -m 7773 &amp;amp;&amp;lt;/code&amp;gt;&lt;br /&gt;
* login with usual name (ss-) and password (2*-*s) &lt;br /&gt;
* note, the VM has a bit weird keyboard setting. So I haven't figured where / etc is - which makes navigation difficult. So, connecting via ssh, after solving the problem below, is best.&lt;br /&gt;
* fix network connection problem by commenting out the two network card adapters in ''/etc/udev/rules.d/70-persistent-net.rules'' and do a reboots in&lt;br /&gt;
&lt;br /&gt;
== Further VMs that I am running ==&lt;br /&gt;
* VBoxHeadless -s geonode -n -m 7779 &amp;amp; =&amp;gt; bridged (with own IP)&lt;br /&gt;
* VBoxHeadless -s postgis -n -m 7778 &amp;amp; =&amp;gt; nat (9022, 9080)&lt;br /&gt;
* VBoxHeadless -s backupgeonode -n -m 7776 &amp;amp; =&amp;gt; nat (14022, 14080) : powered down&lt;br /&gt;
* VBoxHeadless -s backuppostgis -n -m 7775 &amp;amp; =&amp;gt; nat (15022, 15080) : powered down&lt;br /&gt;
* VBoxHeadless -s tilestream -n -m 7774 &amp;amp; =&amp;gt; nat (16022, 16080) : should be running - with TileStream PID 4672 on port 16088&lt;br /&gt;
* osgeo VM should be powered down, as it was only for testing&lt;br /&gt;
* check running VMs using: &amp;lt;code&amp;gt;VBoxManage list runningvms&amp;lt;/code&amp;gt;&lt;br /&gt;
* existing VMs using: &amp;lt;code&amp;gt;VBoxManage list vms&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-22T22:13:51Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Modify code for Santiago */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
== '''General prep steps''' ==&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
#* when using an existing VM image : &lt;br /&gt;
#** fix network issue (remove old card settings in ''/etc/udev/rules.d/70-persistent-net.rules'' and reboot)&lt;br /&gt;
#** set new machine name (in ''/etc/hostname'')&lt;br /&gt;
#** check if apache2 starts with an error message or not (for a fix see [[Setting up geonode]] &amp;gt; Basic Install for GeoNode v. 2.0)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== '''Install for Calgary''' ==&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end-point IP (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put client app in Apache's ''/var/www/'' (e.g.: /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; add this layer to the layer selection and set as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get back-end code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = one for each model or a single file for all (made recently by EP) =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' (which may be located under /var/lib/tomcat7/webapps/geoserver/...) =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. If not modified the Walkshed request is send to the GISciencegroup OTP server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL: &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [http://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; &lt;br /&gt;
#** it may be necessary to change run.py because I get an error at the moment as I am not having gnome-terminal available via command line. Hence, I am starting the scripts using commandline &amp;lt;code&amp;gt;python xxx.py &amp;amp;&amp;lt;/code&amp;gt;. Attention, the CrimeService.py and AggregationService.py script needs to be started from within its folder, otherwise config.py will not find the postgis.conf file (working directory issue).&lt;br /&gt;
#**# the Management Service (for pedestrian network) will listen on http://0.0.0.0:8363/&lt;br /&gt;
#**# the Crime Service will listen on http://0.0.0.0:8366/&lt;br /&gt;
#**# the Aggregation Service will listen on http://0.0.0.0:8364/&lt;br /&gt;
#**# the POI Service will listen on http://0.0.0.0:8365/&lt;br /&gt;
#** My running processes I can see then with &amp;lt;code&amp;gt;ps -u ssteinig&amp;lt;/code&amp;gt;&lt;br /&gt;
#** ToDo: check if it is possible to use &amp;quot;subprocess.Popen&amp;quot; or &amp;quot;Multiprocess&amp;quot; (see examples on stackoverflow and [http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args here])&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test if Calgary scenario works =&amp;gt; see next part&lt;br /&gt;
&lt;br /&gt;
== '''Testing Calgary scenario''' ==&lt;br /&gt;
# choosen params: &lt;br /&gt;
#* pos lat = 51.05747321278561&lt;br /&gt;
#* pos lon = -114.0794563293457&lt;br /&gt;
#* 15 min walkshed&lt;br /&gt;
#* walkspeed 1.38 m/sec&lt;br /&gt;
# Then this is how the web browser client request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
# the subsequent call to the managment service would be: &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=Execute&amp;amp;Version=1.0.0&amp;amp;Identifier=gs:Management&amp;amp;DataInputs=StartPoint=51.0574732128,-114.079456329;WalkingTimePeriod=15;WalkingSpeed=1.38&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''Routing/OTP WPS''': this call will return the pedestrian walkshed as JSON object &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Walkshed_Pedestrian&amp;amp;datainputs=StartPoint=51.0574732128,-114.079456329;WalkingPeriod=15;WalkingSpeed=1.38;WalkshedOutput=SHED&amp;lt;/pre&amp;gt; Note, that at the moment (8. April 2014) this will re-route the request to the Calgary OTP server. &lt;br /&gt;
#* '''Crime WPS''': for the same data and the pedestrian-network model we receive a list of crime features, with the following call: &lt;br /&gt;
#** Calgary server &amp;lt;pre&amp;gt;http://136.159.122.90:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed=%7B%22type%22:%22Polygon%22,%22coordinates%22:%5B%5B%5B-114.09364571378056,51.057144582993836%5D,%5B-114.09286815708892,51.05359381755474%5D,%5B-114.09101115708,51.050834058520664%5D,%5B-114.09075927937053,51.05080998647081%5D,%5B-114.0870286,51.0516827%5D,%5B-114.08586777200182,51.04970977429437%5D,%5B-114.0835059,51.0489783%5D,%5B-114.08184778623112,51.0498709384076%5D,%5B-114.081181,51.0536508%5D,%5B-114.0793914,51.0547065%5D,%5B-114.077687,51.0557314%5D,%5B-114.0756248,51.0568823%5D,%5B-114.0750158,51.0570965%5D,%5B-114.0736901,51.0573512%5D,%5B-114.06926177015508,51.055915080229724%5D,%5B-114.06619893997784,51.05694155563417%5D,%5B-114.06579011626843,51.0581622658825%5D,%5B-114.067673398873,51.058916548778726%5D,%5B-114.07143185670641,51.061423362491404%5D,%5B-114.07184987616904,51.06168921938163%5D,%5B-114.0741837,51.0613545%5D,%5B-114.07794224224338,51.06228401160695%5D,%5B-114.07918450576179,51.06260346516831%5D,%5B-114.07993046849634,51.06280359284396%5D,%5B-114.08066137191179,51.062350982627464%5D,%5B-114.08244401432806,51.06127600012983%5D,%5B-114.08582266933304,51.061346817139835%5D,%5B-114.08616082731021,51.06129711945887%5D,%5B-114.0888935,51.0575163%5D,%5B-114.09170271289915,51.05843118482227%5D,%5B-114.09364571378056,51.057144582993836%5D%5D%5D%7D&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** Stgo test server &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** if the python server/script is started, the crime data can also be retrieved using the following from the machines web browser itself (I think so...):&amp;lt;pre&amp;gt;http://127.0.0.1:8366/crime?walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''POI WPS''' : for the following call to my Stgo Server and by using a Calgary walkshed, we receive a list of POIs (raw about 1085 POIs): &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:POI_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** the direct request to MapQuest's Search API would look like this (limited to 10 results):&amp;lt;pre&amp;gt;http://www.mapquestapi.com/search/v2/polygon?key=Fmjtd%7Cluuan90bnh%2C8w%3Do5-96r5l4&amp;amp;callback=renderBasicSearchNarrative&amp;amp;maxMatches=10&amp;amp;outFormat=json&amp;amp;polygon=51.057144583,-114.093645714,51.0535938176,-114.092868157,51.0508340585,-114.091011157,51.0508099865,-114.090759279,51.0516827,-114.0870286,51.0497097743,-114.085867772,51.0489783,-114.0835059,51.0498709384,-114.081847786,51.0536508,-114.081181,51.0547065,-114.0793914,51.0557314,-114.077687,51.0568823,-114.0756248,51.0570965,-114.0750158,51.0573512,-114.0736901,51.0559150802,-114.06926177,51.0569415556,-114.06619894,51.0581622659,-114.065790116,51.0589165488,-114.067673399,51.0614233625,-114.071431857,51.0616892194,-114.071849876,51.0613545,-114.0741837,51.0622840116,-114.077942242,51.0626034652,-114.079184506,51.0628035928,-114.079930468,51.0623509826,-114.080661372,51.0612760001,-114.082444014,51.0613468171,-114.085822669,51.0612971195,-114.086160827,51.0575163,-114.0888935,51.0584311848,-114.091702713,51.057144583,-114.093645714&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Modify code for Santiago''' ==&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* client/js/main.js&lt;br /&gt;
#** modify map_center LatLng coordinates from Calgary to Santiago&lt;br /&gt;
#** add OpenStreetMap tile layer (see code line above) and activate as default - so we see actuall a map of Santiago&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* OTP location in backend (jar file)  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;br /&gt;
#* Test position:  lat_stgo = -33.426033 , lon_stgo = -70.602804&lt;br /&gt;
#* Test walkshed: walkshed = '{&amp;quot;type&amp;quot;:&amp;quot;Polygon&amp;quot;,&amp;quot;coordinates&amp;quot;:[[[-70.61385721469895,-33.42850272750062],[-70.61356058839867,-33.42798359634024],[-70.61166719271597,-33.424376104229665],[-70.61149124381222,-33.42287365565667],[-70.61147936570502,-33.422769669950966],[-70.61058034229507,-33.420920833612726],[-70.60923160172507,-33.417698238606526],[-70.60613267402977,-33.41653969373451],[-70.60437449601663,-33.41620583088737],[-70.60030327178143,-33.41791372437482],[-70.59803167295307,-33.41932217260385],[-70.5947452603848,-33.42089947313322],[-70.59156549154828,-33.42329525340425],[-70.5909228581005,-33.42413497204158],[-70.59144108932382,-33.42607438097505],[-70.59349562786792,-33.428834396229],[-70.59643931216023,-33.43259656603248],[-70.59747457131638,-33.43394922819952],[-70.59901486695664,-33.435784475786605],[-70.60099188713762,-33.43629105037291],[-70.60509364804035,-33.43430330941572],[-70.6057986466706,-33.43396166890046],[-70.60799109097594,-33.43291457173286],[-70.61016518642498,-33.43161181061516],[-70.61278409214731,-33.43061447386348],[-70.61385721469895,-33.42850272750062]]]}'&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-22T22:10:56Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Modify code for Santiago */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
== '''General prep steps''' ==&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
#* when using an existing VM image : &lt;br /&gt;
#** fix network issue (remove old card settings in ''/etc/udev/rules.d/70-persistent-net.rules'' and reboot)&lt;br /&gt;
#** set new machine name (in ''/etc/hostname'')&lt;br /&gt;
#** check if apache2 starts with an error message or not (for a fix see [[Setting up geonode]] &amp;gt; Basic Install for GeoNode v. 2.0)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== '''Install for Calgary''' ==&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end-point IP (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put client app in Apache's ''/var/www/'' (e.g.: /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; add this layer to the layer selection and set as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get back-end code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = one for each model or a single file for all (made recently by EP) =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' (which may be located under /var/lib/tomcat7/webapps/geoserver/...) =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. If not modified the Walkshed request is send to the GISciencegroup OTP server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL: &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [http://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; &lt;br /&gt;
#** it may be necessary to change run.py because I get an error at the moment as I am not having gnome-terminal available via command line. Hence, I am starting the scripts using commandline &amp;lt;code&amp;gt;python xxx.py &amp;amp;&amp;lt;/code&amp;gt;. Attention, the CrimeService.py and AggregationService.py script needs to be started from within its folder, otherwise config.py will not find the postgis.conf file (working directory issue).&lt;br /&gt;
#**# the Management Service (for pedestrian network) will listen on http://0.0.0.0:8363/&lt;br /&gt;
#**# the Crime Service will listen on http://0.0.0.0:8366/&lt;br /&gt;
#**# the Aggregation Service will listen on http://0.0.0.0:8364/&lt;br /&gt;
#**# the POI Service will listen on http://0.0.0.0:8365/&lt;br /&gt;
#** My running processes I can see then with &amp;lt;code&amp;gt;ps -u ssteinig&amp;lt;/code&amp;gt;&lt;br /&gt;
#** ToDo: check if it is possible to use &amp;quot;subprocess.Popen&amp;quot; or &amp;quot;Multiprocess&amp;quot; (see examples on stackoverflow and [http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args here])&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test if Calgary scenario works =&amp;gt; see next part&lt;br /&gt;
&lt;br /&gt;
== '''Testing Calgary scenario''' ==&lt;br /&gt;
# choosen params: &lt;br /&gt;
#* pos lat = 51.05747321278561&lt;br /&gt;
#* pos lon = -114.0794563293457&lt;br /&gt;
#* 15 min walkshed&lt;br /&gt;
#* walkspeed 1.38 m/sec&lt;br /&gt;
# Then this is how the web browser client request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
# the subsequent call to the managment service would be: &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=Execute&amp;amp;Version=1.0.0&amp;amp;Identifier=gs:Management&amp;amp;DataInputs=StartPoint=51.0574732128,-114.079456329;WalkingTimePeriod=15;WalkingSpeed=1.38&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''Routing/OTP WPS''': this call will return the pedestrian walkshed as JSON object &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Walkshed_Pedestrian&amp;amp;datainputs=StartPoint=51.0574732128,-114.079456329;WalkingPeriod=15;WalkingSpeed=1.38;WalkshedOutput=SHED&amp;lt;/pre&amp;gt; Note, that at the moment (8. April 2014) this will re-route the request to the Calgary OTP server. &lt;br /&gt;
#* '''Crime WPS''': for the same data and the pedestrian-network model we receive a list of crime features, with the following call: &lt;br /&gt;
#** Calgary server &amp;lt;pre&amp;gt;http://136.159.122.90:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed=%7B%22type%22:%22Polygon%22,%22coordinates%22:%5B%5B%5B-114.09364571378056,51.057144582993836%5D,%5B-114.09286815708892,51.05359381755474%5D,%5B-114.09101115708,51.050834058520664%5D,%5B-114.09075927937053,51.05080998647081%5D,%5B-114.0870286,51.0516827%5D,%5B-114.08586777200182,51.04970977429437%5D,%5B-114.0835059,51.0489783%5D,%5B-114.08184778623112,51.0498709384076%5D,%5B-114.081181,51.0536508%5D,%5B-114.0793914,51.0547065%5D,%5B-114.077687,51.0557314%5D,%5B-114.0756248,51.0568823%5D,%5B-114.0750158,51.0570965%5D,%5B-114.0736901,51.0573512%5D,%5B-114.06926177015508,51.055915080229724%5D,%5B-114.06619893997784,51.05694155563417%5D,%5B-114.06579011626843,51.0581622658825%5D,%5B-114.067673398873,51.058916548778726%5D,%5B-114.07143185670641,51.061423362491404%5D,%5B-114.07184987616904,51.06168921938163%5D,%5B-114.0741837,51.0613545%5D,%5B-114.07794224224338,51.06228401160695%5D,%5B-114.07918450576179,51.06260346516831%5D,%5B-114.07993046849634,51.06280359284396%5D,%5B-114.08066137191179,51.062350982627464%5D,%5B-114.08244401432806,51.06127600012983%5D,%5B-114.08582266933304,51.061346817139835%5D,%5B-114.08616082731021,51.06129711945887%5D,%5B-114.0888935,51.0575163%5D,%5B-114.09170271289915,51.05843118482227%5D,%5B-114.09364571378056,51.057144582993836%5D%5D%5D%7D&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** Stgo test server &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** if the python server/script is started, the crime data can also be retrieved using the following from the machines web browser itself (I think so...):&amp;lt;pre&amp;gt;http://127.0.0.1:8366/crime?walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''POI WPS''' : for the following call to my Stgo Server and by using a Calgary walkshed, we receive a list of POIs (raw about 1085 POIs): &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:POI_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** the direct request to MapQuest's Search API would look like this (limited to 10 results):&amp;lt;pre&amp;gt;http://www.mapquestapi.com/search/v2/polygon?key=Fmjtd%7Cluuan90bnh%2C8w%3Do5-96r5l4&amp;amp;callback=renderBasicSearchNarrative&amp;amp;maxMatches=10&amp;amp;outFormat=json&amp;amp;polygon=51.057144583,-114.093645714,51.0535938176,-114.092868157,51.0508340585,-114.091011157,51.0508099865,-114.090759279,51.0516827,-114.0870286,51.0497097743,-114.085867772,51.0489783,-114.0835059,51.0498709384,-114.081847786,51.0536508,-114.081181,51.0547065,-114.0793914,51.0557314,-114.077687,51.0568823,-114.0756248,51.0570965,-114.0750158,51.0573512,-114.0736901,51.0559150802,-114.06926177,51.0569415556,-114.06619894,51.0581622659,-114.065790116,51.0589165488,-114.067673399,51.0614233625,-114.071431857,51.0616892194,-114.071849876,51.0613545,-114.0741837,51.0622840116,-114.077942242,51.0626034652,-114.079184506,51.0628035928,-114.079930468,51.0623509826,-114.080661372,51.0612760001,-114.082444014,51.0613468171,-114.085822669,51.0612971195,-114.086160827,51.0575163,-114.0888935,51.0584311848,-114.091702713,51.057144583,-114.093645714&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Modify code for Santiago''' ==&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* modify map_center LatLng coordinates in client/js/main.js from Calgary to Santiago&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* OTP location in backend (jar file)  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;br /&gt;
#* Test position:  lat_stgo = -33.426033 , lon_stgo = -70.602804&lt;br /&gt;
#* Test walkshed: walkshed = '{&amp;quot;type&amp;quot;:&amp;quot;Polygon&amp;quot;,&amp;quot;coordinates&amp;quot;:[[[-70.61385721469895,-33.42850272750062],[-70.61356058839867,-33.42798359634024],[-70.61166719271597,-33.424376104229665],[-70.61149124381222,-33.42287365565667],[-70.61147936570502,-33.422769669950966],[-70.61058034229507,-33.420920833612726],[-70.60923160172507,-33.417698238606526],[-70.60613267402977,-33.41653969373451],[-70.60437449601663,-33.41620583088737],[-70.60030327178143,-33.41791372437482],[-70.59803167295307,-33.41932217260385],[-70.5947452603848,-33.42089947313322],[-70.59156549154828,-33.42329525340425],[-70.5909228581005,-33.42413497204158],[-70.59144108932382,-33.42607438097505],[-70.59349562786792,-33.428834396229],[-70.59643931216023,-33.43259656603248],[-70.59747457131638,-33.43394922819952],[-70.59901486695664,-33.435784475786605],[-70.60099188713762,-33.43629105037291],[-70.60509364804035,-33.43430330941572],[-70.6057986466706,-33.43396166890046],[-70.60799109097594,-33.43291457173286],[-70.61016518642498,-33.43161181061516],[-70.61278409214731,-33.43061447386348],[-70.61385721469895,-33.42850272750062]]]}'&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-21T21:10:26Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Modify code for Santiago */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
== '''General prep steps''' ==&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
#* when using an existing VM image : &lt;br /&gt;
#** fix network issue (remove old card settings in ''/etc/udev/rules.d/70-persistent-net.rules'' and reboot)&lt;br /&gt;
#** set new machine name (in ''/etc/hostname'')&lt;br /&gt;
#** check if apache2 starts with an error message or not (for a fix see [[Setting up geonode]] &amp;gt; Basic Install for GeoNode v. 2.0)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== '''Install for Calgary''' ==&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end-point IP (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put client app in Apache's ''/var/www/'' (e.g.: /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; add this layer to the layer selection and set as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get back-end code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = one for each model or a single file for all (made recently by EP) =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' (which may be located under /var/lib/tomcat7/webapps/geoserver/...) =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. If not modified the Walkshed request is send to the GISciencegroup OTP server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL: &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [http://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; &lt;br /&gt;
#** it may be necessary to change run.py because I get an error at the moment as I am not having gnome-terminal available via command line. Hence, I am starting the scripts using commandline &amp;lt;code&amp;gt;python xxx.py &amp;amp;&amp;lt;/code&amp;gt;. Attention, the CrimeService.py and AggregationService.py script needs to be started from within its folder, otherwise config.py will not find the postgis.conf file (working directory issue).&lt;br /&gt;
#**# the Management Service (for pedestrian network) will listen on http://0.0.0.0:8363/&lt;br /&gt;
#**# the Crime Service will listen on http://0.0.0.0:8366/&lt;br /&gt;
#**# the Aggregation Service will listen on http://0.0.0.0:8364/&lt;br /&gt;
#**# the POI Service will listen on http://0.0.0.0:8365/&lt;br /&gt;
#** My running processes I can see then with &amp;lt;code&amp;gt;ps -u ssteinig&amp;lt;/code&amp;gt;&lt;br /&gt;
#** ToDo: check if it is possible to use &amp;quot;subprocess.Popen&amp;quot; or &amp;quot;Multiprocess&amp;quot; (see examples on stackoverflow and [http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args here])&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test if Calgary scenario works =&amp;gt; see next part&lt;br /&gt;
&lt;br /&gt;
== '''Testing Calgary scenario''' ==&lt;br /&gt;
# choosen params: &lt;br /&gt;
#* pos lat = 51.05747321278561&lt;br /&gt;
#* pos lon = -114.0794563293457&lt;br /&gt;
#* 15 min walkshed&lt;br /&gt;
#* walkspeed 1.38 m/sec&lt;br /&gt;
# Then this is how the web browser client request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
# the subsequent call to the managment service would be: &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=Execute&amp;amp;Version=1.0.0&amp;amp;Identifier=gs:Management&amp;amp;DataInputs=StartPoint=51.0574732128,-114.079456329;WalkingTimePeriod=15;WalkingSpeed=1.38&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''Routing/OTP WPS''': this call will return the pedestrian walkshed as JSON object &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Walkshed_Pedestrian&amp;amp;datainputs=StartPoint=51.0574732128,-114.079456329;WalkingPeriod=15;WalkingSpeed=1.38;WalkshedOutput=SHED&amp;lt;/pre&amp;gt; Note, that at the moment (8. April 2014) this will re-route the request to the Calgary OTP server. &lt;br /&gt;
#* '''Crime WPS''': for the same data and the pedestrian-network model we receive a list of crime features, with the following call: &lt;br /&gt;
#** Calgary server &amp;lt;pre&amp;gt;http://136.159.122.90:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed=%7B%22type%22:%22Polygon%22,%22coordinates%22:%5B%5B%5B-114.09364571378056,51.057144582993836%5D,%5B-114.09286815708892,51.05359381755474%5D,%5B-114.09101115708,51.050834058520664%5D,%5B-114.09075927937053,51.05080998647081%5D,%5B-114.0870286,51.0516827%5D,%5B-114.08586777200182,51.04970977429437%5D,%5B-114.0835059,51.0489783%5D,%5B-114.08184778623112,51.0498709384076%5D,%5B-114.081181,51.0536508%5D,%5B-114.0793914,51.0547065%5D,%5B-114.077687,51.0557314%5D,%5B-114.0756248,51.0568823%5D,%5B-114.0750158,51.0570965%5D,%5B-114.0736901,51.0573512%5D,%5B-114.06926177015508,51.055915080229724%5D,%5B-114.06619893997784,51.05694155563417%5D,%5B-114.06579011626843,51.0581622658825%5D,%5B-114.067673398873,51.058916548778726%5D,%5B-114.07143185670641,51.061423362491404%5D,%5B-114.07184987616904,51.06168921938163%5D,%5B-114.0741837,51.0613545%5D,%5B-114.07794224224338,51.06228401160695%5D,%5B-114.07918450576179,51.06260346516831%5D,%5B-114.07993046849634,51.06280359284396%5D,%5B-114.08066137191179,51.062350982627464%5D,%5B-114.08244401432806,51.06127600012983%5D,%5B-114.08582266933304,51.061346817139835%5D,%5B-114.08616082731021,51.06129711945887%5D,%5B-114.0888935,51.0575163%5D,%5B-114.09170271289915,51.05843118482227%5D,%5B-114.09364571378056,51.057144582993836%5D%5D%5D%7D&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** Stgo test server &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** if the python server/script is started, the crime data can also be retrieved using the following from the machines web browser itself (I think so...):&amp;lt;pre&amp;gt;http://127.0.0.1:8366/crime?walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''POI WPS''' : for the following call to my Stgo Server and by using a Calgary walkshed, we receive a list of POIs (raw about 1085 POIs): &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:POI_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** the direct request to MapQuest's Search API would look like this (limited to 10 results):&amp;lt;pre&amp;gt;http://www.mapquestapi.com/search/v2/polygon?key=Fmjtd%7Cluuan90bnh%2C8w%3Do5-96r5l4&amp;amp;callback=renderBasicSearchNarrative&amp;amp;maxMatches=10&amp;amp;outFormat=json&amp;amp;polygon=51.057144583,-114.093645714,51.0535938176,-114.092868157,51.0508340585,-114.091011157,51.0508099865,-114.090759279,51.0516827,-114.0870286,51.0497097743,-114.085867772,51.0489783,-114.0835059,51.0498709384,-114.081847786,51.0536508,-114.081181,51.0547065,-114.0793914,51.0557314,-114.077687,51.0568823,-114.0756248,51.0570965,-114.0750158,51.0573512,-114.0736901,51.0559150802,-114.06926177,51.0569415556,-114.06619894,51.0581622659,-114.065790116,51.0589165488,-114.067673399,51.0614233625,-114.071431857,51.0616892194,-114.071849876,51.0613545,-114.0741837,51.0622840116,-114.077942242,51.0626034652,-114.079184506,51.0628035928,-114.079930468,51.0623509826,-114.080661372,51.0612760001,-114.082444014,51.0613468171,-114.085822669,51.0612971195,-114.086160827,51.0575163,-114.0888935,51.0584311848,-114.091702713,51.057144583,-114.093645714&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Modify code for Santiago''' ==&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* OTP location in backend (jar file)  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;br /&gt;
#* Test position:  lat_stgo = -33.426033 , lon_stgo = -70.602804&lt;br /&gt;
#* Test walkshed: walkshed = '{&amp;quot;type&amp;quot;:&amp;quot;Polygon&amp;quot;,&amp;quot;coordinates&amp;quot;:[[[-70.61385721469895,-33.42850272750062],[-70.61356058839867,-33.42798359634024],[-70.61166719271597,-33.424376104229665],[-70.61149124381222,-33.42287365565667],[-70.61147936570502,-33.422769669950966],[-70.61058034229507,-33.420920833612726],[-70.60923160172507,-33.417698238606526],[-70.60613267402977,-33.41653969373451],[-70.60437449601663,-33.41620583088737],[-70.60030327178143,-33.41791372437482],[-70.59803167295307,-33.41932217260385],[-70.5947452603848,-33.42089947313322],[-70.59156549154828,-33.42329525340425],[-70.5909228581005,-33.42413497204158],[-70.59144108932382,-33.42607438097505],[-70.59349562786792,-33.428834396229],[-70.59643931216023,-33.43259656603248],[-70.59747457131638,-33.43394922819952],[-70.59901486695664,-33.435784475786605],[-70.60099188713762,-33.43629105037291],[-70.60509364804035,-33.43430330941572],[-70.6057986466706,-33.43396166890046],[-70.60799109097594,-33.43291457173286],[-70.61016518642498,-33.43161181061516],[-70.61278409214731,-33.43061447386348],[-70.61385721469895,-33.42850272750062]]]}'&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Accessing_server_infra</id>
		<title>Accessing server infra</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Accessing_server_infra"/>
				<updated>2014-04-21T20:40:30Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* unix commands */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== apt-get ==&lt;br /&gt;
an intro can be found [http://newbiedoc.sourceforge.net/tutorials/apt-get-intro/info.html here]&lt;br /&gt;
* see what is installed &amp;lt;code&amp;gt;dpkg -l&amp;lt;/code&amp;gt;&lt;br /&gt;
* info on a  particular package &amp;lt;code&amp;gt;apt-cache show PackageName&amp;lt;/code&amp;gt;&lt;br /&gt;
* upgrade &amp;lt;code&amp;gt;apt-get upgrade PackageName&amp;lt;/code&amp;gt; or: &amp;lt;code&amp;gt;sudo apt-get install libssl1.0.0&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== git stuff ==&lt;br /&gt;
*git diff&lt;br /&gt;
*git pull&lt;br /&gt;
*git status&lt;br /&gt;
*git reset --hard HEAD&lt;br /&gt;
*git reset HEAD~1&lt;br /&gt;
*git reset HEAD opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/analyst/IsoChrone.java&lt;br /&gt;
*git log -p&lt;br /&gt;
*git add opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/analyst/IsoChrone.java&lt;br /&gt;
*git commit -m 'added debug code to be able to figure why some edges are traversed to fast (aside fromom u-shaped roads)'&lt;br /&gt;
*gitk&lt;br /&gt;
*git push origin master&lt;br /&gt;
*git show-ref&lt;br /&gt;
*git stash list&lt;br /&gt;
*git log origin/master..master&lt;br /&gt;
*git fetch upstream&lt;br /&gt;
*git remote add upstream https://github.com/openplans/OpenTripPlanner.git&lt;br /&gt;
*git remote show origin&lt;br /&gt;
*git remote set-url origin git://github.com/mentaer/OpenTripPlanner.git&lt;br /&gt;
*git remote set-url origin git@github.com:mentaer/OpenTripPlanner.git&lt;br /&gt;
*git diff &amp;gt; /Volumes/WINDOOF/walkingslopeeffects.patch&lt;br /&gt;
*patch -p1 -R &amp;lt; IsoChrone2.patch&lt;br /&gt;
*git apply --check /Volumes/WINDOOF/IsoChrone.patch&lt;br /&gt;
&lt;br /&gt;
== maven stuff ==&lt;br /&gt;
*mvn package -DskipTests&lt;br /&gt;
&lt;br /&gt;
== postgres stuff ==&lt;br /&gt;
&lt;br /&gt;
*echo 'export PATH=/Library/PostgreSQL/9.2/bin:$PATH' &amp;gt;&amp;gt; ~/.bash_profile&lt;br /&gt;
&lt;br /&gt;
*psql&lt;br /&gt;
*sudo mkdir /Library/PostgreSQL/9.2/data/&lt;br /&gt;
*sudo chown postgres /Library/PostgreSQL/9.2/data/&lt;br /&gt;
*sudo -u postgres initdb -D /Library/PostgreSQL/9.2/data/&lt;br /&gt;
*service postgresql start&lt;br /&gt;
*sudo -u postgres pg_ctl -D /Library/PostgreSQL/9.2/data -l logfile start&lt;br /&gt;
*sudo -u postgres postgres -D /Library/PostgreSQL/9.2/data &amp;amp;&lt;br /&gt;
*sudo -u postgres createdb santiagotest&lt;br /&gt;
*sudo -u postgres createuser -P -s -e mentaer&lt;br /&gt;
*psql santiagotest&lt;br /&gt;
&lt;br /&gt;
== using VirtualBox ==&lt;br /&gt;
&amp;quot; use ''ssh -X sstein..@xxx'' to enable a visual client&lt;br /&gt;
* vboxgtk (start visual client)&lt;br /&gt;
&lt;br /&gt;
create and start a VM from comandline:&lt;br /&gt;
* &amp;lt;code&amp;gt;VBoxManage createvm --name ubuntu --register&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;VBoxManage modifyvm ubuntu --ostype ubuntu_64 --cpus 4&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;VBoxManage modifyvm ubuntu --memory 8000&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;VBoxManage startvm ubuntu&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
other:&lt;br /&gt;
* options of ip-addressing/web access: NAT (Network Address Translation) or Bridge (see also this [http://catlingmindswipe.blogspot.com/2012/06/how-to-virtualbox-networking-part-two.html blog entry]) &lt;br /&gt;
* downloading .iso archives/vm from OSGeo (use commands ''curl'' or ''wget -c''), e.g.:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget -c &amp;quot;http://downloads.sourceforge.net/project/osgeo-live/7.0/osgeo-live-7.0.iso?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fosgeo-live%2Ffiles%2F%2F7.0%2Fosgeo-live-7.0.iso%2Fdownload&amp;amp;ts=1384444616&amp;amp;use_mirror=ufpr&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* showing list of running VMs: &amp;lt;code&amp;gt;VBoxManage list runningvms&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
a VM contains 3 files: .img + .vbox (an editable xml) + .vbox-prev&lt;br /&gt;
&lt;br /&gt;
== OpenTripPlanner ==&lt;br /&gt;
* start with &amp;quot;sh start-server.sh&amp;quot;; use &amp;quot;&amp;amp;&amp;quot; at the end to keep the process running&lt;br /&gt;
* make sure that winstone.jar is executable, with chmod 755&lt;br /&gt;
* define in the start-server.sh file also where the webapps folder is located (physical location), so winstone knows that&lt;br /&gt;
* define in the WEB-INF/classes/data-sources.xml file where the graph is stored (physical location) - the files is within /otp/webapps/opentripplanner-api-webapp.war (or: the deflated war folder)&lt;br /&gt;
* kill winstone server (or OTP) process: use &amp;lt;pre&amp;gt;ps aux | grep winstone&amp;lt;/pre&amp;gt; to find the associated PID, and use &amp;lt;code&amp;gt;kill pid&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== unix commands ==&lt;br /&gt;
http://www.computerhope.com/issues/ch000623.htm&lt;br /&gt;
&lt;br /&gt;
connect to server:&lt;br /&gt;
*ssh stefan@136.159.xxx.xxx&lt;br /&gt;
*ssh sstein@146.155.xxx.xxx.&lt;br /&gt;
*pid&lt;br /&gt;
* (sudo) kill pid, e.g. kill 320&lt;br /&gt;
*top or: htop&lt;br /&gt;
*process&lt;br /&gt;
* &amp;quot;sudo shutdown now -h&amp;quot; or &amp;quot;sudo reboot&amp;quot;&lt;br /&gt;
* seeing system info: &amp;lt;code&amp;gt;cat /etc/*-release&amp;lt;/code&amp;gt; + htop (needs to be installed first)&lt;br /&gt;
* '''grep''': search for files in the folder ''/var/.../static/'' that contain the string ''nav-pills'' with: &amp;lt;code&amp;gt;grep -r -i &amp;quot;nav-pills&amp;quot; /var/www/geonode/static/&amp;lt;/code&amp;gt;&lt;br /&gt;
* find files/folders by name: &amp;lt;code&amp;gt;find / -name game&amp;lt;/code&amp;gt;&lt;br /&gt;
and:&lt;br /&gt;
*commands to display/figure out processes: http://www.howtogeek.com/107217/&lt;br /&gt;
*kill process: http://www.cyberciti.biz/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems/&lt;br /&gt;
*configuration info: http://www.cyberciti.biz/faq/linux-command-to-find-the-system-configuration-and-hardware-information/&lt;br /&gt;
*use of ''grep'': http://www.cyberciti.biz/faq/howto-use-grep-command-in-linux-unix/&lt;br /&gt;
*used ports: &amp;lt;code&amp;gt;netstat -a&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installing lightweight XFCE Desktop GUI on Ubuntu Server ==&lt;br /&gt;
* use &amp;lt;code&amp;gt;sudo apt-get install xubuntu-desktop&amp;lt;/code&amp;gt; to install XFCE client (see [http://help.ubuntu.com/community/ServerGUI here]).&lt;br /&gt;
* this will also install xauth, which allows remote window clients&lt;br /&gt;
* disable start of GUI-based login on system startup with Grub (taken from [http://askubuntu.com/questions/174312/how-can-i-set-my-ubuntu-12-04-lts-to-boot-to-console-without-gui here]):&lt;br /&gt;
** Change (edit) in /etc/default/grub file: &amp;lt;code&amp;gt;GRUB_CMDLINE_LINUX_DEFAULT=&amp;quot;text&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
** then do &amp;lt;code&amp;gt;sudo update-grub&amp;lt;/code&amp;gt;&lt;br /&gt;
* start the desktop GUI session using &amp;lt;code&amp;gt;startx&amp;lt;/code&amp;gt;&lt;br /&gt;
* end the desktop GUI session using &amp;quot;logout&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
== Enabling Remote Desktop for Windows ==&lt;br /&gt;
got the info from [http://www.ubuntututorials.com/remote-desktop-ubuntu-12-04-windows-7/ here]&lt;br /&gt;
* install XRDP: &amp;lt;code&amp;gt;sudo apt-get install xrdp&amp;lt;/code&amp;gt;&lt;br /&gt;
* connect via Windows Remote Desktop using the IP etc. &lt;br /&gt;
* if not needed, switch off the remote desktop server using: &amp;lt;code&amp;gt;sudo service xrdp stop&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== other stuff ==&lt;br /&gt;
* gdalinfo cgydem_fromgrid.tif&lt;br /&gt;
* if computer crashs: boot from a LiveDVD and the run &amp;lt;code&amp;gt;fsck&amp;lt;/code&amp;gt; (see http://www.thegeekstuff.com/2012/08/fsck-command-examples/)&lt;br /&gt;
* '''compress''': &lt;br /&gt;
** files by using: &amp;lt;code&amp;gt;zip newzipfile.zip fileToZip.obj&amp;lt;/code&amp;gt;&lt;br /&gt;
** whole folders by using: &amp;lt;code&amp;gt;tar -cvzf tarfilename.tgz /folder/to/compress&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''uncompress''':&lt;br /&gt;
** zip files, using: &amp;lt;code&amp;gt;unzip filename.zip&amp;lt;/code&amp;gt;, &lt;br /&gt;
** bz2 files with: &amp;lt;code&amp;gt;bunzip2 filename.bz2&amp;lt;/code&amp;gt;&lt;br /&gt;
** tar files: &amp;lt;code&amp;gt;tar -C / -xvzf tarfilename.tgz&amp;lt;/code&amp;gt; . ''Attention !!!'' This will restore the data exactly in the same place on the computer, and overwrite existing folders and files.&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-21T20:38:55Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Install for Calgary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
== '''General prep steps''' ==&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
#* when using an existing VM image : &lt;br /&gt;
#** fix network issue (remove old card settings in ''/etc/udev/rules.d/70-persistent-net.rules'' and reboot)&lt;br /&gt;
#** set new machine name (in ''/etc/hostname'')&lt;br /&gt;
#** check if apache2 starts with an error message or not (for a fix see [[Setting up geonode]] &amp;gt; Basic Install for GeoNode v. 2.0)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== '''Install for Calgary''' ==&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end-point IP (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put client app in Apache's ''/var/www/'' (e.g.: /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; add this layer to the layer selection and set as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get back-end code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = one for each model or a single file for all (made recently by EP) =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' (which may be located under /var/lib/tomcat7/webapps/geoserver/...) =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. If not modified the Walkshed request is send to the GISciencegroup OTP server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL: &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [http://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; &lt;br /&gt;
#** it may be necessary to change run.py because I get an error at the moment as I am not having gnome-terminal available via command line. Hence, I am starting the scripts using commandline &amp;lt;code&amp;gt;python xxx.py &amp;amp;&amp;lt;/code&amp;gt;. Attention, the CrimeService.py and AggregationService.py script needs to be started from within its folder, otherwise config.py will not find the postgis.conf file (working directory issue).&lt;br /&gt;
#**# the Management Service (for pedestrian network) will listen on http://0.0.0.0:8363/&lt;br /&gt;
#**# the Crime Service will listen on http://0.0.0.0:8366/&lt;br /&gt;
#**# the Aggregation Service will listen on http://0.0.0.0:8364/&lt;br /&gt;
#**# the POI Service will listen on http://0.0.0.0:8365/&lt;br /&gt;
#** My running processes I can see then with &amp;lt;code&amp;gt;ps -u ssteinig&amp;lt;/code&amp;gt;&lt;br /&gt;
#** ToDo: check if it is possible to use &amp;quot;subprocess.Popen&amp;quot; or &amp;quot;Multiprocess&amp;quot; (see examples on stackoverflow and [http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args here])&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test if Calgary scenario works =&amp;gt; see next part&lt;br /&gt;
&lt;br /&gt;
== '''Testing Calgary scenario''' ==&lt;br /&gt;
# choosen params: &lt;br /&gt;
#* pos lat = 51.05747321278561&lt;br /&gt;
#* pos lon = -114.0794563293457&lt;br /&gt;
#* 15 min walkshed&lt;br /&gt;
#* walkspeed 1.38 m/sec&lt;br /&gt;
# Then this is how the web browser client request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
# the subsequent call to the managment service would be: &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=Execute&amp;amp;Version=1.0.0&amp;amp;Identifier=gs:Management&amp;amp;DataInputs=StartPoint=51.0574732128,-114.079456329;WalkingTimePeriod=15;WalkingSpeed=1.38&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''Routing/OTP WPS''': this call will return the pedestrian walkshed as JSON object &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Walkshed_Pedestrian&amp;amp;datainputs=StartPoint=51.0574732128,-114.079456329;WalkingPeriod=15;WalkingSpeed=1.38;WalkshedOutput=SHED&amp;lt;/pre&amp;gt; Note, that at the moment (8. April 2014) this will re-route the request to the Calgary OTP server. &lt;br /&gt;
#* '''Crime WPS''': for the same data and the pedestrian-network model we receive a list of crime features, with the following call: &lt;br /&gt;
#** Calgary server &amp;lt;pre&amp;gt;http://136.159.122.90:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed=%7B%22type%22:%22Polygon%22,%22coordinates%22:%5B%5B%5B-114.09364571378056,51.057144582993836%5D,%5B-114.09286815708892,51.05359381755474%5D,%5B-114.09101115708,51.050834058520664%5D,%5B-114.09075927937053,51.05080998647081%5D,%5B-114.0870286,51.0516827%5D,%5B-114.08586777200182,51.04970977429437%5D,%5B-114.0835059,51.0489783%5D,%5B-114.08184778623112,51.0498709384076%5D,%5B-114.081181,51.0536508%5D,%5B-114.0793914,51.0547065%5D,%5B-114.077687,51.0557314%5D,%5B-114.0756248,51.0568823%5D,%5B-114.0750158,51.0570965%5D,%5B-114.0736901,51.0573512%5D,%5B-114.06926177015508,51.055915080229724%5D,%5B-114.06619893997784,51.05694155563417%5D,%5B-114.06579011626843,51.0581622658825%5D,%5B-114.067673398873,51.058916548778726%5D,%5B-114.07143185670641,51.061423362491404%5D,%5B-114.07184987616904,51.06168921938163%5D,%5B-114.0741837,51.0613545%5D,%5B-114.07794224224338,51.06228401160695%5D,%5B-114.07918450576179,51.06260346516831%5D,%5B-114.07993046849634,51.06280359284396%5D,%5B-114.08066137191179,51.062350982627464%5D,%5B-114.08244401432806,51.06127600012983%5D,%5B-114.08582266933304,51.061346817139835%5D,%5B-114.08616082731021,51.06129711945887%5D,%5B-114.0888935,51.0575163%5D,%5B-114.09170271289915,51.05843118482227%5D,%5B-114.09364571378056,51.057144582993836%5D%5D%5D%7D&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** Stgo test server &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** if the python server/script is started, the crime data can also be retrieved using the following from the machines web browser itself (I think so...):&amp;lt;pre&amp;gt;http://127.0.0.1:8366/crime?walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''POI WPS''' : for the following call to my Stgo Server and by using a Calgary walkshed, we receive a list of POIs (raw about 1085 POIs): &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:POI_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** the direct request to MapQuest's Search API would look like this (limited to 10 results):&amp;lt;pre&amp;gt;http://www.mapquestapi.com/search/v2/polygon?key=Fmjtd%7Cluuan90bnh%2C8w%3Do5-96r5l4&amp;amp;callback=renderBasicSearchNarrative&amp;amp;maxMatches=10&amp;amp;outFormat=json&amp;amp;polygon=51.057144583,-114.093645714,51.0535938176,-114.092868157,51.0508340585,-114.091011157,51.0508099865,-114.090759279,51.0516827,-114.0870286,51.0497097743,-114.085867772,51.0489783,-114.0835059,51.0498709384,-114.081847786,51.0536508,-114.081181,51.0547065,-114.0793914,51.0557314,-114.077687,51.0568823,-114.0756248,51.0570965,-114.0750158,51.0573512,-114.0736901,51.0559150802,-114.06926177,51.0569415556,-114.06619894,51.0581622659,-114.065790116,51.0589165488,-114.067673399,51.0614233625,-114.071431857,51.0616892194,-114.071849876,51.0613545,-114.0741837,51.0622840116,-114.077942242,51.0626034652,-114.079184506,51.0628035928,-114.079930468,51.0623509826,-114.080661372,51.0612760001,-114.082444014,51.0613468171,-114.085822669,51.0612971195,-114.086160827,51.0575163,-114.0888935,51.0584311848,-114.091702713,51.057144583,-114.093645714&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Modify code for Santiago''' ==&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* OTP location in backend (jar file)  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-21T20:29:24Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Install for Calgary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
== '''General prep steps''' ==&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
#* when using an existing VM image : &lt;br /&gt;
#** fix network issue (remove old card settings in ''/etc/udev/rules.d/70-persistent-net.rules'' and reboot)&lt;br /&gt;
#** set new machine name (in ''/etc/hostname'')&lt;br /&gt;
#** check if apache2 starts with an error message or not (for a fix see [[Setting up geonode]] &amp;gt; Basic Install for GeoNode v. 2.0)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== '''Install for Calgary''' ==&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end-point IP (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put client app in Apache's ''/var/www/'' (e.g.: /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; add this layer to the layer selection and set as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get back-end code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = one for each model or a single file for all (made recently by EP) =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' (which may be located under /var/lib/tomcat7/webapps/geoserver/...) =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. If not modified the Walkshed request is send to the GISciencegroup OTP server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL: &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [http://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; &lt;br /&gt;
#** it may be necessary to change run.py because I get an error at the moment as I am not having gnome-terminal available via command line. Hence, I am starting the scripts using commandline &amp;lt;code&amp;gt;python xxx.py &amp;amp;&amp;lt;/code&amp;gt;. Attention, the CrimeService.py and AggregationService.py script needs to be started from within its folder, otherwise config.py will not find the postgis.conf file (working directory issue).&lt;br /&gt;
#**# the Management Service (for pedestrian network) will listen on http://0.0.0.0:8363/&lt;br /&gt;
#**# the Crime Service will listen on http://0.0.0.0:8366/&lt;br /&gt;
#**# the Aggregation Service will listen on http://0.0.0.0:8364/&lt;br /&gt;
#**# the POI Service will listen on http://0.0.0.0:8365/&lt;br /&gt;
#** My running processes I can see then with &amp;lt;code&amp;gt;ps -u ssteinig&amp;lt;/code&amp;gt;&lt;br /&gt;
#** ToDo: check if it is possible to use &amp;quot;subprocess.Popen&amp;quot; or &amp;quot;Multiprocess&amp;quot; (see examples on stackoverflow and [http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args here])&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test if Calgary scenario works =&amp;gt; see next part&lt;br /&gt;
&lt;br /&gt;
== '''Testing Calgary scenario''' ==&lt;br /&gt;
# choosen params: &lt;br /&gt;
#* pos lat = 51.05747321278561&lt;br /&gt;
#* pos lon = -114.0794563293457&lt;br /&gt;
#* 15 min walkshed&lt;br /&gt;
#* walkspeed 1.38 m/sec&lt;br /&gt;
# Then this is how the web browser client request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
# the subsequent call to the managment service would be: &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=Execute&amp;amp;Version=1.0.0&amp;amp;Identifier=gs:Management&amp;amp;DataInputs=StartPoint=51.0574732128,-114.079456329;WalkingTimePeriod=15;WalkingSpeed=1.38&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''Routing/OTP WPS''': this call will return the pedestrian walkshed as JSON object &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Walkshed_Pedestrian&amp;amp;datainputs=StartPoint=51.0574732128,-114.079456329;WalkingPeriod=15;WalkingSpeed=1.38;WalkshedOutput=SHED&amp;lt;/pre&amp;gt; Note, that at the moment (8. April 2014) this will re-route the request to the Calgary OTP server. &lt;br /&gt;
#* '''Crime WPS''': for the same data and the pedestrian-network model we receive a list of crime features, with the following call: &lt;br /&gt;
#** Calgary server &amp;lt;pre&amp;gt;http://136.159.122.90:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed=%7B%22type%22:%22Polygon%22,%22coordinates%22:%5B%5B%5B-114.09364571378056,51.057144582993836%5D,%5B-114.09286815708892,51.05359381755474%5D,%5B-114.09101115708,51.050834058520664%5D,%5B-114.09075927937053,51.05080998647081%5D,%5B-114.0870286,51.0516827%5D,%5B-114.08586777200182,51.04970977429437%5D,%5B-114.0835059,51.0489783%5D,%5B-114.08184778623112,51.0498709384076%5D,%5B-114.081181,51.0536508%5D,%5B-114.0793914,51.0547065%5D,%5B-114.077687,51.0557314%5D,%5B-114.0756248,51.0568823%5D,%5B-114.0750158,51.0570965%5D,%5B-114.0736901,51.0573512%5D,%5B-114.06926177015508,51.055915080229724%5D,%5B-114.06619893997784,51.05694155563417%5D,%5B-114.06579011626843,51.0581622658825%5D,%5B-114.067673398873,51.058916548778726%5D,%5B-114.07143185670641,51.061423362491404%5D,%5B-114.07184987616904,51.06168921938163%5D,%5B-114.0741837,51.0613545%5D,%5B-114.07794224224338,51.06228401160695%5D,%5B-114.07918450576179,51.06260346516831%5D,%5B-114.07993046849634,51.06280359284396%5D,%5B-114.08066137191179,51.062350982627464%5D,%5B-114.08244401432806,51.06127600012983%5D,%5B-114.08582266933304,51.061346817139835%5D,%5B-114.08616082731021,51.06129711945887%5D,%5B-114.0888935,51.0575163%5D,%5B-114.09170271289915,51.05843118482227%5D,%5B-114.09364571378056,51.057144582993836%5D%5D%5D%7D&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** Stgo test server &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** if the python server/script is started, the crime data can also be retrieved using the following from the machines web browser itself (I think so...):&amp;lt;pre&amp;gt;http://127.0.0.1:8366/crime?walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''POI WPS''' : for the following call to my Stgo Server and by using a Calgary walkshed, we receive a list of POIs (raw about 1085 POIs): &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:POI_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** the direct request to MapQuest's Search API would look like this (limited to 10 results):&amp;lt;pre&amp;gt;http://www.mapquestapi.com/search/v2/polygon?key=Fmjtd%7Cluuan90bnh%2C8w%3Do5-96r5l4&amp;amp;callback=renderBasicSearchNarrative&amp;amp;maxMatches=10&amp;amp;outFormat=json&amp;amp;polygon=51.057144583,-114.093645714,51.0535938176,-114.092868157,51.0508340585,-114.091011157,51.0508099865,-114.090759279,51.0516827,-114.0870286,51.0497097743,-114.085867772,51.0489783,-114.0835059,51.0498709384,-114.081847786,51.0536508,-114.081181,51.0547065,-114.0793914,51.0557314,-114.077687,51.0568823,-114.0756248,51.0570965,-114.0750158,51.0573512,-114.0736901,51.0559150802,-114.06926177,51.0569415556,-114.06619894,51.0581622659,-114.065790116,51.0589165488,-114.067673399,51.0614233625,-114.071431857,51.0616892194,-114.071849876,51.0613545,-114.0741837,51.0622840116,-114.077942242,51.0626034652,-114.079184506,51.0628035928,-114.079930468,51.0623509826,-114.080661372,51.0612760001,-114.082444014,51.0613468171,-114.085822669,51.0612971195,-114.086160827,51.0575163,-114.0888935,51.0584311848,-114.091702713,51.057144583,-114.093645714&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Modify code for Santiago''' ==&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* OTP location in backend (jar file)  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-21T20:22:32Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Install for Calgary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
== '''General prep steps''' ==&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
#* when using an existing VM image : &lt;br /&gt;
#** fix network issue (remove old card settings in ''/etc/udev/rules.d/70-persistent-net.rules'' and reboot)&lt;br /&gt;
#** set new machine name (in ''/etc/hostname'')&lt;br /&gt;
#** check if apache2 starts with an error message or not (for a fix see [[Setting up geonode]] &amp;gt; Basic Install for GeoNode v. 2.0)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== '''Install for Calgary''' ==&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end-point IP (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put client app in Apache's ''/var/www/'' (e.g.: /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; add this layer to the layer selection and set as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get back-end code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = one for each model =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' (which may be located under /var/lib/tomcat7/webapps/geoserver/...) =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. If not modified the Walkshed request is send to the GISciencegroup OTP server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL: &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [http://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; &lt;br /&gt;
#** it may be necessary to change run.py because I get an error at the moment as I am not having gnome-terminal available via command line. Hence, I am starting the scripts using commandline &amp;lt;code&amp;gt;python xxx.py &amp;amp;&amp;lt;/code&amp;gt;. Attention, the CrimeService.py and AggregationService.py script needs to be started from within its folder, otherwise config.py will not find the postgis.conf file (working directory issue).&lt;br /&gt;
#**# the Management Service (for pedestrian network) will listen on http://0.0.0.0:8363/&lt;br /&gt;
#**# the Crime Service will listen on http://0.0.0.0:8366/&lt;br /&gt;
#**# the Aggregation Service will listen on http://0.0.0.0:8364/&lt;br /&gt;
#**# the POI Service will listen on http://0.0.0.0:8365/&lt;br /&gt;
#** My running processes I can see then with &amp;lt;code&amp;gt;ps -u ssteinig&amp;lt;/code&amp;gt;&lt;br /&gt;
#** ToDo: check if it is possible to use &amp;quot;subprocess.Popen&amp;quot; or &amp;quot;Multiprocess&amp;quot; (see examples on stackoverflow and [http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args here])&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test if Calgary scenario works =&amp;gt; see next part&lt;br /&gt;
&lt;br /&gt;
== '''Testing Calgary scenario''' ==&lt;br /&gt;
# choosen params: &lt;br /&gt;
#* pos lat = 51.05747321278561&lt;br /&gt;
#* pos lon = -114.0794563293457&lt;br /&gt;
#* 15 min walkshed&lt;br /&gt;
#* walkspeed 1.38 m/sec&lt;br /&gt;
# Then this is how the web browser client request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
# the subsequent call to the managment service would be: &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=Execute&amp;amp;Version=1.0.0&amp;amp;Identifier=gs:Management&amp;amp;DataInputs=StartPoint=51.0574732128,-114.079456329;WalkingTimePeriod=15;WalkingSpeed=1.38&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''Routing/OTP WPS''': this call will return the pedestrian walkshed as JSON object &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Walkshed_Pedestrian&amp;amp;datainputs=StartPoint=51.0574732128,-114.079456329;WalkingPeriod=15;WalkingSpeed=1.38;WalkshedOutput=SHED&amp;lt;/pre&amp;gt; Note, that at the moment (8. April 2014) this will re-route the request to the Calgary OTP server. &lt;br /&gt;
#* '''Crime WPS''': for the same data and the pedestrian-network model we receive a list of crime features, with the following call: &lt;br /&gt;
#** Calgary server &amp;lt;pre&amp;gt;http://136.159.122.90:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed=%7B%22type%22:%22Polygon%22,%22coordinates%22:%5B%5B%5B-114.09364571378056,51.057144582993836%5D,%5B-114.09286815708892,51.05359381755474%5D,%5B-114.09101115708,51.050834058520664%5D,%5B-114.09075927937053,51.05080998647081%5D,%5B-114.0870286,51.0516827%5D,%5B-114.08586777200182,51.04970977429437%5D,%5B-114.0835059,51.0489783%5D,%5B-114.08184778623112,51.0498709384076%5D,%5B-114.081181,51.0536508%5D,%5B-114.0793914,51.0547065%5D,%5B-114.077687,51.0557314%5D,%5B-114.0756248,51.0568823%5D,%5B-114.0750158,51.0570965%5D,%5B-114.0736901,51.0573512%5D,%5B-114.06926177015508,51.055915080229724%5D,%5B-114.06619893997784,51.05694155563417%5D,%5B-114.06579011626843,51.0581622658825%5D,%5B-114.067673398873,51.058916548778726%5D,%5B-114.07143185670641,51.061423362491404%5D,%5B-114.07184987616904,51.06168921938163%5D,%5B-114.0741837,51.0613545%5D,%5B-114.07794224224338,51.06228401160695%5D,%5B-114.07918450576179,51.06260346516831%5D,%5B-114.07993046849634,51.06280359284396%5D,%5B-114.08066137191179,51.062350982627464%5D,%5B-114.08244401432806,51.06127600012983%5D,%5B-114.08582266933304,51.061346817139835%5D,%5B-114.08616082731021,51.06129711945887%5D,%5B-114.0888935,51.0575163%5D,%5B-114.09170271289915,51.05843118482227%5D,%5B-114.09364571378056,51.057144582993836%5D%5D%5D%7D&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** Stgo test server &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** if the python server/script is started, the crime data can also be retrieved using the following from the machines web browser itself (I think so...):&amp;lt;pre&amp;gt;http://127.0.0.1:8366/crime?walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''POI WPS''' : for the following call to my Stgo Server and by using a Calgary walkshed, we receive a list of POIs (raw about 1085 POIs): &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:POI_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** the direct request to MapQuest's Search API would look like this (limited to 10 results):&amp;lt;pre&amp;gt;http://www.mapquestapi.com/search/v2/polygon?key=Fmjtd%7Cluuan90bnh%2C8w%3Do5-96r5l4&amp;amp;callback=renderBasicSearchNarrative&amp;amp;maxMatches=10&amp;amp;outFormat=json&amp;amp;polygon=51.057144583,-114.093645714,51.0535938176,-114.092868157,51.0508340585,-114.091011157,51.0508099865,-114.090759279,51.0516827,-114.0870286,51.0497097743,-114.085867772,51.0489783,-114.0835059,51.0498709384,-114.081847786,51.0536508,-114.081181,51.0547065,-114.0793914,51.0557314,-114.077687,51.0568823,-114.0756248,51.0570965,-114.0750158,51.0573512,-114.0736901,51.0559150802,-114.06926177,51.0569415556,-114.06619894,51.0581622659,-114.065790116,51.0589165488,-114.067673399,51.0614233625,-114.071431857,51.0616892194,-114.071849876,51.0613545,-114.0741837,51.0622840116,-114.077942242,51.0626034652,-114.079184506,51.0628035928,-114.079930468,51.0623509826,-114.080661372,51.0612760001,-114.082444014,51.0613468171,-114.085822669,51.0612971195,-114.086160827,51.0575163,-114.0888935,51.0584311848,-114.091702713,51.057144583,-114.093645714&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Modify code for Santiago''' ==&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* OTP location in backend (jar file)  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-21T19:35:18Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Install for Calgary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
== '''General prep steps''' ==&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
#* when using an existing VM image : &lt;br /&gt;
#** fix network issue (remove old card settings in ''/etc/udev/rules.d/70-persistent-net.rules'' and reboot)&lt;br /&gt;
#** set new machine name (in ''/etc/hostname'')&lt;br /&gt;
#** check if apache2 starts with an error message or not (for a fix see [[Setting up geonode]] &amp;gt; Basic Install for GeoNode v. 2.0)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== '''Install for Calgary''' ==&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end-point IP (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put client app in Apache's ''/var/www/'' (e.g.: /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; add this layer to the layer selection and set as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get back-end code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = one for each model =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. If not modified the Walkshed request is send to the GISciencegroup OTP server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL: &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [http://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; &lt;br /&gt;
#** it may be necessary to change run.py because I get an error at the moment as I am not having gnome-terminal available via command line. Hence, I am starting the scripts using commandline &amp;lt;code&amp;gt;python xxx.py &amp;amp;&amp;lt;/code&amp;gt;. Attention, the CrimeService.py and AggregationService.py script needs to be started from within its folder, otherwise config.py will not find the postgis.conf file (working directory issue).&lt;br /&gt;
#**# the Management Service (for pedestrian network) will listen on http://0.0.0.0:8363/&lt;br /&gt;
#**# the Crime Service will listen on http://0.0.0.0:8366/&lt;br /&gt;
#**# the Aggregation Service will listen on http://0.0.0.0:8364/&lt;br /&gt;
#**# the POI Service will listen on http://0.0.0.0:8365/&lt;br /&gt;
#** My running processes I can see then with &amp;lt;code&amp;gt;ps -u ssteinig&amp;lt;/code&amp;gt;&lt;br /&gt;
#** ToDo: check if it is possible to use &amp;quot;subprocess.Popen&amp;quot; or &amp;quot;Multiprocess&amp;quot; (see examples on stackoverflow and [http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args here])&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test if Calgary scenario works =&amp;gt; see next part&lt;br /&gt;
&lt;br /&gt;
== '''Testing Calgary scenario''' ==&lt;br /&gt;
# choosen params: &lt;br /&gt;
#* pos lat = 51.05747321278561&lt;br /&gt;
#* pos lon = -114.0794563293457&lt;br /&gt;
#* 15 min walkshed&lt;br /&gt;
#* walkspeed 1.38 m/sec&lt;br /&gt;
# Then this is how the web browser client request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
# the subsequent call to the managment service would be: &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=Execute&amp;amp;Version=1.0.0&amp;amp;Identifier=gs:Management&amp;amp;DataInputs=StartPoint=51.0574732128,-114.079456329;WalkingTimePeriod=15;WalkingSpeed=1.38&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''Routing/OTP WPS''': this call will return the pedestrian walkshed as JSON object &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Walkshed_Pedestrian&amp;amp;datainputs=StartPoint=51.0574732128,-114.079456329;WalkingPeriod=15;WalkingSpeed=1.38;WalkshedOutput=SHED&amp;lt;/pre&amp;gt; Note, that at the moment (8. April 2014) this will re-route the request to the Calgary OTP server. &lt;br /&gt;
#* '''Crime WPS''': for the same data and the pedestrian-network model we receive a list of crime features, with the following call: &lt;br /&gt;
#** Calgary server &amp;lt;pre&amp;gt;http://136.159.122.90:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed=%7B%22type%22:%22Polygon%22,%22coordinates%22:%5B%5B%5B-114.09364571378056,51.057144582993836%5D,%5B-114.09286815708892,51.05359381755474%5D,%5B-114.09101115708,51.050834058520664%5D,%5B-114.09075927937053,51.05080998647081%5D,%5B-114.0870286,51.0516827%5D,%5B-114.08586777200182,51.04970977429437%5D,%5B-114.0835059,51.0489783%5D,%5B-114.08184778623112,51.0498709384076%5D,%5B-114.081181,51.0536508%5D,%5B-114.0793914,51.0547065%5D,%5B-114.077687,51.0557314%5D,%5B-114.0756248,51.0568823%5D,%5B-114.0750158,51.0570965%5D,%5B-114.0736901,51.0573512%5D,%5B-114.06926177015508,51.055915080229724%5D,%5B-114.06619893997784,51.05694155563417%5D,%5B-114.06579011626843,51.0581622658825%5D,%5B-114.067673398873,51.058916548778726%5D,%5B-114.07143185670641,51.061423362491404%5D,%5B-114.07184987616904,51.06168921938163%5D,%5B-114.0741837,51.0613545%5D,%5B-114.07794224224338,51.06228401160695%5D,%5B-114.07918450576179,51.06260346516831%5D,%5B-114.07993046849634,51.06280359284396%5D,%5B-114.08066137191179,51.062350982627464%5D,%5B-114.08244401432806,51.06127600012983%5D,%5B-114.08582266933304,51.061346817139835%5D,%5B-114.08616082731021,51.06129711945887%5D,%5B-114.0888935,51.0575163%5D,%5B-114.09170271289915,51.05843118482227%5D,%5B-114.09364571378056,51.057144582993836%5D%5D%5D%7D&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** Stgo test server &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** if the python server/script is started, the crime data can also be retrieved using the following from the machines web browser itself (I think so...):&amp;lt;pre&amp;gt;http://127.0.0.1:8366/crime?walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''POI WPS''' : for the following call to my Stgo Server and by using a Calgary walkshed, we receive a list of POIs (raw about 1085 POIs): &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:POI_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** the direct request to MapQuest's Search API would look like this (limited to 10 results):&amp;lt;pre&amp;gt;http://www.mapquestapi.com/search/v2/polygon?key=Fmjtd%7Cluuan90bnh%2C8w%3Do5-96r5l4&amp;amp;callback=renderBasicSearchNarrative&amp;amp;maxMatches=10&amp;amp;outFormat=json&amp;amp;polygon=51.057144583,-114.093645714,51.0535938176,-114.092868157,51.0508340585,-114.091011157,51.0508099865,-114.090759279,51.0516827,-114.0870286,51.0497097743,-114.085867772,51.0489783,-114.0835059,51.0498709384,-114.081847786,51.0536508,-114.081181,51.0547065,-114.0793914,51.0557314,-114.077687,51.0568823,-114.0756248,51.0570965,-114.0750158,51.0573512,-114.0736901,51.0559150802,-114.06926177,51.0569415556,-114.06619894,51.0581622659,-114.065790116,51.0589165488,-114.067673399,51.0614233625,-114.071431857,51.0616892194,-114.071849876,51.0613545,-114.0741837,51.0622840116,-114.077942242,51.0626034652,-114.079184506,51.0628035928,-114.079930468,51.0623509826,-114.080661372,51.0612760001,-114.082444014,51.0613468171,-114.085822669,51.0612971195,-114.086160827,51.0575163,-114.0888935,51.0584311848,-114.091702713,51.057144583,-114.093645714&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Modify code for Santiago''' ==&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* OTP location in backend (jar file)  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-21T19:31:57Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Install for Calgary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
== '''General prep steps''' ==&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
#* when using an existing VM image : &lt;br /&gt;
#** fix network issue (remove old card settings in ''/etc/udev/rules.d/70-persistent-net.rules'' and reboot)&lt;br /&gt;
#** set new machine name (in ''/etc/hostname'')&lt;br /&gt;
#** check if apache2 starts with an error message or not (for a fix see [[Setting up geonode]] &amp;gt; Basic Install for GeoNode v. 2.0)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== '''Install for Calgary''' ==&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end-point IP (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put client app in Apache's ''/var/www/'' (e.g.: /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; add this layer to the layer selection and set as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get back-end code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = one for each model =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. If not modified the Walkshed request is send to the GISciencegroup OTP server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL: &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [http://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; &lt;br /&gt;
#** it may be necessary to change run.py (causes error at the moment) since I am not having gnome-terminal available via command line. At the moment I am starting the scripts using commandline &amp;lt;code&amp;gt;python xxx.py &amp;amp;&amp;lt;/code&amp;gt;. Attention, the CrimeService.py and AggregationService.py script needs to be started from within its folder, otherwise config.py will not find the postgis.conf file (working directory issue).&lt;br /&gt;
#**# the Management Service (for pedestrian network) will listen on http://0.0.0.0:8363/&lt;br /&gt;
#**# the Crime Service will listen on http://0.0.0.0:8366/&lt;br /&gt;
#**# the Aggregation Service will listen on http://0.0.0.0:8364/&lt;br /&gt;
#**# the POI Service will listen on http://0.0.0.0:8365/&lt;br /&gt;
#** My running processes I can see then with &amp;lt;code&amp;gt;ps -u ssteinig&amp;lt;/code&amp;gt;&lt;br /&gt;
#** ToDo: check if it is possible to use &amp;quot;subprocess.Popen&amp;quot; or &amp;quot;Multiprocess&amp;quot; (see examples on stackoverflow and [http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args here])&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test if Calgary scenario works =&amp;gt; see next part&lt;br /&gt;
&lt;br /&gt;
== '''Testing Calgary scenario''' ==&lt;br /&gt;
# choosen params: &lt;br /&gt;
#* pos lat = 51.05747321278561&lt;br /&gt;
#* pos lon = -114.0794563293457&lt;br /&gt;
#* 15 min walkshed&lt;br /&gt;
#* walkspeed 1.38 m/sec&lt;br /&gt;
# Then this is how the web browser client request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
# the subsequent call to the managment service would be: &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=Execute&amp;amp;Version=1.0.0&amp;amp;Identifier=gs:Management&amp;amp;DataInputs=StartPoint=51.0574732128,-114.079456329;WalkingTimePeriod=15;WalkingSpeed=1.38&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''Routing/OTP WPS''': this call will return the pedestrian walkshed as JSON object &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Walkshed_Pedestrian&amp;amp;datainputs=StartPoint=51.0574732128,-114.079456329;WalkingPeriod=15;WalkingSpeed=1.38;WalkshedOutput=SHED&amp;lt;/pre&amp;gt; Note, that at the moment (8. April 2014) this will re-route the request to the Calgary OTP server. &lt;br /&gt;
#* '''Crime WPS''': for the same data and the pedestrian-network model we receive a list of crime features, with the following call: &lt;br /&gt;
#** Calgary server &amp;lt;pre&amp;gt;http://136.159.122.90:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed=%7B%22type%22:%22Polygon%22,%22coordinates%22:%5B%5B%5B-114.09364571378056,51.057144582993836%5D,%5B-114.09286815708892,51.05359381755474%5D,%5B-114.09101115708,51.050834058520664%5D,%5B-114.09075927937053,51.05080998647081%5D,%5B-114.0870286,51.0516827%5D,%5B-114.08586777200182,51.04970977429437%5D,%5B-114.0835059,51.0489783%5D,%5B-114.08184778623112,51.0498709384076%5D,%5B-114.081181,51.0536508%5D,%5B-114.0793914,51.0547065%5D,%5B-114.077687,51.0557314%5D,%5B-114.0756248,51.0568823%5D,%5B-114.0750158,51.0570965%5D,%5B-114.0736901,51.0573512%5D,%5B-114.06926177015508,51.055915080229724%5D,%5B-114.06619893997784,51.05694155563417%5D,%5B-114.06579011626843,51.0581622658825%5D,%5B-114.067673398873,51.058916548778726%5D,%5B-114.07143185670641,51.061423362491404%5D,%5B-114.07184987616904,51.06168921938163%5D,%5B-114.0741837,51.0613545%5D,%5B-114.07794224224338,51.06228401160695%5D,%5B-114.07918450576179,51.06260346516831%5D,%5B-114.07993046849634,51.06280359284396%5D,%5B-114.08066137191179,51.062350982627464%5D,%5B-114.08244401432806,51.06127600012983%5D,%5B-114.08582266933304,51.061346817139835%5D,%5B-114.08616082731021,51.06129711945887%5D,%5B-114.0888935,51.0575163%5D,%5B-114.09170271289915,51.05843118482227%5D,%5B-114.09364571378056,51.057144582993836%5D%5D%5D%7D&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** Stgo test server &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** if the python server/script is started, the crime data can also be retrieved using the following from the machines web browser itself (I think so...):&amp;lt;pre&amp;gt;http://127.0.0.1:8366/crime?walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''POI WPS''' : for the following call to my Stgo Server and by using a Calgary walkshed, we receive a list of POIs (raw about 1085 POIs): &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:POI_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** the direct request to MapQuest's Search API would look like this (limited to 10 results):&amp;lt;pre&amp;gt;http://www.mapquestapi.com/search/v2/polygon?key=Fmjtd%7Cluuan90bnh%2C8w%3Do5-96r5l4&amp;amp;callback=renderBasicSearchNarrative&amp;amp;maxMatches=10&amp;amp;outFormat=json&amp;amp;polygon=51.057144583,-114.093645714,51.0535938176,-114.092868157,51.0508340585,-114.091011157,51.0508099865,-114.090759279,51.0516827,-114.0870286,51.0497097743,-114.085867772,51.0489783,-114.0835059,51.0498709384,-114.081847786,51.0536508,-114.081181,51.0547065,-114.0793914,51.0557314,-114.077687,51.0568823,-114.0756248,51.0570965,-114.0750158,51.0573512,-114.0736901,51.0559150802,-114.06926177,51.0569415556,-114.06619894,51.0581622659,-114.065790116,51.0589165488,-114.067673399,51.0614233625,-114.071431857,51.0616892194,-114.071849876,51.0613545,-114.0741837,51.0622840116,-114.077942242,51.0626034652,-114.079184506,51.0628035928,-114.079930468,51.0623509826,-114.080661372,51.0612760001,-114.082444014,51.0613468171,-114.085822669,51.0612971195,-114.086160827,51.0575163,-114.0888935,51.0584311848,-114.091702713,51.057144583,-114.093645714&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Modify code for Santiago''' ==&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* OTP location in backend (jar file)  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-21T19:29:05Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Install for Calgary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
== '''General prep steps''' ==&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
#* when using an existing VM image : &lt;br /&gt;
#** fix network issue (remove old card settings in ''/etc/udev/rules.d/70-persistent-net.rules'' and reboot)&lt;br /&gt;
#** set new machine name (in ''/etc/hostname'')&lt;br /&gt;
#** check if apache2 starts with an error message or not (for a fix see [[Setting up geonode]] &amp;gt; Basic Install for GeoNode v. 2.0)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== '''Install for Calgary''' ==&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end-point IP (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put client app in Apache's ''/var/www/'' (e.g.: /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; add this layer to the layer selection and set as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get back-end code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = one for each model =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. However, I am not having the sources right now, so the Walkshed request is send to the GISciencegroup server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [http://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; &lt;br /&gt;
#** it may be necessary to change run.py (causes error at the moment) since I am not having gnome-terminal available via command line. At the moment I am starting the scripts using commandline &amp;lt;code&amp;gt;python xxx.py &amp;amp;&amp;lt;/code&amp;gt;. Attention, the CrimeService.py and AggregationService.py script needs to be started from within its folder, otherwise config.py will not find the postgis.conf file (working directory issue).&lt;br /&gt;
#**# the Management Service (for pedestrian network) will listen on http://0.0.0.0:8363/&lt;br /&gt;
#**# the Crime Service will listen on http://0.0.0.0:8366/&lt;br /&gt;
#**# the Aggregation Service will listen on http://0.0.0.0:8364/&lt;br /&gt;
#**# the POI Service will listen on http://0.0.0.0:8365/&lt;br /&gt;
#** My running processes I can see then with &amp;lt;code&amp;gt;ps -u ssteinig&amp;lt;/code&amp;gt;&lt;br /&gt;
#** ToDo: check if it is possible to use &amp;quot;subprocess.Popen&amp;quot; or &amp;quot;Multiprocess&amp;quot; (see examples on stackoverflow and [http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args here])&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test if Calgary scenario works =&amp;gt; see next part&lt;br /&gt;
&lt;br /&gt;
== '''Testing Calgary scenario''' ==&lt;br /&gt;
# choosen params: &lt;br /&gt;
#* pos lat = 51.05747321278561&lt;br /&gt;
#* pos lon = -114.0794563293457&lt;br /&gt;
#* 15 min walkshed&lt;br /&gt;
#* walkspeed 1.38 m/sec&lt;br /&gt;
# Then this is how the web browser client request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
# the subsequent call to the managment service would be: &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=Execute&amp;amp;Version=1.0.0&amp;amp;Identifier=gs:Management&amp;amp;DataInputs=StartPoint=51.0574732128,-114.079456329;WalkingTimePeriod=15;WalkingSpeed=1.38&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''Routing/OTP WPS''': this call will return the pedestrian walkshed as JSON object &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Walkshed_Pedestrian&amp;amp;datainputs=StartPoint=51.0574732128,-114.079456329;WalkingPeriod=15;WalkingSpeed=1.38;WalkshedOutput=SHED&amp;lt;/pre&amp;gt; Note, that at the moment (8. April 2014) this will re-route the request to the Calgary OTP server. &lt;br /&gt;
#* '''Crime WPS''': for the same data and the pedestrian-network model we receive a list of crime features, with the following call: &lt;br /&gt;
#** Calgary server &amp;lt;pre&amp;gt;http://136.159.122.90:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed=%7B%22type%22:%22Polygon%22,%22coordinates%22:%5B%5B%5B-114.09364571378056,51.057144582993836%5D,%5B-114.09286815708892,51.05359381755474%5D,%5B-114.09101115708,51.050834058520664%5D,%5B-114.09075927937053,51.05080998647081%5D,%5B-114.0870286,51.0516827%5D,%5B-114.08586777200182,51.04970977429437%5D,%5B-114.0835059,51.0489783%5D,%5B-114.08184778623112,51.0498709384076%5D,%5B-114.081181,51.0536508%5D,%5B-114.0793914,51.0547065%5D,%5B-114.077687,51.0557314%5D,%5B-114.0756248,51.0568823%5D,%5B-114.0750158,51.0570965%5D,%5B-114.0736901,51.0573512%5D,%5B-114.06926177015508,51.055915080229724%5D,%5B-114.06619893997784,51.05694155563417%5D,%5B-114.06579011626843,51.0581622658825%5D,%5B-114.067673398873,51.058916548778726%5D,%5B-114.07143185670641,51.061423362491404%5D,%5B-114.07184987616904,51.06168921938163%5D,%5B-114.0741837,51.0613545%5D,%5B-114.07794224224338,51.06228401160695%5D,%5B-114.07918450576179,51.06260346516831%5D,%5B-114.07993046849634,51.06280359284396%5D,%5B-114.08066137191179,51.062350982627464%5D,%5B-114.08244401432806,51.06127600012983%5D,%5B-114.08582266933304,51.061346817139835%5D,%5B-114.08616082731021,51.06129711945887%5D,%5B-114.0888935,51.0575163%5D,%5B-114.09170271289915,51.05843118482227%5D,%5B-114.09364571378056,51.057144582993836%5D%5D%5D%7D&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** Stgo test server &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** if the python server/script is started, the crime data can also be retrieved using the following from the machines web browser itself (I think so...):&amp;lt;pre&amp;gt;http://127.0.0.1:8366/crime?walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''POI WPS''' : for the following call to my Stgo Server and by using a Calgary walkshed, we receive a list of POIs (raw about 1085 POIs): &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:POI_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** the direct request to MapQuest's Search API would look like this (limited to 10 results):&amp;lt;pre&amp;gt;http://www.mapquestapi.com/search/v2/polygon?key=Fmjtd%7Cluuan90bnh%2C8w%3Do5-96r5l4&amp;amp;callback=renderBasicSearchNarrative&amp;amp;maxMatches=10&amp;amp;outFormat=json&amp;amp;polygon=51.057144583,-114.093645714,51.0535938176,-114.092868157,51.0508340585,-114.091011157,51.0508099865,-114.090759279,51.0516827,-114.0870286,51.0497097743,-114.085867772,51.0489783,-114.0835059,51.0498709384,-114.081847786,51.0536508,-114.081181,51.0547065,-114.0793914,51.0557314,-114.077687,51.0568823,-114.0756248,51.0570965,-114.0750158,51.0573512,-114.0736901,51.0559150802,-114.06926177,51.0569415556,-114.06619894,51.0581622659,-114.065790116,51.0589165488,-114.067673399,51.0614233625,-114.071431857,51.0616892194,-114.071849876,51.0613545,-114.0741837,51.0622840116,-114.077942242,51.0626034652,-114.079184506,51.0628035928,-114.079930468,51.0623509826,-114.080661372,51.0612760001,-114.082444014,51.0613468171,-114.085822669,51.0612971195,-114.086160827,51.0575163,-114.0888935,51.0584311848,-114.091702713,51.057144583,-114.093645714&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Modify code for Santiago''' ==&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* OTP location in backend (jar file)  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-21T19:27:43Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Install for Calgary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
== '''General prep steps''' ==&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
#* when using an existing VM image : &lt;br /&gt;
#** fix network issue (remove old card settings in ''/etc/udev/rules.d/70-persistent-net.rules'' and reboot)&lt;br /&gt;
#** set new machine name (in ''/etc/hostname'')&lt;br /&gt;
#** check if apache2 starts with an error message or not (for a fix see [[Setting up geonode]] &amp;gt; Basic Install for GeoNode v. 2.0)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== '''Install for Calgary''' ==&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end-point IP (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put client app in Apache's ''/var/www/'' (e.g.: /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; add this layer to the layer selection and set as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get backend code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = on for each model =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. However, I am not having the sources right now, so the Walkshed request is send to the GISciencegroup server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [http://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; &lt;br /&gt;
#** it may be necessary to change run.py (causes error at the moment) since I am not having gnome-terminal available via command line. At the moment I am starting the scripts using commandline &amp;lt;code&amp;gt;python xxx.py &amp;amp;&amp;lt;/code&amp;gt;. Attention, the CrimeService.py and AggregationService.py script needs to be started from within its folder, otherwise config.py will not find the postgis.conf file (working directory issue).&lt;br /&gt;
#**# the Management Service (for pedestrian network) will listen on http://0.0.0.0:8363/&lt;br /&gt;
#**# the Crime Service will listen on http://0.0.0.0:8366/&lt;br /&gt;
#**# the Aggregation Service will listen on http://0.0.0.0:8364/&lt;br /&gt;
#**# the POI Service will listen on http://0.0.0.0:8365/&lt;br /&gt;
#** My running processes I can see then with &amp;lt;code&amp;gt;ps -u ssteinig&amp;lt;/code&amp;gt;&lt;br /&gt;
#** ToDo: check if it is possible to use &amp;quot;subprocess.Popen&amp;quot; or &amp;quot;Multiprocess&amp;quot; (see examples on stackoverflow and [http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args here])&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test if Calgary scenario works =&amp;gt; see next part&lt;br /&gt;
&lt;br /&gt;
== '''Testing Calgary scenario''' ==&lt;br /&gt;
# choosen params: &lt;br /&gt;
#* pos lat = 51.05747321278561&lt;br /&gt;
#* pos lon = -114.0794563293457&lt;br /&gt;
#* 15 min walkshed&lt;br /&gt;
#* walkspeed 1.38 m/sec&lt;br /&gt;
# Then this is how the web browser client request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
# the subsequent call to the managment service would be: &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=Execute&amp;amp;Version=1.0.0&amp;amp;Identifier=gs:Management&amp;amp;DataInputs=StartPoint=51.0574732128,-114.079456329;WalkingTimePeriod=15;WalkingSpeed=1.38&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''Routing/OTP WPS''': this call will return the pedestrian walkshed as JSON object &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Walkshed_Pedestrian&amp;amp;datainputs=StartPoint=51.0574732128,-114.079456329;WalkingPeriod=15;WalkingSpeed=1.38;WalkshedOutput=SHED&amp;lt;/pre&amp;gt; Note, that at the moment (8. April 2014) this will re-route the request to the Calgary OTP server. &lt;br /&gt;
#* '''Crime WPS''': for the same data and the pedestrian-network model we receive a list of crime features, with the following call: &lt;br /&gt;
#** Calgary server &amp;lt;pre&amp;gt;http://136.159.122.90:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed=%7B%22type%22:%22Polygon%22,%22coordinates%22:%5B%5B%5B-114.09364571378056,51.057144582993836%5D,%5B-114.09286815708892,51.05359381755474%5D,%5B-114.09101115708,51.050834058520664%5D,%5B-114.09075927937053,51.05080998647081%5D,%5B-114.0870286,51.0516827%5D,%5B-114.08586777200182,51.04970977429437%5D,%5B-114.0835059,51.0489783%5D,%5B-114.08184778623112,51.0498709384076%5D,%5B-114.081181,51.0536508%5D,%5B-114.0793914,51.0547065%5D,%5B-114.077687,51.0557314%5D,%5B-114.0756248,51.0568823%5D,%5B-114.0750158,51.0570965%5D,%5B-114.0736901,51.0573512%5D,%5B-114.06926177015508,51.055915080229724%5D,%5B-114.06619893997784,51.05694155563417%5D,%5B-114.06579011626843,51.0581622658825%5D,%5B-114.067673398873,51.058916548778726%5D,%5B-114.07143185670641,51.061423362491404%5D,%5B-114.07184987616904,51.06168921938163%5D,%5B-114.0741837,51.0613545%5D,%5B-114.07794224224338,51.06228401160695%5D,%5B-114.07918450576179,51.06260346516831%5D,%5B-114.07993046849634,51.06280359284396%5D,%5B-114.08066137191179,51.062350982627464%5D,%5B-114.08244401432806,51.06127600012983%5D,%5B-114.08582266933304,51.061346817139835%5D,%5B-114.08616082731021,51.06129711945887%5D,%5B-114.0888935,51.0575163%5D,%5B-114.09170271289915,51.05843118482227%5D,%5B-114.09364571378056,51.057144582993836%5D%5D%5D%7D&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** Stgo test server &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** if the python server/script is started, the crime data can also be retrieved using the following from the machines web browser itself (I think so...):&amp;lt;pre&amp;gt;http://127.0.0.1:8366/crime?walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''POI WPS''' : for the following call to my Stgo Server and by using a Calgary walkshed, we receive a list of POIs (raw about 1085 POIs): &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:POI_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** the direct request to MapQuest's Search API would look like this (limited to 10 results):&amp;lt;pre&amp;gt;http://www.mapquestapi.com/search/v2/polygon?key=Fmjtd%7Cluuan90bnh%2C8w%3Do5-96r5l4&amp;amp;callback=renderBasicSearchNarrative&amp;amp;maxMatches=10&amp;amp;outFormat=json&amp;amp;polygon=51.057144583,-114.093645714,51.0535938176,-114.092868157,51.0508340585,-114.091011157,51.0508099865,-114.090759279,51.0516827,-114.0870286,51.0497097743,-114.085867772,51.0489783,-114.0835059,51.0498709384,-114.081847786,51.0536508,-114.081181,51.0547065,-114.0793914,51.0557314,-114.077687,51.0568823,-114.0756248,51.0570965,-114.0750158,51.0573512,-114.0736901,51.0559150802,-114.06926177,51.0569415556,-114.06619894,51.0581622659,-114.065790116,51.0589165488,-114.067673399,51.0614233625,-114.071431857,51.0616892194,-114.071849876,51.0613545,-114.0741837,51.0622840116,-114.077942242,51.0626034652,-114.079184506,51.0628035928,-114.079930468,51.0623509826,-114.080661372,51.0612760001,-114.082444014,51.0613468171,-114.085822669,51.0612971195,-114.086160827,51.0575163,-114.0888935,51.0584311848,-114.091702713,51.057144583,-114.093645714&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Modify code for Santiago''' ==&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* OTP location in backend (jar file)  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-21T19:13:05Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Testing Calgary scenario */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
== '''General prep steps''' ==&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
#* when using an existing VM image : &lt;br /&gt;
#** fix network issue (remove old card settings in ''/etc/udev/rules.d/70-persistent-net.rules'' and reboot)&lt;br /&gt;
#** set new machine name (in ''/etc/hostname'')&lt;br /&gt;
#** check if apache2 starts with an error message or not (for a fix see [[Setting up geonode]] &amp;gt; Basic Install for GeoNode v. 2.0)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== '''Install for Calgary''' ==&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end point (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put in apache's ''/var/www/'' (i.e. /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; add this layer to the layer selection and set as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get backend code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = on for each model =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. However, I am not having the sources right now, so the Walkshed request is send to the GISciencegroup server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [http://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; &lt;br /&gt;
#** it may be necessary to change run.py (causes error at the moment) since I am not having gnome-terminal available via command line. At the moment I am starting the scripts using commandline &amp;lt;code&amp;gt;python xxx.py &amp;amp;&amp;lt;/code&amp;gt;. Attention, the CrimeService.py and AggregationService.py script needs to be started from within its folder, otherwise config.py will not find the postgis.conf file (working directory issue).&lt;br /&gt;
#**# the Management Service (for pedestrian network) will listen on http://0.0.0.0:8363/&lt;br /&gt;
#**# the Crime Service will listen on http://0.0.0.0:8366/&lt;br /&gt;
#**# the Aggregation Service will listen on http://0.0.0.0:8364/&lt;br /&gt;
#**# the POI Service will listen on http://0.0.0.0:8365/&lt;br /&gt;
#** My running processes I can see then with &amp;lt;code&amp;gt;ps -u ssteinig&amp;lt;/code&amp;gt;&lt;br /&gt;
#** ToDo: check if it is possible to use &amp;quot;subprocess.Popen&amp;quot; or &amp;quot;Multiprocess&amp;quot; (see examples on stackoverflow and [http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args here])&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test if Calgary scenario works =&amp;gt; see next part&lt;br /&gt;
&lt;br /&gt;
== '''Testing Calgary scenario''' ==&lt;br /&gt;
# choosen params: &lt;br /&gt;
#* pos lat = 51.05747321278561&lt;br /&gt;
#* pos lon = -114.0794563293457&lt;br /&gt;
#* 15 min walkshed&lt;br /&gt;
#* walkspeed 1.38 m/sec&lt;br /&gt;
# Then this is how the web browser client request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
# the subsequent call to the managment service would be: &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=Execute&amp;amp;Version=1.0.0&amp;amp;Identifier=gs:Management&amp;amp;DataInputs=StartPoint=51.0574732128,-114.079456329;WalkingTimePeriod=15;WalkingSpeed=1.38&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''Routing/OTP WPS''': this call will return the pedestrian walkshed as JSON object &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Walkshed_Pedestrian&amp;amp;datainputs=StartPoint=51.0574732128,-114.079456329;WalkingPeriod=15;WalkingSpeed=1.38;WalkshedOutput=SHED&amp;lt;/pre&amp;gt; Note, that at the moment (8. April 2014) this will re-route the request to the Calgary OTP server. &lt;br /&gt;
#* '''Crime WPS''': for the same data and the pedestrian-network model we receive a list of crime features, with the following call: &lt;br /&gt;
#** Calgary server &amp;lt;pre&amp;gt;http://136.159.122.90:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed=%7B%22type%22:%22Polygon%22,%22coordinates%22:%5B%5B%5B-114.09364571378056,51.057144582993836%5D,%5B-114.09286815708892,51.05359381755474%5D,%5B-114.09101115708,51.050834058520664%5D,%5B-114.09075927937053,51.05080998647081%5D,%5B-114.0870286,51.0516827%5D,%5B-114.08586777200182,51.04970977429437%5D,%5B-114.0835059,51.0489783%5D,%5B-114.08184778623112,51.0498709384076%5D,%5B-114.081181,51.0536508%5D,%5B-114.0793914,51.0547065%5D,%5B-114.077687,51.0557314%5D,%5B-114.0756248,51.0568823%5D,%5B-114.0750158,51.0570965%5D,%5B-114.0736901,51.0573512%5D,%5B-114.06926177015508,51.055915080229724%5D,%5B-114.06619893997784,51.05694155563417%5D,%5B-114.06579011626843,51.0581622658825%5D,%5B-114.067673398873,51.058916548778726%5D,%5B-114.07143185670641,51.061423362491404%5D,%5B-114.07184987616904,51.06168921938163%5D,%5B-114.0741837,51.0613545%5D,%5B-114.07794224224338,51.06228401160695%5D,%5B-114.07918450576179,51.06260346516831%5D,%5B-114.07993046849634,51.06280359284396%5D,%5B-114.08066137191179,51.062350982627464%5D,%5B-114.08244401432806,51.06127600012983%5D,%5B-114.08582266933304,51.061346817139835%5D,%5B-114.08616082731021,51.06129711945887%5D,%5B-114.0888935,51.0575163%5D,%5B-114.09170271289915,51.05843118482227%5D,%5B-114.09364571378056,51.057144582993836%5D%5D%5D%7D&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** Stgo test server &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** if the python server/script is started, the crime data can also be retrieved using the following from the machines web browser itself (I think so...):&amp;lt;pre&amp;gt;http://127.0.0.1:8366/crime?walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''POI WPS''' : for the following call to my Stgo Server and by using a Calgary walkshed, we receive a list of POIs (raw about 1085 POIs): &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:POI_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** the direct request to MapQuest's Search API would look like this (limited to 10 results):&amp;lt;pre&amp;gt;http://www.mapquestapi.com/search/v2/polygon?key=Fmjtd%7Cluuan90bnh%2C8w%3Do5-96r5l4&amp;amp;callback=renderBasicSearchNarrative&amp;amp;maxMatches=10&amp;amp;outFormat=json&amp;amp;polygon=51.057144583,-114.093645714,51.0535938176,-114.092868157,51.0508340585,-114.091011157,51.0508099865,-114.090759279,51.0516827,-114.0870286,51.0497097743,-114.085867772,51.0489783,-114.0835059,51.0498709384,-114.081847786,51.0536508,-114.081181,51.0547065,-114.0793914,51.0557314,-114.077687,51.0568823,-114.0756248,51.0570965,-114.0750158,51.0573512,-114.0736901,51.0559150802,-114.06926177,51.0569415556,-114.06619894,51.0581622659,-114.065790116,51.0589165488,-114.067673399,51.0614233625,-114.071431857,51.0616892194,-114.071849876,51.0613545,-114.0741837,51.0622840116,-114.077942242,51.0626034652,-114.079184506,51.0628035928,-114.079930468,51.0623509826,-114.080661372,51.0612760001,-114.082444014,51.0613468171,-114.085822669,51.0612971195,-114.086160827,51.0575163,-114.0888935,51.0584311848,-114.091702713,51.057144583,-114.093645714&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Modify code for Santiago''' ==&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* OTP location in backend (jar file)  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-21T18:26:56Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Install for Calgary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
== '''General prep steps''' ==&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
#* when using an existing VM image : &lt;br /&gt;
#** fix network issue (remove old card settings in ''/etc/udev/rules.d/70-persistent-net.rules'' and reboot)&lt;br /&gt;
#** set new machine name (in ''/etc/hostname'')&lt;br /&gt;
#** check if apache2 starts with an error message or not (for a fix see [[Setting up geonode]] &amp;gt; Basic Install for GeoNode v. 2.0)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== '''Install for Calgary''' ==&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end point (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put in apache's ''/var/www/'' (i.e. /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; add this layer to the layer selection and set as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get backend code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = on for each model =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. However, I am not having the sources right now, so the Walkshed request is send to the GISciencegroup server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [http://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; &lt;br /&gt;
#** it may be necessary to change run.py (causes error at the moment) since I am not having gnome-terminal available via command line. At the moment I am starting the scripts using commandline &amp;lt;code&amp;gt;python xxx.py &amp;amp;&amp;lt;/code&amp;gt;. Attention, the CrimeService.py and AggregationService.py script needs to be started from within its folder, otherwise config.py will not find the postgis.conf file (working directory issue).&lt;br /&gt;
#**# the Management Service (for pedestrian network) will listen on http://0.0.0.0:8363/&lt;br /&gt;
#**# the Crime Service will listen on http://0.0.0.0:8366/&lt;br /&gt;
#**# the Aggregation Service will listen on http://0.0.0.0:8364/&lt;br /&gt;
#**# the POI Service will listen on http://0.0.0.0:8365/&lt;br /&gt;
#** My running processes I can see then with &amp;lt;code&amp;gt;ps -u ssteinig&amp;lt;/code&amp;gt;&lt;br /&gt;
#** ToDo: check if it is possible to use &amp;quot;subprocess.Popen&amp;quot; or &amp;quot;Multiprocess&amp;quot; (see examples on stackoverflow and [http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args here])&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test if Calgary scenario works =&amp;gt; see next part&lt;br /&gt;
&lt;br /&gt;
== '''Testing Calgary scenario''' ==&lt;br /&gt;
# choosen params: &lt;br /&gt;
#* pos lat = 51.05747321278561&lt;br /&gt;
#* pos lon = -114.0794563293457&lt;br /&gt;
#* 15 min walkshed&lt;br /&gt;
#* walkspeed 1.38 m/sec&lt;br /&gt;
# Then this is how the web browser client request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
# the subsequent call to the managment service would be: &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=Execute&amp;amp;Version=1.0.0&amp;amp;Identifier=gs:Management&amp;amp;DataInputs=StartPoint=51.0574732128,-114.079456329;WalkingTimePeriod=15;WalkingSpeed=1.38&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''Routing/OTP WPS''': this call will return the pedestrian walkshed as JSON object &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Walkshed_Pedestrian&amp;amp;datainputs=StartPoint=51.0574732128,-114.079456329;WalkingPeriod=15;WalkingSpeed=1.38;WalkshedOutput=SHED&amp;lt;/pre&amp;gt; Note, that at the moment (8. April 2014) this will re-route the request to the Calgary OTP server. &lt;br /&gt;
#* '''Crime WPS''': for the same data and the pedestrian-network model we receive a list of crime features, with the following call: &lt;br /&gt;
#** Calgary server &amp;lt;pre&amp;gt;http://136.159.122.90:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed=%7B%22type%22:%22Polygon%22,%22coordinates%22:%5B%5B%5B-114.09364571378056,51.057144582993836%5D,%5B-114.09286815708892,51.05359381755474%5D,%5B-114.09101115708,51.050834058520664%5D,%5B-114.09075927937053,51.05080998647081%5D,%5B-114.0870286,51.0516827%5D,%5B-114.08586777200182,51.04970977429437%5D,%5B-114.0835059,51.0489783%5D,%5B-114.08184778623112,51.0498709384076%5D,%5B-114.081181,51.0536508%5D,%5B-114.0793914,51.0547065%5D,%5B-114.077687,51.0557314%5D,%5B-114.0756248,51.0568823%5D,%5B-114.0750158,51.0570965%5D,%5B-114.0736901,51.0573512%5D,%5B-114.06926177015508,51.055915080229724%5D,%5B-114.06619893997784,51.05694155563417%5D,%5B-114.06579011626843,51.0581622658825%5D,%5B-114.067673398873,51.058916548778726%5D,%5B-114.07143185670641,51.061423362491404%5D,%5B-114.07184987616904,51.06168921938163%5D,%5B-114.0741837,51.0613545%5D,%5B-114.07794224224338,51.06228401160695%5D,%5B-114.07918450576179,51.06260346516831%5D,%5B-114.07993046849634,51.06280359284396%5D,%5B-114.08066137191179,51.062350982627464%5D,%5B-114.08244401432806,51.06127600012983%5D,%5B-114.08582266933304,51.061346817139835%5D,%5B-114.08616082731021,51.06129711945887%5D,%5B-114.0888935,51.0575163%5D,%5B-114.09170271289915,51.05843118482227%5D,%5B-114.09364571378056,51.057144582993836%5D%5D%5D%7D&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** Stgo test server &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** if the python server/script is started, the crime data can also be retrieved using the following from the machines web browser itself (I think so...):&amp;lt;pre&amp;gt;http://127.0.0.1:8366/crime?walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* POI WPS : for the following call to my Stgo Server and by using a Calgary walkshed, we receive a list of POIs (raw about 1085 POIs): &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:POI_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** the direct request to MapQuest's Search API would look like this (limited to 10 results):&amp;lt;pre&amp;gt;http://www.mapquestapi.com/search/v2/polygon?key=Fmjtd%7Cluuan90bnh%2C8w%3Do5-96r5l4&amp;amp;callback=renderBasicSearchNarrative&amp;amp;maxMatches=10&amp;amp;outFormat=json&amp;amp;polygon=51.057144583,-114.093645714,51.0535938176,-114.092868157,51.0508340585,-114.091011157,51.0508099865,-114.090759279,51.0516827,-114.0870286,51.0497097743,-114.085867772,51.0489783,-114.0835059,51.0498709384,-114.081847786,51.0536508,-114.081181,51.0547065,-114.0793914,51.0557314,-114.077687,51.0568823,-114.0756248,51.0570965,-114.0750158,51.0573512,-114.0736901,51.0559150802,-114.06926177,51.0569415556,-114.06619894,51.0581622659,-114.065790116,51.0589165488,-114.067673399,51.0614233625,-114.071431857,51.0616892194,-114.071849876,51.0613545,-114.0741837,51.0622840116,-114.077942242,51.0626034652,-114.079184506,51.0628035928,-114.079930468,51.0623509826,-114.080661372,51.0612760001,-114.082444014,51.0613468171,-114.085822669,51.0612971195,-114.086160827,51.0575163,-114.0888935,51.0584311848,-114.091702713,51.057144583,-114.093645714&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Modify code for Santiago''' ==&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* OTP location in backend (jar file)  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-21T18:25:54Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Install for Calgary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
== '''General prep steps''' ==&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
#* when using an existing VM image : &lt;br /&gt;
#** fix network issue (remove old card settings in ''/etc/udev/rules.d/70-persistent-net.rules'' and reboot)&lt;br /&gt;
#** set new machine name (in ''/etc/hostname'')&lt;br /&gt;
#** check if apache2 starts with an error message or not (for a fix see [[Setting up geonode]] &amp;gt; Basic Install for GeoNode v. 2.0)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== '''Install for Calgary''' ==&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end point (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put in apache's ''/var/www/'' (i.e. /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; add this layer to the layer selection and set as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get backend code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = on for each model =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. However, I am not having the sources right now, so the Walkshed request is send to the GISciencegroup server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [https://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; &lt;br /&gt;
#** it may be necessary to change run.py (causes error at the moment) since I am not having gnome-terminal available via command line. At the moment I am starting the scripts using commandline &amp;lt;code&amp;gt;python xxx.py &amp;amp;&amp;lt;/code&amp;gt;. Attention, the CrimeService.py and AggregationService.py script needs to be started from within its folder, otherwise config.py will not find the postgis.conf file (working directory issue).&lt;br /&gt;
#**# the Management Service (for pedestrian network) will listen on http://0.0.0.0:8363/&lt;br /&gt;
#**# the Crime Service will listen on http://0.0.0.0:8366/&lt;br /&gt;
#**# the Aggregation Service will listen on http://0.0.0.0:8364/&lt;br /&gt;
#**# the POI Service will listen on http://0.0.0.0:8365/&lt;br /&gt;
#** My running processes I can see then with &amp;lt;code&amp;gt;ps -u ssteinig&amp;lt;/code&amp;gt;&lt;br /&gt;
#** ToDo: check if it is possible to use &amp;quot;subprocess.Popen&amp;quot; or &amp;quot;Multiprocess&amp;quot; (see examples on stackoverflow and [http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args here])&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test if Calgary scenario works =&amp;gt; see next part&lt;br /&gt;
&lt;br /&gt;
== '''Testing Calgary scenario''' ==&lt;br /&gt;
# choosen params: &lt;br /&gt;
#* pos lat = 51.05747321278561&lt;br /&gt;
#* pos lon = -114.0794563293457&lt;br /&gt;
#* 15 min walkshed&lt;br /&gt;
#* walkspeed 1.38 m/sec&lt;br /&gt;
# Then this is how the web browser client request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
# the subsequent call to the managment service would be: &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=Execute&amp;amp;Version=1.0.0&amp;amp;Identifier=gs:Management&amp;amp;DataInputs=StartPoint=51.0574732128,-114.079456329;WalkingTimePeriod=15;WalkingSpeed=1.38&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''Routing/OTP WPS''': this call will return the pedestrian walkshed as JSON object &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Walkshed_Pedestrian&amp;amp;datainputs=StartPoint=51.0574732128,-114.079456329;WalkingPeriod=15;WalkingSpeed=1.38;WalkshedOutput=SHED&amp;lt;/pre&amp;gt; Note, that at the moment (8. April 2014) this will re-route the request to the Calgary OTP server. &lt;br /&gt;
#* '''Crime WPS''': for the same data and the pedestrian-network model we receive a list of crime features, with the following call: &lt;br /&gt;
#** Calgary server &amp;lt;pre&amp;gt;http://136.159.122.90:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed=%7B%22type%22:%22Polygon%22,%22coordinates%22:%5B%5B%5B-114.09364571378056,51.057144582993836%5D,%5B-114.09286815708892,51.05359381755474%5D,%5B-114.09101115708,51.050834058520664%5D,%5B-114.09075927937053,51.05080998647081%5D,%5B-114.0870286,51.0516827%5D,%5B-114.08586777200182,51.04970977429437%5D,%5B-114.0835059,51.0489783%5D,%5B-114.08184778623112,51.0498709384076%5D,%5B-114.081181,51.0536508%5D,%5B-114.0793914,51.0547065%5D,%5B-114.077687,51.0557314%5D,%5B-114.0756248,51.0568823%5D,%5B-114.0750158,51.0570965%5D,%5B-114.0736901,51.0573512%5D,%5B-114.06926177015508,51.055915080229724%5D,%5B-114.06619893997784,51.05694155563417%5D,%5B-114.06579011626843,51.0581622658825%5D,%5B-114.067673398873,51.058916548778726%5D,%5B-114.07143185670641,51.061423362491404%5D,%5B-114.07184987616904,51.06168921938163%5D,%5B-114.0741837,51.0613545%5D,%5B-114.07794224224338,51.06228401160695%5D,%5B-114.07918450576179,51.06260346516831%5D,%5B-114.07993046849634,51.06280359284396%5D,%5B-114.08066137191179,51.062350982627464%5D,%5B-114.08244401432806,51.06127600012983%5D,%5B-114.08582266933304,51.061346817139835%5D,%5B-114.08616082731021,51.06129711945887%5D,%5B-114.0888935,51.0575163%5D,%5B-114.09170271289915,51.05843118482227%5D,%5B-114.09364571378056,51.057144582993836%5D%5D%5D%7D&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** Stgo test server &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** if the python server/script is started, the crime data can also be retrieved using the following from the machines web browser itself (I think so...):&amp;lt;pre&amp;gt;http://127.0.0.1:8366/crime?walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* POI WPS : for the following call to my Stgo Server and by using a Calgary walkshed, we receive a list of POIs (raw about 1085 POIs): &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:POI_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** the direct request to MapQuest's Search API would look like this (limited to 10 results):&amp;lt;pre&amp;gt;http://www.mapquestapi.com/search/v2/polygon?key=Fmjtd%7Cluuan90bnh%2C8w%3Do5-96r5l4&amp;amp;callback=renderBasicSearchNarrative&amp;amp;maxMatches=10&amp;amp;outFormat=json&amp;amp;polygon=51.057144583,-114.093645714,51.0535938176,-114.092868157,51.0508340585,-114.091011157,51.0508099865,-114.090759279,51.0516827,-114.0870286,51.0497097743,-114.085867772,51.0489783,-114.0835059,51.0498709384,-114.081847786,51.0536508,-114.081181,51.0547065,-114.0793914,51.0557314,-114.077687,51.0568823,-114.0756248,51.0570965,-114.0750158,51.0573512,-114.0736901,51.0559150802,-114.06926177,51.0569415556,-114.06619894,51.0581622659,-114.065790116,51.0589165488,-114.067673399,51.0614233625,-114.071431857,51.0616892194,-114.071849876,51.0613545,-114.0741837,51.0622840116,-114.077942242,51.0626034652,-114.079184506,51.0628035928,-114.079930468,51.0623509826,-114.080661372,51.0612760001,-114.082444014,51.0613468171,-114.085822669,51.0612971195,-114.086160827,51.0575163,-114.0888935,51.0584311848,-114.091702713,51.057144583,-114.093645714&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Modify code for Santiago''' ==&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* OTP location in backend (jar file)  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-16T00:09:09Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Install for Calgary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
== '''General prep steps''' ==&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
#* when using an existing VM image : &lt;br /&gt;
#** fix network issue (remove old card settings in ''/etc/udev/rules.d/70-persistent-net.rules'' and reboot)&lt;br /&gt;
#** set new machine name (in ''/etc/hostname'')&lt;br /&gt;
#** check if apache2 starts with an error message or not (for a fix see [[Setting up geonode]] &amp;gt; Basic Install for GeoNode v. 2.0)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== '''Install for Calgary''' ==&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end point (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put in apache's ''/var/www/'' (i.e. /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; plus adding this to the layer selection plus as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get backend code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = on for each model =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. However, I am not having the sources right now, so the Walkshed request is send to the GISciencegroup server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [https://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; &lt;br /&gt;
#** it may be necessary to change run.py (causes error at the moment) since I am not having gnome-terminal available via command line. At the moment I am starting the scripts using commandline &amp;lt;code&amp;gt;python xxx.py &amp;amp;&amp;lt;/code&amp;gt;. Attention, the CrimeService.py and AggregationService.py script needs to be started from within its folder, otherwise config.py will not find the postgis.conf file (working directory issue).&lt;br /&gt;
#**# the Management Service (for pedestrian network) will listen on http://0.0.0.0:8363/&lt;br /&gt;
#**# the Crime Service will listen on http://0.0.0.0:8366/&lt;br /&gt;
#**# the Aggregation Service will listen on http://0.0.0.0:8364/&lt;br /&gt;
#**# the POI Service will listen on http://0.0.0.0:8365/&lt;br /&gt;
#** My running processes I can see then with &amp;lt;code&amp;gt;ps -u ssteinig&amp;lt;/code&amp;gt;&lt;br /&gt;
#** ToDo: check if it is possible to use &amp;quot;subprocess.Popen&amp;quot; or &amp;quot;Multiprocess&amp;quot; (see examples on stackoverflow and [http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args here])&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test if Calgary scenario works =&amp;gt; see next part&lt;br /&gt;
&lt;br /&gt;
== '''Testing Calgary scenario''' ==&lt;br /&gt;
# choosen params: &lt;br /&gt;
#* pos lat = 51.05747321278561&lt;br /&gt;
#* pos lon = -114.0794563293457&lt;br /&gt;
#* 15 min walkshed&lt;br /&gt;
#* walkspeed 1.38 m/sec&lt;br /&gt;
# Then this is how the web browser client request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
# the subsequent call to the managment service would be: &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=Execute&amp;amp;Version=1.0.0&amp;amp;Identifier=gs:Management&amp;amp;DataInputs=StartPoint=51.0574732128,-114.079456329;WalkingTimePeriod=15;WalkingSpeed=1.38&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''Routing/OTP WPS''': this call will return the pedestrian walkshed as JSON object &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Walkshed_Pedestrian&amp;amp;datainputs=StartPoint=51.0574732128,-114.079456329;WalkingPeriod=15;WalkingSpeed=1.38;WalkshedOutput=SHED&amp;lt;/pre&amp;gt; Note, that at the moment (8. April 2014) this will re-route the request to the Calgary OTP server. &lt;br /&gt;
#* '''Crime WPS''': for the same data and the pedestrian-network model we receive a list of crime features, with the following call: &lt;br /&gt;
#** Calgary server &amp;lt;pre&amp;gt;http://136.159.122.90:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed=%7B%22type%22:%22Polygon%22,%22coordinates%22:%5B%5B%5B-114.09364571378056,51.057144582993836%5D,%5B-114.09286815708892,51.05359381755474%5D,%5B-114.09101115708,51.050834058520664%5D,%5B-114.09075927937053,51.05080998647081%5D,%5B-114.0870286,51.0516827%5D,%5B-114.08586777200182,51.04970977429437%5D,%5B-114.0835059,51.0489783%5D,%5B-114.08184778623112,51.0498709384076%5D,%5B-114.081181,51.0536508%5D,%5B-114.0793914,51.0547065%5D,%5B-114.077687,51.0557314%5D,%5B-114.0756248,51.0568823%5D,%5B-114.0750158,51.0570965%5D,%5B-114.0736901,51.0573512%5D,%5B-114.06926177015508,51.055915080229724%5D,%5B-114.06619893997784,51.05694155563417%5D,%5B-114.06579011626843,51.0581622658825%5D,%5B-114.067673398873,51.058916548778726%5D,%5B-114.07143185670641,51.061423362491404%5D,%5B-114.07184987616904,51.06168921938163%5D,%5B-114.0741837,51.0613545%5D,%5B-114.07794224224338,51.06228401160695%5D,%5B-114.07918450576179,51.06260346516831%5D,%5B-114.07993046849634,51.06280359284396%5D,%5B-114.08066137191179,51.062350982627464%5D,%5B-114.08244401432806,51.06127600012983%5D,%5B-114.08582266933304,51.061346817139835%5D,%5B-114.08616082731021,51.06129711945887%5D,%5B-114.0888935,51.0575163%5D,%5B-114.09170271289915,51.05843118482227%5D,%5B-114.09364571378056,51.057144582993836%5D%5D%5D%7D&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** Stgo test server &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** if the python server/script is started, the crime data can also be retrieved using the following from the machines web browser itself (I think so...):&amp;lt;pre&amp;gt;http://127.0.0.1:8366/crime?walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* POI WPS : for the following call to my Stgo Server and by using a Calgary walkshed, we receive a list of POIs (raw about 1085 POIs): &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:POI_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** the direct request to MapQuest's Search API would look like this (limited to 10 results):&amp;lt;pre&amp;gt;http://www.mapquestapi.com/search/v2/polygon?key=Fmjtd%7Cluuan90bnh%2C8w%3Do5-96r5l4&amp;amp;callback=renderBasicSearchNarrative&amp;amp;maxMatches=10&amp;amp;outFormat=json&amp;amp;polygon=51.057144583,-114.093645714,51.0535938176,-114.092868157,51.0508340585,-114.091011157,51.0508099865,-114.090759279,51.0516827,-114.0870286,51.0497097743,-114.085867772,51.0489783,-114.0835059,51.0498709384,-114.081847786,51.0536508,-114.081181,51.0547065,-114.0793914,51.0557314,-114.077687,51.0568823,-114.0756248,51.0570965,-114.0750158,51.0573512,-114.0736901,51.0559150802,-114.06926177,51.0569415556,-114.06619894,51.0581622659,-114.065790116,51.0589165488,-114.067673399,51.0614233625,-114.071431857,51.0616892194,-114.071849876,51.0613545,-114.0741837,51.0622840116,-114.077942242,51.0626034652,-114.079184506,51.0628035928,-114.079930468,51.0623509826,-114.080661372,51.0612760001,-114.082444014,51.0613468171,-114.085822669,51.0612971195,-114.086160827,51.0575163,-114.0888935,51.0584311848,-114.091702713,51.057144583,-114.093645714&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Modify code for Santiago''' ==&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* OTP location in backend (jar file)  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-16T00:06:45Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Install for Calgary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
== '''General prep steps''' ==&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
#* when using an existing VM image : &lt;br /&gt;
#** fix network issue (remove old card settings in ''/etc/udev/rules.d/70-persistent-net.rules'' and reboot)&lt;br /&gt;
#** set new machine name (in ''/etc/hostname'')&lt;br /&gt;
#** check if apache2 starts with an error message or not (for a fix see [[Setting up geonode]] &amp;gt; Basic Install for GeoNode v. 2.0)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== '''Install for Calgary''' ==&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end point (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put in apache's ''/var/www/'' (i.e. /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; plus adding this to the layer selection plus as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get backend code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = on for each model =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. However, I am not having the sources right now, so the Walkshed request is send to the GISciencegroup server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [https://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; &lt;br /&gt;
#** it may be necessary to change run.py (causes error at the moment) since I am not having gnome-terminal available via command line. At the moment I am starting the scripts using commandline &amp;lt;code&amp;gt;python xxx.py &amp;amp;&amp;lt;/code&amp;gt;. Attention, the CrimeService.py script needs to be started from within its folder, otherwise config.py will not find the postgis.conf file (working directory issue).&lt;br /&gt;
#**# the Management Service (for pedestrian network) will listen on http://0.0.0.0:8363/&lt;br /&gt;
#**# the Crime Service will listen on http://0.0.0.0:8366/&lt;br /&gt;
#**# the Aggregation Service will listen on http://0.0.0.0:8364/&lt;br /&gt;
#**# the POI Service will listen on http://0.0.0.0:8365/&lt;br /&gt;
#** My running processes I can see then with &amp;lt;code&amp;gt;ps -u ssteinig&amp;lt;/code&amp;gt;&lt;br /&gt;
#** ToDo: check if it is possible to use &amp;quot;subprocess.Popen&amp;quot; or &amp;quot;Multiprocess&amp;quot; (see examples on stackoverflow and [http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args here])&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test if Calgary scenario works =&amp;gt; see next part&lt;br /&gt;
&lt;br /&gt;
== '''Testing Calgary scenario''' ==&lt;br /&gt;
# choosen params: &lt;br /&gt;
#* pos lat = 51.05747321278561&lt;br /&gt;
#* pos lon = -114.0794563293457&lt;br /&gt;
#* 15 min walkshed&lt;br /&gt;
#* walkspeed 1.38 m/sec&lt;br /&gt;
# Then this is how the web browser client request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
# the subsequent call to the managment service would be: &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=Execute&amp;amp;Version=1.0.0&amp;amp;Identifier=gs:Management&amp;amp;DataInputs=StartPoint=51.0574732128,-114.079456329;WalkingTimePeriod=15;WalkingSpeed=1.38&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''Routing/OTP WPS''': this call will return the pedestrian walkshed as JSON object &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Walkshed_Pedestrian&amp;amp;datainputs=StartPoint=51.0574732128,-114.079456329;WalkingPeriod=15;WalkingSpeed=1.38;WalkshedOutput=SHED&amp;lt;/pre&amp;gt; Note, that at the moment (8. April 2014) this will re-route the request to the Calgary OTP server. &lt;br /&gt;
#* '''Crime WPS''': for the same data and the pedestrian-network model we receive a list of crime features, with the following call: &lt;br /&gt;
#** Calgary server &amp;lt;pre&amp;gt;http://136.159.122.90:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed=%7B%22type%22:%22Polygon%22,%22coordinates%22:%5B%5B%5B-114.09364571378056,51.057144582993836%5D,%5B-114.09286815708892,51.05359381755474%5D,%5B-114.09101115708,51.050834058520664%5D,%5B-114.09075927937053,51.05080998647081%5D,%5B-114.0870286,51.0516827%5D,%5B-114.08586777200182,51.04970977429437%5D,%5B-114.0835059,51.0489783%5D,%5B-114.08184778623112,51.0498709384076%5D,%5B-114.081181,51.0536508%5D,%5B-114.0793914,51.0547065%5D,%5B-114.077687,51.0557314%5D,%5B-114.0756248,51.0568823%5D,%5B-114.0750158,51.0570965%5D,%5B-114.0736901,51.0573512%5D,%5B-114.06926177015508,51.055915080229724%5D,%5B-114.06619893997784,51.05694155563417%5D,%5B-114.06579011626843,51.0581622658825%5D,%5B-114.067673398873,51.058916548778726%5D,%5B-114.07143185670641,51.061423362491404%5D,%5B-114.07184987616904,51.06168921938163%5D,%5B-114.0741837,51.0613545%5D,%5B-114.07794224224338,51.06228401160695%5D,%5B-114.07918450576179,51.06260346516831%5D,%5B-114.07993046849634,51.06280359284396%5D,%5B-114.08066137191179,51.062350982627464%5D,%5B-114.08244401432806,51.06127600012983%5D,%5B-114.08582266933304,51.061346817139835%5D,%5B-114.08616082731021,51.06129711945887%5D,%5B-114.0888935,51.0575163%5D,%5B-114.09170271289915,51.05843118482227%5D,%5B-114.09364571378056,51.057144582993836%5D%5D%5D%7D&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** Stgo test server &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** if the python server/script is started, the crime data can also be retrieved using the following from the machines web browser itself (I think so...):&amp;lt;pre&amp;gt;http://127.0.0.1:8366/crime?walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* POI WPS : for the following call to my Stgo Server and by using a Calgary walkshed, we receive a list of POIs (raw about 1085 POIs): &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:POI_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** the direct request to MapQuest's Search API would look like this (limited to 10 results):&amp;lt;pre&amp;gt;http://www.mapquestapi.com/search/v2/polygon?key=Fmjtd%7Cluuan90bnh%2C8w%3Do5-96r5l4&amp;amp;callback=renderBasicSearchNarrative&amp;amp;maxMatches=10&amp;amp;outFormat=json&amp;amp;polygon=51.057144583,-114.093645714,51.0535938176,-114.092868157,51.0508340585,-114.091011157,51.0508099865,-114.090759279,51.0516827,-114.0870286,51.0497097743,-114.085867772,51.0489783,-114.0835059,51.0498709384,-114.081847786,51.0536508,-114.081181,51.0547065,-114.0793914,51.0557314,-114.077687,51.0568823,-114.0756248,51.0570965,-114.0750158,51.0573512,-114.0736901,51.0559150802,-114.06926177,51.0569415556,-114.06619894,51.0581622659,-114.065790116,51.0589165488,-114.067673399,51.0614233625,-114.071431857,51.0616892194,-114.071849876,51.0613545,-114.0741837,51.0622840116,-114.077942242,51.0626034652,-114.079184506,51.0628035928,-114.079930468,51.0623509826,-114.080661372,51.0612760001,-114.082444014,51.0613468171,-114.085822669,51.0612971195,-114.086160827,51.0575163,-114.0888935,51.0584311848,-114.091702713,51.057144583,-114.093645714&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Modify code for Santiago''' ==&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* OTP location in backend (jar file)  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-14T19:59:53Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Testing Calgary scenario */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
== '''General prep steps''' ==&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
#* when using an existing VM image : &lt;br /&gt;
#** fix network issue (remove old card settings in ''/etc/udev/rules.d/70-persistent-net.rules'' and reboot)&lt;br /&gt;
#** set new machine name (in ''/etc/hostname'')&lt;br /&gt;
#** check if apache2 starts with an error message or not (for a fix see [[Setting up geonode]] &amp;gt; Basic Install for GeoNode v. 2.0)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== '''Install for Calgary''' ==&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end point (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put in apache's ''/var/www/'' (i.e. /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; plus adding this to the layer selection plus as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get backend code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = on for each model =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. However, I am not having the sources right now, so the Walkshed request is send to the GISciencegroup server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [https://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; &lt;br /&gt;
#** it may be necessary to change run.py (causes error at the moment) since I am not having gnome-terminal available via command line. At the moment I am starting the scripts using commandline &amp;lt;code&amp;gt;python xxx.py &amp;amp;&amp;lt;/code&amp;gt;. &lt;br /&gt;
#**# the Management Service (for pedestrian network) will listen on http://0.0.0.0:8363/&lt;br /&gt;
#**# the Crime Service will listen on http://0.0.0.0:8366/&lt;br /&gt;
#**# the Aggregation Service will listen on http://0.0.0.0:8364/&lt;br /&gt;
#**# the POI Service will listen on http://0.0.0.0:8365/&lt;br /&gt;
#** My running processes I can see then with &amp;lt;code&amp;gt;ps -u ssteinig&amp;lt;/code&amp;gt;&lt;br /&gt;
#** ToDo: check if it is possible to use &amp;quot;subprocess.Popen&amp;quot; or &amp;quot;Multiprocess&amp;quot; (see examples on stackoverflow and [http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args here])&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test if Calgary scenario works =&amp;gt; see next part&lt;br /&gt;
== '''Testing Calgary scenario''' ==&lt;br /&gt;
# choosen params: &lt;br /&gt;
#* pos lat = 51.05747321278561&lt;br /&gt;
#* pos lon = -114.0794563293457&lt;br /&gt;
#* 15 min walkshed&lt;br /&gt;
#* walkspeed 1.38 m/sec&lt;br /&gt;
# Then this is how the web browser client request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
# the subsequent call to the managment service would be: &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=Execute&amp;amp;Version=1.0.0&amp;amp;Identifier=gs:Management&amp;amp;DataInputs=StartPoint=51.0574732128,-114.079456329;WalkingTimePeriod=15;WalkingSpeed=1.38&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''Routing/OTP WPS''': this call will return the pedestrian walkshed as JSON object &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Walkshed_Pedestrian&amp;amp;datainputs=StartPoint=51.0574732128,-114.079456329;WalkingPeriod=15;WalkingSpeed=1.38;WalkshedOutput=SHED&amp;lt;/pre&amp;gt; Note, that at the moment (8. April 2014) this will re-route the request to the Calgary OTP server. &lt;br /&gt;
#* '''Crime WPS''': for the same data and the pedestrian-network model we receive a list of crime features, with the following call: &lt;br /&gt;
#** Calgary server &amp;lt;pre&amp;gt;http://136.159.122.90:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed=%7B%22type%22:%22Polygon%22,%22coordinates%22:%5B%5B%5B-114.09364571378056,51.057144582993836%5D,%5B-114.09286815708892,51.05359381755474%5D,%5B-114.09101115708,51.050834058520664%5D,%5B-114.09075927937053,51.05080998647081%5D,%5B-114.0870286,51.0516827%5D,%5B-114.08586777200182,51.04970977429437%5D,%5B-114.0835059,51.0489783%5D,%5B-114.08184778623112,51.0498709384076%5D,%5B-114.081181,51.0536508%5D,%5B-114.0793914,51.0547065%5D,%5B-114.077687,51.0557314%5D,%5B-114.0756248,51.0568823%5D,%5B-114.0750158,51.0570965%5D,%5B-114.0736901,51.0573512%5D,%5B-114.06926177015508,51.055915080229724%5D,%5B-114.06619893997784,51.05694155563417%5D,%5B-114.06579011626843,51.0581622658825%5D,%5B-114.067673398873,51.058916548778726%5D,%5B-114.07143185670641,51.061423362491404%5D,%5B-114.07184987616904,51.06168921938163%5D,%5B-114.0741837,51.0613545%5D,%5B-114.07794224224338,51.06228401160695%5D,%5B-114.07918450576179,51.06260346516831%5D,%5B-114.07993046849634,51.06280359284396%5D,%5B-114.08066137191179,51.062350982627464%5D,%5B-114.08244401432806,51.06127600012983%5D,%5B-114.08582266933304,51.061346817139835%5D,%5B-114.08616082731021,51.06129711945887%5D,%5B-114.0888935,51.0575163%5D,%5B-114.09170271289915,51.05843118482227%5D,%5B-114.09364571378056,51.057144582993836%5D%5D%5D%7D&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** Stgo test server &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** if the python server/script is started, the crime data can also be retrieved using the following from the machines web browser itself (I think so...):&amp;lt;pre&amp;gt;http://127.0.0.1:8366/crime?walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* POI WPS : for the following call to my Stgo Server and by using a Calgary walkshed, we receive a list of POIs (raw about 1085 POIs): &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:POI_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** the direct request to MapQuest's Search API would look like this (limited to 10 results):&amp;lt;pre&amp;gt;http://www.mapquestapi.com/search/v2/polygon?key=Fmjtd%7Cluuan90bnh%2C8w%3Do5-96r5l4&amp;amp;callback=renderBasicSearchNarrative&amp;amp;maxMatches=10&amp;amp;outFormat=json&amp;amp;polygon=51.057144583,-114.093645714,51.0535938176,-114.092868157,51.0508340585,-114.091011157,51.0508099865,-114.090759279,51.0516827,-114.0870286,51.0497097743,-114.085867772,51.0489783,-114.0835059,51.0498709384,-114.081847786,51.0536508,-114.081181,51.0547065,-114.0793914,51.0557314,-114.077687,51.0568823,-114.0756248,51.0570965,-114.0750158,51.0573512,-114.0736901,51.0559150802,-114.06926177,51.0569415556,-114.06619894,51.0581622659,-114.065790116,51.0589165488,-114.067673399,51.0614233625,-114.071431857,51.0616892194,-114.071849876,51.0613545,-114.0741837,51.0622840116,-114.077942242,51.0626034652,-114.079184506,51.0628035928,-114.079930468,51.0623509826,-114.080661372,51.0612760001,-114.082444014,51.0613468171,-114.085822669,51.0612971195,-114.086160827,51.0575163,-114.0888935,51.0584311848,-114.091702713,51.057144583,-114.093645714&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Modify code for Santiago''' ==&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* OTP location in backend (jar file)  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-14T19:55:34Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Testing Calgary scenario */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
== '''General prep steps''' ==&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
#* when using an existing VM image : &lt;br /&gt;
#** fix network issue (remove old card settings in ''/etc/udev/rules.d/70-persistent-net.rules'' and reboot)&lt;br /&gt;
#** set new machine name (in ''/etc/hostname'')&lt;br /&gt;
#** check if apache2 starts with an error message or not (for a fix see [[Setting up geonode]] &amp;gt; Basic Install for GeoNode v. 2.0)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== '''Install for Calgary''' ==&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end point (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put in apache's ''/var/www/'' (i.e. /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; plus adding this to the layer selection plus as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get backend code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = on for each model =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. However, I am not having the sources right now, so the Walkshed request is send to the GISciencegroup server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [https://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; &lt;br /&gt;
#** it may be necessary to change run.py (causes error at the moment) since I am not having gnome-terminal available via command line. At the moment I am starting the scripts using commandline &amp;lt;code&amp;gt;python xxx.py &amp;amp;&amp;lt;/code&amp;gt;. &lt;br /&gt;
#**# the Management Service (for pedestrian network) will listen on http://0.0.0.0:8363/&lt;br /&gt;
#**# the Crime Service will listen on http://0.0.0.0:8366/&lt;br /&gt;
#**# the Aggregation Service will listen on http://0.0.0.0:8364/&lt;br /&gt;
#**# the POI Service will listen on http://0.0.0.0:8365/&lt;br /&gt;
#** My running processes I can see then with &amp;lt;code&amp;gt;ps -u ssteinig&amp;lt;/code&amp;gt;&lt;br /&gt;
#** ToDo: check if it is possible to use &amp;quot;subprocess.Popen&amp;quot; or &amp;quot;Multiprocess&amp;quot; (see examples on stackoverflow and [http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args here])&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test if Calgary scenario works =&amp;gt; see next part&lt;br /&gt;
== '''Testing Calgary scenario''' ==&lt;br /&gt;
# choosen params: &lt;br /&gt;
#* pos lat = 51.05747321278561&lt;br /&gt;
#* pos lon = -114.0794563293457&lt;br /&gt;
#* 15 min walkshed&lt;br /&gt;
#* walkspeed 1.38 m/sec&lt;br /&gt;
# Then this is how the web browser client request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
# the subsequent call to the managment service would be: &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=Execute&amp;amp;Version=1.0.0&amp;amp;Identifier=gs:Management&amp;amp;DataInputs=StartPoint=51.0574732128,-114.079456329;WalkingTimePeriod=15;WalkingSpeed=1.38&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''Routing/OTP WPS''': this call will return the pedestrian walkshed as JSON object &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Walkshed_Pedestrian&amp;amp;datainputs=StartPoint=51.0574732128,-114.079456329;WalkingPeriod=15;WalkingSpeed=1.38;WalkshedOutput=SHED&amp;lt;/pre&amp;gt; Note, that at the moment (8. April 2014) this will re-route the request to the Calgary OTP server. &lt;br /&gt;
#* '''Crime WPS''': for the same data and the pedestrian-network model we receive a list of crime features, with the following call: &lt;br /&gt;
#** Calgary server &amp;lt;pre&amp;gt;http://136.159.122.90:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed=%7B%22type%22:%22Polygon%22,%22coordinates%22:%5B%5B%5B-114.09364571378056,51.057144582993836%5D,%5B-114.09286815708892,51.05359381755474%5D,%5B-114.09101115708,51.050834058520664%5D,%5B-114.09075927937053,51.05080998647081%5D,%5B-114.0870286,51.0516827%5D,%5B-114.08586777200182,51.04970977429437%5D,%5B-114.0835059,51.0489783%5D,%5B-114.08184778623112,51.0498709384076%5D,%5B-114.081181,51.0536508%5D,%5B-114.0793914,51.0547065%5D,%5B-114.077687,51.0557314%5D,%5B-114.0756248,51.0568823%5D,%5B-114.0750158,51.0570965%5D,%5B-114.0736901,51.0573512%5D,%5B-114.06926177015508,51.055915080229724%5D,%5B-114.06619893997784,51.05694155563417%5D,%5B-114.06579011626843,51.0581622658825%5D,%5B-114.067673398873,51.058916548778726%5D,%5B-114.07143185670641,51.061423362491404%5D,%5B-114.07184987616904,51.06168921938163%5D,%5B-114.0741837,51.0613545%5D,%5B-114.07794224224338,51.06228401160695%5D,%5B-114.07918450576179,51.06260346516831%5D,%5B-114.07993046849634,51.06280359284396%5D,%5B-114.08066137191179,51.062350982627464%5D,%5B-114.08244401432806,51.06127600012983%5D,%5B-114.08582266933304,51.061346817139835%5D,%5B-114.08616082731021,51.06129711945887%5D,%5B-114.0888935,51.0575163%5D,%5B-114.09170271289915,51.05843118482227%5D,%5B-114.09364571378056,51.057144582993836%5D%5D%5D%7D&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** Stgo test server &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** if the python server/script is started, the crime data can also be retrieved using the following from the machines web browser itself(I think so...):&amp;lt;pre&amp;gt;http://127.0.0.1:8366/crime?walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* POI WPS : for the following call to my Stgo Server and by using a Calgary walkshed, we receive a list of POIs (raw about 1085 POIs, filtered about ???): &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:POI_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** the direct request to MapQuest's Search API would look like this (limited to 10 results):&amp;lt;pre&amp;gt;http://www.mapquestapi.com/search/v2/polygon?key=Fmjtd%7Cluuan90bnh%2C8w%3Do5-96r5l4&amp;amp;callback=renderBasicSearchNarrative&amp;amp;maxMatches=10&amp;amp;outFormat=json&amp;amp;polygon=51.057144583,-114.093645714,51.0535938176,-114.092868157,51.0508340585,-114.091011157,51.0508099865,-114.090759279,51.0516827,-114.0870286,51.0497097743,-114.085867772,51.0489783,-114.0835059,51.0498709384,-114.081847786,51.0536508,-114.081181,51.0547065,-114.0793914,51.0557314,-114.077687,51.0568823,-114.0756248,51.0570965,-114.0750158,51.0573512,-114.0736901,51.0559150802,-114.06926177,51.0569415556,-114.06619894,51.0581622659,-114.065790116,51.0589165488,-114.067673399,51.0614233625,-114.071431857,51.0616892194,-114.071849876,51.0613545,-114.0741837,51.0622840116,-114.077942242,51.0626034652,-114.079184506,51.0628035928,-114.079930468,51.0623509826,-114.080661372,51.0612760001,-114.082444014,51.0613468171,-114.085822669,51.0612971195,-114.086160827,51.0575163,-114.0888935,51.0584311848,-114.091702713,51.057144583,-114.093645714&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Modify code for Santiago''' ==&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* OTP location in backend (jar file)  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Accessing_server_infra</id>
		<title>Accessing server infra</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Accessing_server_infra"/>
				<updated>2014-04-10T17:38:04Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* apt-get */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== apt-get ==&lt;br /&gt;
an intro can be found [http://newbiedoc.sourceforge.net/tutorials/apt-get-intro/info.html here]&lt;br /&gt;
* see what is installed &amp;lt;code&amp;gt;dpkg -l&amp;lt;/code&amp;gt;&lt;br /&gt;
* info on a  particular package &amp;lt;code&amp;gt;apt-cache show PackageName&amp;lt;/code&amp;gt;&lt;br /&gt;
* upgrade &amp;lt;code&amp;gt;apt-get upgrade PackageName&amp;lt;/code&amp;gt; or: &amp;lt;code&amp;gt;sudo apt-get install libssl1.0.0&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== git stuff ==&lt;br /&gt;
*git diff&lt;br /&gt;
*git pull&lt;br /&gt;
*git status&lt;br /&gt;
*git reset --hard HEAD&lt;br /&gt;
*git reset HEAD~1&lt;br /&gt;
*git reset HEAD opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/analyst/IsoChrone.java&lt;br /&gt;
*git log -p&lt;br /&gt;
*git add opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/analyst/IsoChrone.java&lt;br /&gt;
*git commit -m 'added debug code to be able to figure why some edges are traversed to fast (aside fromom u-shaped roads)'&lt;br /&gt;
*gitk&lt;br /&gt;
*git push origin master&lt;br /&gt;
*git show-ref&lt;br /&gt;
*git stash list&lt;br /&gt;
*git log origin/master..master&lt;br /&gt;
*git fetch upstream&lt;br /&gt;
*git remote add upstream https://github.com/openplans/OpenTripPlanner.git&lt;br /&gt;
*git remote show origin&lt;br /&gt;
*git remote set-url origin git://github.com/mentaer/OpenTripPlanner.git&lt;br /&gt;
*git remote set-url origin git@github.com:mentaer/OpenTripPlanner.git&lt;br /&gt;
*git diff &amp;gt; /Volumes/WINDOOF/walkingslopeeffects.patch&lt;br /&gt;
*patch -p1 -R &amp;lt; IsoChrone2.patch&lt;br /&gt;
*git apply --check /Volumes/WINDOOF/IsoChrone.patch&lt;br /&gt;
&lt;br /&gt;
== maven stuff ==&lt;br /&gt;
*mvn package -DskipTests&lt;br /&gt;
&lt;br /&gt;
== postgres stuff ==&lt;br /&gt;
&lt;br /&gt;
*echo 'export PATH=/Library/PostgreSQL/9.2/bin:$PATH' &amp;gt;&amp;gt; ~/.bash_profile&lt;br /&gt;
&lt;br /&gt;
*psql&lt;br /&gt;
*sudo mkdir /Library/PostgreSQL/9.2/data/&lt;br /&gt;
*sudo chown postgres /Library/PostgreSQL/9.2/data/&lt;br /&gt;
*sudo -u postgres initdb -D /Library/PostgreSQL/9.2/data/&lt;br /&gt;
*service postgresql start&lt;br /&gt;
*sudo -u postgres pg_ctl -D /Library/PostgreSQL/9.2/data -l logfile start&lt;br /&gt;
*sudo -u postgres postgres -D /Library/PostgreSQL/9.2/data &amp;amp;&lt;br /&gt;
*sudo -u postgres createdb santiagotest&lt;br /&gt;
*sudo -u postgres createuser -P -s -e mentaer&lt;br /&gt;
*psql santiagotest&lt;br /&gt;
&lt;br /&gt;
== using VirtualBox ==&lt;br /&gt;
&amp;quot; use ''ssh -X sstein..@xxx'' to enable a visual client&lt;br /&gt;
* vboxgtk (start visual client)&lt;br /&gt;
&lt;br /&gt;
create and start a VM from comandline:&lt;br /&gt;
* &amp;lt;code&amp;gt;VBoxManage createvm --name ubuntu --register&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;VBoxManage modifyvm ubuntu --ostype ubuntu_64 --cpus 4&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;VBoxManage modifyvm ubuntu --memory 8000&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;VBoxManage startvm ubuntu&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
other:&lt;br /&gt;
* options of ip-addressing/web access: NAT (Network Address Translation) or Bridge (see also this [http://catlingmindswipe.blogspot.com/2012/06/how-to-virtualbox-networking-part-two.html blog entry]) &lt;br /&gt;
* downloading .iso archives/vm from OSGeo (use commands ''curl'' or ''wget -c''), e.g.:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget -c &amp;quot;http://downloads.sourceforge.net/project/osgeo-live/7.0/osgeo-live-7.0.iso?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fosgeo-live%2Ffiles%2F%2F7.0%2Fosgeo-live-7.0.iso%2Fdownload&amp;amp;ts=1384444616&amp;amp;use_mirror=ufpr&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* showing list of running VMs: &amp;lt;code&amp;gt;VBoxManage list runningvms&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
a VM contains 3 files: .img + .vbox (an editable xml) + .vbox-prev&lt;br /&gt;
&lt;br /&gt;
== OpenTripPlanner ==&lt;br /&gt;
* start with &amp;quot;sh start-server.sh&amp;quot;; use &amp;quot;&amp;amp;&amp;quot; at the end to keep the process running&lt;br /&gt;
* make sure that winstone.jar is executable, with chmod 755&lt;br /&gt;
* define in the start-server.sh file also where the webapps folder is located (physical location), so winstone knows that&lt;br /&gt;
* define in the WEB-INF/classes/data-sources.xml file where the graph is stored (physical location) - the files is within /otp/webapps/opentripplanner-api-webapp.war (or: the deflated war folder)&lt;br /&gt;
* kill winstone server (or OTP) process: use &amp;lt;pre&amp;gt;ps aux | grep winstone&amp;lt;/pre&amp;gt; to find the associated PID, and use &amp;lt;code&amp;gt;kill pid&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== unix commands ==&lt;br /&gt;
http://www.computerhope.com/issues/ch000623.htm&lt;br /&gt;
&lt;br /&gt;
connect to server:&lt;br /&gt;
*ssh stefan@136.159.xxx.xxx&lt;br /&gt;
*ssh sstein@146.155.xxx.xxx.&lt;br /&gt;
*pid&lt;br /&gt;
* (sudo) kill pid, e.g. kill 320&lt;br /&gt;
*top or: htop&lt;br /&gt;
*process&lt;br /&gt;
* &amp;quot;sudo shutdown now -h&amp;quot; or &amp;quot;sudo reboot&amp;quot;&lt;br /&gt;
* seeing system info: &amp;lt;code&amp;gt;cat /etc/*-release&amp;lt;/code&amp;gt; + htop (needs to be installed first)&lt;br /&gt;
* '''grep''': search for files in the folder ''/var/.../static/'' that contain the string ''nav-pills'' with: &amp;lt;code&amp;gt;grep -r -i &amp;quot;nav-pills&amp;quot; /var/www/geonode/static/&amp;lt;/code&amp;gt;&lt;br /&gt;
and:&lt;br /&gt;
*commands to display/figure out processes: http://www.howtogeek.com/107217/&lt;br /&gt;
*kill process: http://www.cyberciti.biz/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems/&lt;br /&gt;
*configuration info: http://www.cyberciti.biz/faq/linux-command-to-find-the-system-configuration-and-hardware-information/&lt;br /&gt;
*use of ''grep'': http://www.cyberciti.biz/faq/howto-use-grep-command-in-linux-unix/&lt;br /&gt;
*used ports: &amp;lt;code&amp;gt;netstat -a&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installing lightweight XFCE Desktop GUI on Ubuntu Server ==&lt;br /&gt;
* use &amp;lt;code&amp;gt;sudo apt-get install xubuntu-desktop&amp;lt;/code&amp;gt; to install XFCE client (see [http://help.ubuntu.com/community/ServerGUI here]).&lt;br /&gt;
* this will also install xauth, which allows remote window clients&lt;br /&gt;
* disable start of GUI-based login on system startup with Grub (taken from [http://askubuntu.com/questions/174312/how-can-i-set-my-ubuntu-12-04-lts-to-boot-to-console-without-gui here]):&lt;br /&gt;
** Change (edit) in /etc/default/grub file: &amp;lt;code&amp;gt;GRUB_CMDLINE_LINUX_DEFAULT=&amp;quot;text&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
** then do &amp;lt;code&amp;gt;sudo update-grub&amp;lt;/code&amp;gt;&lt;br /&gt;
* start the desktop GUI session using &amp;lt;code&amp;gt;startx&amp;lt;/code&amp;gt;&lt;br /&gt;
* end the desktop GUI session using &amp;quot;logout&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
== Enabling Remote Desktop for Windows ==&lt;br /&gt;
got the info from [http://www.ubuntututorials.com/remote-desktop-ubuntu-12-04-windows-7/ here]&lt;br /&gt;
* install XRDP: &amp;lt;code&amp;gt;sudo apt-get install xrdp&amp;lt;/code&amp;gt;&lt;br /&gt;
* connect via Windows Remote Desktop using the IP etc. &lt;br /&gt;
* if not needed, switch off the remote desktop server using: &amp;lt;code&amp;gt;sudo service xrdp stop&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== other stuff ==&lt;br /&gt;
* gdalinfo cgydem_fromgrid.tif&lt;br /&gt;
* if computer crashs: boot from a LiveDVD and the run &amp;lt;code&amp;gt;fsck&amp;lt;/code&amp;gt; (see http://www.thegeekstuff.com/2012/08/fsck-command-examples/)&lt;br /&gt;
* '''compress''': &lt;br /&gt;
** files by using: &amp;lt;code&amp;gt;zip newzipfile.zip fileToZip.obj&amp;lt;/code&amp;gt;&lt;br /&gt;
** whole folders by using: &amp;lt;code&amp;gt;tar -cvzf tarfilename.tgz /folder/to/compress&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''uncompress''':&lt;br /&gt;
** zip files, using: &amp;lt;code&amp;gt;unzip filename.zip&amp;lt;/code&amp;gt;, &lt;br /&gt;
** bz2 files with: &amp;lt;code&amp;gt;bunzip2 filename.bz2&amp;lt;/code&amp;gt;&lt;br /&gt;
** tar files: &amp;lt;code&amp;gt;tar -C / -xvzf tarfilename.tgz&amp;lt;/code&amp;gt; . ''Attention !!!'' This will restore the data exactly in the same place on the computer, and overwrite existing folders and files.&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Accessing_server_infra</id>
		<title>Accessing server infra</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Accessing_server_infra"/>
				<updated>2014-04-10T17:17:09Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* apt-get */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== apt-get ==&lt;br /&gt;
an intro can be found [http://newbiedoc.sourceforge.net/tutorials/apt-get-intro/info.html here]&lt;br /&gt;
* see what is installed &amp;lt;code&amp;gt;dpkg -l&amp;lt;/code&amp;gt;&lt;br /&gt;
* info on a  particular package &amp;lt;code&amp;gt;apt-cache show PackageName&amp;lt;/code&amp;gt;&lt;br /&gt;
* upgrade &amp;lt;code&amp;gt;apt-get upgrade PackageName&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== git stuff ==&lt;br /&gt;
*git diff&lt;br /&gt;
*git pull&lt;br /&gt;
*git status&lt;br /&gt;
*git reset --hard HEAD&lt;br /&gt;
*git reset HEAD~1&lt;br /&gt;
*git reset HEAD opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/analyst/IsoChrone.java&lt;br /&gt;
*git log -p&lt;br /&gt;
*git add opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/analyst/IsoChrone.java&lt;br /&gt;
*git commit -m 'added debug code to be able to figure why some edges are traversed to fast (aside fromom u-shaped roads)'&lt;br /&gt;
*gitk&lt;br /&gt;
*git push origin master&lt;br /&gt;
*git show-ref&lt;br /&gt;
*git stash list&lt;br /&gt;
*git log origin/master..master&lt;br /&gt;
*git fetch upstream&lt;br /&gt;
*git remote add upstream https://github.com/openplans/OpenTripPlanner.git&lt;br /&gt;
*git remote show origin&lt;br /&gt;
*git remote set-url origin git://github.com/mentaer/OpenTripPlanner.git&lt;br /&gt;
*git remote set-url origin git@github.com:mentaer/OpenTripPlanner.git&lt;br /&gt;
*git diff &amp;gt; /Volumes/WINDOOF/walkingslopeeffects.patch&lt;br /&gt;
*patch -p1 -R &amp;lt; IsoChrone2.patch&lt;br /&gt;
*git apply --check /Volumes/WINDOOF/IsoChrone.patch&lt;br /&gt;
&lt;br /&gt;
== maven stuff ==&lt;br /&gt;
*mvn package -DskipTests&lt;br /&gt;
&lt;br /&gt;
== postgres stuff ==&lt;br /&gt;
&lt;br /&gt;
*echo 'export PATH=/Library/PostgreSQL/9.2/bin:$PATH' &amp;gt;&amp;gt; ~/.bash_profile&lt;br /&gt;
&lt;br /&gt;
*psql&lt;br /&gt;
*sudo mkdir /Library/PostgreSQL/9.2/data/&lt;br /&gt;
*sudo chown postgres /Library/PostgreSQL/9.2/data/&lt;br /&gt;
*sudo -u postgres initdb -D /Library/PostgreSQL/9.2/data/&lt;br /&gt;
*service postgresql start&lt;br /&gt;
*sudo -u postgres pg_ctl -D /Library/PostgreSQL/9.2/data -l logfile start&lt;br /&gt;
*sudo -u postgres postgres -D /Library/PostgreSQL/9.2/data &amp;amp;&lt;br /&gt;
*sudo -u postgres createdb santiagotest&lt;br /&gt;
*sudo -u postgres createuser -P -s -e mentaer&lt;br /&gt;
*psql santiagotest&lt;br /&gt;
&lt;br /&gt;
== using VirtualBox ==&lt;br /&gt;
&amp;quot; use ''ssh -X sstein..@xxx'' to enable a visual client&lt;br /&gt;
* vboxgtk (start visual client)&lt;br /&gt;
&lt;br /&gt;
create and start a VM from comandline:&lt;br /&gt;
* &amp;lt;code&amp;gt;VBoxManage createvm --name ubuntu --register&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;VBoxManage modifyvm ubuntu --ostype ubuntu_64 --cpus 4&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;VBoxManage modifyvm ubuntu --memory 8000&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;VBoxManage startvm ubuntu&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
other:&lt;br /&gt;
* options of ip-addressing/web access: NAT (Network Address Translation) or Bridge (see also this [http://catlingmindswipe.blogspot.com/2012/06/how-to-virtualbox-networking-part-two.html blog entry]) &lt;br /&gt;
* downloading .iso archives/vm from OSGeo (use commands ''curl'' or ''wget -c''), e.g.:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget -c &amp;quot;http://downloads.sourceforge.net/project/osgeo-live/7.0/osgeo-live-7.0.iso?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fosgeo-live%2Ffiles%2F%2F7.0%2Fosgeo-live-7.0.iso%2Fdownload&amp;amp;ts=1384444616&amp;amp;use_mirror=ufpr&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* showing list of running VMs: &amp;lt;code&amp;gt;VBoxManage list runningvms&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
a VM contains 3 files: .img + .vbox (an editable xml) + .vbox-prev&lt;br /&gt;
&lt;br /&gt;
== OpenTripPlanner ==&lt;br /&gt;
* start with &amp;quot;sh start-server.sh&amp;quot;; use &amp;quot;&amp;amp;&amp;quot; at the end to keep the process running&lt;br /&gt;
* make sure that winstone.jar is executable, with chmod 755&lt;br /&gt;
* define in the start-server.sh file also where the webapps folder is located (physical location), so winstone knows that&lt;br /&gt;
* define in the WEB-INF/classes/data-sources.xml file where the graph is stored (physical location) - the files is within /otp/webapps/opentripplanner-api-webapp.war (or: the deflated war folder)&lt;br /&gt;
* kill winstone server (or OTP) process: use &amp;lt;pre&amp;gt;ps aux | grep winstone&amp;lt;/pre&amp;gt; to find the associated PID, and use &amp;lt;code&amp;gt;kill pid&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== unix commands ==&lt;br /&gt;
http://www.computerhope.com/issues/ch000623.htm&lt;br /&gt;
&lt;br /&gt;
connect to server:&lt;br /&gt;
*ssh stefan@136.159.xxx.xxx&lt;br /&gt;
*ssh sstein@146.155.xxx.xxx.&lt;br /&gt;
*pid&lt;br /&gt;
* (sudo) kill pid, e.g. kill 320&lt;br /&gt;
*top or: htop&lt;br /&gt;
*process&lt;br /&gt;
* &amp;quot;sudo shutdown now -h&amp;quot; or &amp;quot;sudo reboot&amp;quot;&lt;br /&gt;
* seeing system info: &amp;lt;code&amp;gt;cat /etc/*-release&amp;lt;/code&amp;gt; + htop (needs to be installed first)&lt;br /&gt;
* '''grep''': search for files in the folder ''/var/.../static/'' that contain the string ''nav-pills'' with: &amp;lt;code&amp;gt;grep -r -i &amp;quot;nav-pills&amp;quot; /var/www/geonode/static/&amp;lt;/code&amp;gt;&lt;br /&gt;
and:&lt;br /&gt;
*commands to display/figure out processes: http://www.howtogeek.com/107217/&lt;br /&gt;
*kill process: http://www.cyberciti.biz/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems/&lt;br /&gt;
*configuration info: http://www.cyberciti.biz/faq/linux-command-to-find-the-system-configuration-and-hardware-information/&lt;br /&gt;
*use of ''grep'': http://www.cyberciti.biz/faq/howto-use-grep-command-in-linux-unix/&lt;br /&gt;
*used ports: &amp;lt;code&amp;gt;netstat -a&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installing lightweight XFCE Desktop GUI on Ubuntu Server ==&lt;br /&gt;
* use &amp;lt;code&amp;gt;sudo apt-get install xubuntu-desktop&amp;lt;/code&amp;gt; to install XFCE client (see [http://help.ubuntu.com/community/ServerGUI here]).&lt;br /&gt;
* this will also install xauth, which allows remote window clients&lt;br /&gt;
* disable start of GUI-based login on system startup with Grub (taken from [http://askubuntu.com/questions/174312/how-can-i-set-my-ubuntu-12-04-lts-to-boot-to-console-without-gui here]):&lt;br /&gt;
** Change (edit) in /etc/default/grub file: &amp;lt;code&amp;gt;GRUB_CMDLINE_LINUX_DEFAULT=&amp;quot;text&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
** then do &amp;lt;code&amp;gt;sudo update-grub&amp;lt;/code&amp;gt;&lt;br /&gt;
* start the desktop GUI session using &amp;lt;code&amp;gt;startx&amp;lt;/code&amp;gt;&lt;br /&gt;
* end the desktop GUI session using &amp;quot;logout&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
== Enabling Remote Desktop for Windows ==&lt;br /&gt;
got the info from [http://www.ubuntututorials.com/remote-desktop-ubuntu-12-04-windows-7/ here]&lt;br /&gt;
* install XRDP: &amp;lt;code&amp;gt;sudo apt-get install xrdp&amp;lt;/code&amp;gt;&lt;br /&gt;
* connect via Windows Remote Desktop using the IP etc. &lt;br /&gt;
* if not needed, switch off the remote desktop server using: &amp;lt;code&amp;gt;sudo service xrdp stop&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== other stuff ==&lt;br /&gt;
* gdalinfo cgydem_fromgrid.tif&lt;br /&gt;
* if computer crashs: boot from a LiveDVD and the run &amp;lt;code&amp;gt;fsck&amp;lt;/code&amp;gt; (see http://www.thegeekstuff.com/2012/08/fsck-command-examples/)&lt;br /&gt;
* '''compress''': &lt;br /&gt;
** files by using: &amp;lt;code&amp;gt;zip newzipfile.zip fileToZip.obj&amp;lt;/code&amp;gt;&lt;br /&gt;
** whole folders by using: &amp;lt;code&amp;gt;tar -cvzf tarfilename.tgz /folder/to/compress&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''uncompress''':&lt;br /&gt;
** zip files, using: &amp;lt;code&amp;gt;unzip filename.zip&amp;lt;/code&amp;gt;, &lt;br /&gt;
** bz2 files with: &amp;lt;code&amp;gt;bunzip2 filename.bz2&amp;lt;/code&amp;gt;&lt;br /&gt;
** tar files: &amp;lt;code&amp;gt;tar -C / -xvzf tarfilename.tgz&amp;lt;/code&amp;gt; . ''Attention !!!'' This will restore the data exactly in the same place on the computer, and overwrite existing folders and files.&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_geonode</id>
		<title>Setting up geonode</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_geonode"/>
				<updated>2014-04-10T17:11:07Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Debugging GeoNode */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return [[Cedeus IDE]] &lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Basic Install for GeoNode v. 2.0==&lt;br /&gt;
&lt;br /&gt;
This is the fast install from [http://geonode.org/ GeoNode.org Quickstart]. Full install instructions, including installation of PostGIS, can be found in [http://docs.geonode.org/en/latest/tutorials/admin/install/complete_install.html this Admin tutorial]&lt;br /&gt;
&lt;br /&gt;
# Install from PPA in Ubuntu 12.04 -&amp;gt; see http://docs.geonode.org/en/latest/intro/install.html&lt;br /&gt;
## if Tomcat7 is not installed, do: &amp;lt;code&amp;gt;sudo apt-get install tomcat7&amp;lt;/code&amp;gt; (but see below in step 1.5) &lt;br /&gt;
## &amp;lt;code&amp;gt;sudo add-apt-repository ppa:geonode/release&amp;lt;/code&amp;gt; . Note, if add-apt does not work (command not found) then do first &amp;lt;code&amp;gt;sudo apt-get update &amp;amp;&amp;amp; sudo apt-get install python-software-properties&amp;lt;/code&amp;gt;&lt;br /&gt;
## &amp;lt;code&amp;gt;sudo apt-get update&amp;lt;/code&amp;gt;&lt;br /&gt;
## check what geonode versions are available use: &amp;lt;code&amp;gt;apt-cache showpkg geonode&amp;lt;/code&amp;gt;. When I looked there was only one version, i.e. 2.0.0+thefinal5 &lt;br /&gt;
## &amp;lt;code&amp;gt;sudo apt-get install geonode&amp;lt;/code&amp;gt; (before I could run this I had do to do &amp;lt;code&amp;gt;sudo apt-get install libtomcat7-java&amp;lt;/code&amp;gt; so that Tomcat6 will be removed and then I could install tomcat7 - which was needed to for GeoServer - used by GeoNode. Another time I installed with Ubuntu Server as default solo OpenSSH and LAMPS (no tomcat no psql), so I could just do &amp;lt;code&amp;gt;sudo apt-get install tomcat7&amp;lt;/code&amp;gt;)&lt;br /&gt;
## Note that the packages are stored in ''/var/cache/apt/archives''. So they can be copied from there to another machine.&lt;br /&gt;
# Set the IP address and create a superuser (also described here: http://docs.geonode.org/en/latest/deploy/production.html)&lt;br /&gt;
#* &amp;lt;code&amp;gt;sudo geonode-updateip 127.0.0.1&amp;lt;/code&amp;gt; (=&amp;gt; Use the real IP if you have one, and for the VM I actually used the one given by ''ifconfig'': 10.0.2.15)&lt;br /&gt;
#* &amp;lt;code&amp;gt;geonode createsuperuser&amp;lt;/code&amp;gt;&lt;br /&gt;
#* set GeoServer ProxyURL as described in the [http://docs.geonode.org/en/latest/deploy/production.html geonode install instructions]. Use user ''admin'' with ''geoserver''.&lt;br /&gt;
#* If starting up Apache results in the following message: &amp;quot;Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName.&amp;quot;, Then do [http://aslamnajeebdeen.com/blog/how-to-fix-apache-could-not-reliably-determine-the-servers-fully-qualified-domain-name-using-127011-for-servername-error-on-ubuntu this]:&lt;br /&gt;
#** &amp;lt;code&amp;gt;sudo vim /etc/apache2/httpd.conf&amp;lt;/code&amp;gt;&lt;br /&gt;
#** add &amp;lt;code&amp;gt;ServerName localhost&amp;lt;/code&amp;gt; to the blank file (the word ServerName needs to stay as such)&lt;br /&gt;
#** &amp;lt;code&amp;gt;sudo service apache2 restart&amp;lt;/code&amp;gt;&lt;br /&gt;
# When using a VM with -nat I got at this point ''&amp;quot;There was a problem loading this page - Please contact your GeoNode administrator (he may have received an email automatically if he configured it properly).&amp;quot;''. I checked what is going on with &amp;lt;code&amp;gt;tail -f /var/log/apache2/error.log&amp;lt;/code&amp;gt;. The log showed me that I should add the bridged IP 146.155.17.113:14080 to allowed hosts in ''/etc/geonode/local_settings.py''. Hence I did changed the corresponding line in ''local_settings.py'' to &amp;lt;code&amp;gt;ALLOWED_HOSTS=[&amp;quot;*&amp;quot;]&amp;lt;/code&amp;gt; &lt;br /&gt;
# Import data&lt;br /&gt;
Read the [http://docs.geonode.org/#for-administrators admin docs] and also OSGeo Live DVD [http://live.osgeo.org/en/quickstart/geonode_quickstart.html Quickstart tutorial]&lt;br /&gt;
&lt;br /&gt;
Note, for assigning geoserver tomcat memory, do it for tomcat7 as described for tomcat6 (see OSGeo VM setup) using setenv.sh but in ''/usr/share/tomcat7/bin'' : &amp;lt;pre&amp;gt;#!/bin/sh &amp;amp;#10;JAVA_OPTS=&amp;quot;-Xms512m -Xmx4g -XX:MaxPermSize=270m -server -Djava.awt.headless=true -Djava.util.prefs.systemRoot=$CATALINA_HOME/content/thredds/javaUtilPrefs&amp;quot; &amp;amp;#10;export JAVA_OPTS&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes on installing PostGIS ==&lt;br /&gt;
&lt;br /&gt;
=== '''Basic PostgreSQL + PostGIS install''' ===&lt;br /&gt;
First check if PostgreSQL exists and what version exists. Use &amp;lt;code&amp;gt;which psql&amp;lt;/code&amp;gt; which should return the path. Then with the path I did &amp;lt;code&amp;gt;/usr/bin/psql --version&lt;br /&gt;
&amp;lt;/code&amp;gt; to retrieve the version installed.&lt;br /&gt;
As it was not installed on my brand new PostGIS VMs I installed Postgres 9.3 with PostGIS 2.1 as described here:&lt;br /&gt;
* http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS21UbuntuPGSQL93Apt :&lt;br /&gt;
** add the repository&lt;br /&gt;
**# &amp;lt;code&amp;gt;sudo sh -c 'echo &amp;quot;deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main&amp;quot; &amp;gt;&amp;gt; /etc/apt/sources.list'&amp;lt;/code&amp;gt;&lt;br /&gt;
**# &amp;lt;code&amp;gt;wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add - &amp;lt;/code&amp;gt;&lt;br /&gt;
**# &amp;lt;code&amp;gt;sudo apt-get update&amp;lt;/code&amp;gt;&lt;br /&gt;
** install: &amp;lt;code&amp;gt;sudo apt-get install Postgresql-9.3-postgis pgadmin3 postgresql-contrib&amp;lt;/code&amp;gt;&lt;br /&gt;
** enable admin pack:&lt;br /&gt;
**#  &amp;lt;code&amp;gt;sudo -u postgres psql&amp;lt;/code&amp;gt;&lt;br /&gt;
**#  &amp;lt;code&amp;gt;CREATE EXTENSION adminpack;&amp;lt;/code&amp;gt;&lt;br /&gt;
**#  leave psql &amp;lt;code&amp;gt;\q&amp;lt;/code&amp;gt;&lt;br /&gt;
** create the users&lt;br /&gt;
**#  &amp;lt;code&amp;gt;sudo su - postgres&amp;lt;/code&amp;gt; (logs in as postgres user)&lt;br /&gt;
**#  &amp;lt;code&amp;gt;createuser -d -E -i -l -P -r -s yourUserName&amp;lt;/code&amp;gt; =&amp;gt; create user for own login, and a &amp;quot;geonode&amp;quot; user&lt;br /&gt;
**# logout as postgres user &amp;lt;code&amp;gt;exit&amp;lt;/code&amp;gt;&lt;br /&gt;
** adjust remote connection permission in ''postgresql.conf'' and ''pg_hba.conf'', for details see below (Note, the VM setting also needs to allow connections, i.e. &amp;quot;nat&amp;quot; rules)&lt;br /&gt;
** enable the extensions &amp;quot;postgis&amp;quot; and &amp;quot;postgis_topology&amp;quot; for the particularDB (i.e. geonodegisdb93 &amp;gt; via PgAdmin: Expand the database tree in PGAdmin, and reveal the extensions node &amp;gt; Right-click the extensions node, and click &amp;lt;code&amp;gt;new extension&amp;lt;/code&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
However, one can also install from source: see: http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS20Ubuntu1204src&lt;br /&gt;
&lt;br /&gt;
=== '''PostGIS install comments with respect to my first GeoNode install''' ===&lt;br /&gt;
Here now some more install logs/info with respect to GeoNode:&lt;br /&gt;
* So, Postgres 9.1 was installed, but when I executed &amp;quot;psql&amp;quot; I got this: &amp;lt;code&amp;gt;psql: FATAL:  role &amp;quot;ssteinig&amp;quot; does not exist&amp;lt;/code&amp;gt;&lt;br /&gt;
* Hence, I first had to creating my account as a user using &amp;lt;code&amp;gt;sudo -u postgres createuser -s $USER&amp;lt;/code&amp;gt; (got this from [http://stackoverflow.com/questions/2172569/how-do-i-login-and-authenticate-to-postgresql-after-a-fresh-install here]). &lt;br /&gt;
* Now I could create a db using &amp;lt;code&amp;gt;createdb mygeodb&amp;lt;/code&amp;gt;, and connect via commandline with &amp;lt;code&amp;gt;psql -d mygeodb&amp;lt;/code&amp;gt;&lt;br /&gt;
* Finally I spatially enabled the db with &amp;lt;code&amp;gt;CREATE EXTENSION postgis;&amp;lt;/code&amp;gt;  and &amp;lt;code&amp;gt;CREATE EXTENSION postgis_topology;&amp;lt;/code&amp;gt;&lt;br /&gt;
** However, for &amp;lt;code&amp;gt;CREATE EXTENSION postgis;&amp;lt;/code&amp;gt; I got the following error: ''&amp;quot;ERROR: could not open extension control file &amp;quot;/usr/share/postgresql/9.1/extension/postgis.control&amp;quot;: No such file or directory&amp;quot;''.&lt;br /&gt;
** This '''may be''' solved using the install instructions from here: http://wiki.postgresql.org/wiki/Apt&lt;br /&gt;
** However, I followed now what is written here: http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS21UbuntuPGSQL93Apt&lt;br /&gt;
** the stuff described below did not work either, I think:&lt;br /&gt;
*** echo &amp;quot;deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main&amp;quot; | sudo tee /etc/apt/sources.list.d/postgis.list&lt;br /&gt;
*** sudo apt-get update&lt;br /&gt;
*** sudo apt-get install  postgresql-9.3 pgadmin3&lt;br /&gt;
*** and then...., I got again an error: ''update-alternatives: error: alternative pg_basebackup.1.gz can't be slave of psql.1.gz: it is a slave of postmaster.1.gz'', which send me to this page: http://www.postgresql.org/message-id/20130508192711.GA9243@msgid.df7cb.de&lt;br /&gt;
* then add a Postgres/postgis port forwarding rule for port 5432&lt;br /&gt;
&lt;br /&gt;
===  ''' GeoNode with external PostgreSQL DB''' ===&lt;br /&gt;
* modify settings in &amp;quot;''/etc/geonode/local_settings.py''&amp;quot; (before first use of db)&lt;br /&gt;
* the changes may require to run &amp;lt;code&amp;gt;geonode syncdb --noinput --all &amp;lt;/code&amp;gt; (and perhaps a tomcat7/apache2 restart?) to sync&lt;br /&gt;
* if the db contains data/layers already (e.g. geonodegisb93 &amp;gt; schemata &amp;gt; public &amp;gt; tables), and those should be visible again from GeoNode, then &lt;br /&gt;
** each table/layer needs to be published (re-loaded) in GeoServer and &lt;br /&gt;
** &amp;lt;code&amp;gt;geonode updatelayers&amp;lt;/code&amp;gt; command needs to be run.&lt;br /&gt;
&lt;br /&gt;
===  '''Accessing GeoNode - PostgreSQL''' ===&lt;br /&gt;
* create user: &amp;lt;code&amp;gt;sudo su postgres&amp;lt;/code&amp;gt;&lt;br /&gt;
* and: &amp;lt;code&amp;gt;createuser -d -E -i -l -P -r -s sstein&amp;lt;/code&amp;gt;  or all in one: &amp;lt;code&amp;gt;sudo -u postgres createuser -P ssteinig&amp;lt;/code&amp;gt;&lt;br /&gt;
* to access via terminal use &amp;lt;code&amp;gt;psql -U sstein -d geonode -h localhost&amp;lt;/code&amp;gt;&lt;br /&gt;
* to access via pgAdmin:&lt;br /&gt;
** edit the file ''/etc/postgresql/9.1/main/postgresql.conf'' to allow access from other hosts, and ''/etc/postgresql/9.1/main/pg_hba.conf'' to add the users that can login, see http://www.glom.org/wiki/index.php?title=Initial_Postgres_Configuration&lt;br /&gt;
** restart postgres as follows: &amp;lt;code&amp;gt;sudo /etc/init.d/postgresql restart&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===  '''Some PostgreSQL commands''' ===&lt;br /&gt;
* quit psql: &amp;lt;code&amp;gt;\q&amp;lt;/code&amp;gt;&lt;br /&gt;
* connecting: psql -U geonode93 -d geonodegisdb93 -h localhost -p 5432&lt;br /&gt;
* listing of dbs: &amp;lt;code&amp;gt;psql -l -p 5432&amp;lt;code&amp;gt; or &amp;lt;code&amp;gt;\l&amp;lt;/code&amp;gt;(including spec of port, as the PostGIS VM has postgres 9.1 (:9434) and 9.3 (:9432) installed)&lt;br /&gt;
** or alternatively: &amp;lt;code&amp;gt;SELECT datname FROM pg_database WHERE datistemplate = false; &amp;lt;/code&amp;gt;&lt;br /&gt;
* adding / removing users &amp;lt;code&amp;gt;createuser&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;dropuser&amp;lt;/code&amp;gt; e.g.: &amp;lt;code&amp;gt;dropuser geonode -p 5434&amp;lt;/code&amp;gt; but needs to be done as &amp;quot;sudo su - postgres&amp;quot;&lt;br /&gt;
* creating /removing dbs  &amp;lt;code&amp;gt;createdb&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;dropdb&amp;lt;/code&amp;gt; e.g.: &amp;lt;code&amp;gt;createdb geonodegisdb93&amp;lt;/code&amp;gt;&lt;br /&gt;
* listing of tables: &amp;lt;code&amp;gt;\dt&amp;lt;/code&amp;gt; : but this will only list the table from the database currently connected to&lt;br /&gt;
** to see at least something (if nothing added yet) it can also be done using: &amp;lt;code&amp;gt;SELECT table_schema,table_name FROM information_schema.tables ORDER BY table_schema,table_name; &amp;lt;/code&amp;gt;&lt;br /&gt;
* showing a tables content, e.g. all layers: &amp;lt;code&amp;gt;SELECT * FROM layers_layer;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing GeoExplorer with remote WMS clients ==&lt;br /&gt;
&lt;br /&gt;
* a list of running GeoNode instances can be found in this email thread: http://groups.google.com/d/topic/geonode-users/icuYPeL3rIg/discussion&lt;br /&gt;
* a server to test is http://demo.geonode.org/geoserver/wms , or the server from the World Food Program: http://geonode.wfp.org/geoserver/wms (= http://74.3.255.211/geoserver/wms)&lt;br /&gt;
* if errors occur to check what is going on run: &amp;lt;code&amp;gt;tail -f /var/log/apache2/error.log&amp;lt;/code&amp;gt;&lt;br /&gt;
* if a 403 error occurs, then the list of allowed hosts needs to be modified in the /etc/geonode/local_settings.py file (perhaps a &amp;quot;sudo service apache2 restart&amp;quot; is needed)&lt;br /&gt;
* if a 500 error occurs, then it could be that the mapping domain =&amp;gt; IP does not work and the DNS has to be added to the computer settings (i.e. adding the DNS to ''/etc/resolv.conf'' - but see [http://askubuntu.com/questions/201603/how-do-i-edit-my-resolv-conf-file ask-ubuntu] : i edited now ''/etc/network/interface'' and ifdown/ifup eth0 =&amp;gt; but this made me loosing the network connection !!! ...and I had to use VNC to connect to the VM again and do &amp;lt;code&amp;gt;sudo ifup eth0&amp;lt;/code&amp;gt; in a terminal)&lt;br /&gt;
&lt;br /&gt;
==  '''Changing the GeoNode logo (GeoNode 2.0)''' ==&lt;br /&gt;
The original documention on how to do this is here: http://docs.geonode.org/en/latest/deploy/customize.html. However, some things have changed for GeoNode v 2.0. So we have to do the following:&lt;br /&gt;
* The static web documents are in ''/var/www/geonode/static/geonode''. And CSS and images are in the subfolders /css and /img.&lt;br /&gt;
* Create a new logo file. The original logo file is called logo.png and has a dimension of 127x29 px.&lt;br /&gt;
* Create a subfolder in ''/etc/geonode/media/'' =&amp;gt; so we have now the folder ''/etc/geonode/media/geonode/img/''&lt;br /&gt;
* Make this ''img'' subfolder accessible for ftp (e.g. using chmod 777)&lt;br /&gt;
* copy the new logo into the ''etc/.../img'' subfolder&lt;br /&gt;
* run &amp;lt;code&amp;gt;sudo geonode collectstatic -v0&amp;lt;/code&amp;gt;&lt;br /&gt;
* this should copy the new logo image into ''/var/geonode/static/geonode/img/''.&lt;br /&gt;
&lt;br /&gt;
==  '''Changing the GeoNode Theme (GeoNode 2.0)''' ==&lt;br /&gt;
&lt;br /&gt;
=== '''Change of GeoNode web page colors''' ===&lt;br /&gt;
See comments above... for simple change of the CSS. I actually took the bootstrap? created base.css (see also base.less) and changed the color/backgroundcolor for web page elements (see personal notes in my log-book). &lt;br /&gt;
&lt;br /&gt;
Apart from that: Everything else is more complicated and requires lots of others software (bootstrap, etc):&lt;br /&gt;
&lt;br /&gt;
* a theme is available here: http://github.com/ingenieroariel/geonode-project&lt;br /&gt;
* a recent Oct. 2013 email thread: http://groups.google.com/d/msg/geonode-users/pI3-7QiFzs0/3nrvyjAX2rYJ&lt;br /&gt;
*# install geonode with apt-get&lt;br /&gt;
*# install git-core and clone https://github.com/GeoNode/geonode-project.git&lt;br /&gt;
*# Install your custom project in the virtualenv, you can do this via pip install -e . or python setup.py develop&lt;br /&gt;
*# Modify geonode's /var/www/geonode/wsgi/geonode.wsgi to import yourproject.settings instead of geonode.settings.&lt;br /&gt;
*# Add a symlink to /etc/geonode/local_settings.py next to yourproject.settings so it picks up all the information about database and template locations in production. (run geonode collectstatic)&lt;br /&gt;
*# Restart apache.&lt;br /&gt;
&lt;br /&gt;
=== '''Translation + Change of GeoNode Welcome text''' ===&lt;br /&gt;
GeoNode is a Django Project - well, according to Daniel they put it into package for distribution (see [http://geonode.readthedocs.org/en/latest/tutorials/devel/projects/projectsintro.html?highlight=django here]). So for that reason the GeoNode Django &amp;quot;project&amp;quot; can be found under the following path   &amp;lt;code&amp;gt;/usr/local/lib/python2.7/dist-packages/geonode/locale&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
To edit the text of the GeoNode welcome page, one can edit the English, Spanish, etc, locales stored under ''/usr/local/lib/python2.7/dist-packages/geonode/locale''. However, I need to check if they should get replaced when an upgrade is performed. The translation is in .po files. Information on how to compile these files can be found here: http://docs.djangoproject.com/en/1.6/topics/i18n/translation/#how-to-create-language-files&lt;br /&gt;
&lt;br /&gt;
However, what did I do to change the '''german''' translation for the front page.&lt;br /&gt;
* copy (backup first) and open /locale/'''de'''/LC_MESSAGES/django.po&lt;br /&gt;
* check out in the file /templates/index.html what strings are used&lt;br /&gt;
* modify the text for the corresponding language keys in django.po&lt;br /&gt;
* save and cope the file to the server (ensure that you have a backup of the original!!!  and use ''chmod'' to enable copying)&lt;br /&gt;
* compile the changed language file using: &amp;lt;code&amp;gt;django-admin.py compilemessages -l de&amp;lt;/code&amp;gt; or: &amp;lt;code&amp;gt;sudo geonode compilemessages&amp;lt;/code&amp;gt;&lt;br /&gt;
* perhaps do a ''sudo service apache2 restart''?&lt;br /&gt;
* now check if the '''german''' text changed.&lt;br /&gt;
&lt;br /&gt;
Note, for a new language file, e.g. Chile Spanish one would create the template po files using: &amp;lt;code&amp;gt;django-admin.py makemessages -l '''es_cl'''&amp;lt;/code&amp;gt; or: &amp;lt;code&amp;gt;sudo geonode  makemessages -l es_cl&amp;lt;/code&amp;gt; first. (I think so ;)&lt;br /&gt;
&lt;br /&gt;
== Adding own Tiles to GeoExplorer ==&lt;br /&gt;
Own background tiles can be created with TileMill and then distributed with [http://github.com/mapbox/tilestream TileStream]. Daniel has done that on Lautaro, and the tiles can be access from here: ''http://lautaro.ing.puc.cl/map/v2/Fondef/{z}/{x}/{y}.png'' . The max zoom level seems to be &amp;quot;16&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
How to enable showing of my own tiles served by TileStream can be found in the OpenQuake bugfix for &amp;quot;hack the MapBoxSource gxp plugin to allow for our tilestream data&amp;quot;. The Git pull request can be found [http://github.com/gem/oq-platform/pull/30/files here]. According to this, the following changes are necessary:&lt;br /&gt;
# check the js file by Ben Wyss [http://github.com/gem/oq-platform/blob/tilestream-dynamic-sdk-plugin/oq-ui-client2/src/gxp/script/plugins/TileStreamSource.js#L124 TileStreamSource.js] which is based on MapBoxSource.js plugin. The MapBoxSource.js is part of /var/www/geonode/static/geoexplorer/script/GeoExplorer.js in minified version, but can be seen raw in GeoExplorer-debug.js. Insert [http://github.com/gem/oq-platform/blob/tilestream-dynamic-sdk-plugin/oq-ui-client2/src/gxp/script/plugins/TileStreamSource.js#L124 this code] into GeoExplorer.js and replace with the IP of my private TileStream server. &lt;br /&gt;
# modifying ''local_settings.py'' by adding ''gxp_tilestreamsource'' equally as ''gxp_mapboxsource'' is added (+ restart Apache2 service) &lt;br /&gt;
&lt;br /&gt;
Note: When I activate in ''local_settings.py'' a TileStream server that is not accessible (i.e. timeout because my personal TileStream server is behind the PUC - San Joaquin wall), then the GeoExplorer.js does not get loaded completely (I guess) and I can't compose maps. In that case the entry in ''local_settings.py'' has to be deactivated/commented out to be able to compose maps in GeoExplorer again. For that reason, at the moment I leave access to my TileStream VM on Lautaro commented out, but for demonstration purposes I added the OpenQuake.org TileStream source that has some nice maps. &lt;br /&gt;
&lt;br /&gt;
PS: some more info is perhaps found in the tutorial: http://docs.geonode.org/en/latest/reference/developers/settings.html&lt;br /&gt;
&lt;br /&gt;
=== '''Working fill-in code for OpenQuake tile layers for GeoExplorer.js''' ===&lt;br /&gt;
&lt;br /&gt;
* The OpenQuake TileStream server can be accessed via: http://tilestream.openquake.org (this link allows to browse the tile sets as well using Leaflet)&lt;br /&gt;
* interestingly the following code executes first a request for a tile server description (a json document) to get info about all existing tile sets. This json metadata file is obtained from: http://tilestream.openquake.org/api/v1/Tileset .Lautaro doesn't seem to have installed ''api/v1/Tileset'' (at least I could not found it in ''/srv/www/''.&lt;br /&gt;
* Tiles from OpenQuake server are then accessed using this scheme: ''http://tilestream.openquake.org/v2/&amp;quot; + tileStreamLayerName + &amp;quot;/${z}/${x}/${y}.png''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
   var tilestreamPlugin = {&lt;br /&gt;
      ptype: &amp;quot;gxp_tilestreamsource&amp;quot;,&lt;br /&gt;
      title: &amp;quot;TileStream Layers&amp;quot;,&lt;br /&gt;
   &lt;br /&gt;
    /** api: method[createStore]&lt;br /&gt;
     *&lt;br /&gt;
     *  Creates a store of layer records.  Fires &amp;quot;ready&amp;quot; when store is loaded.&lt;br /&gt;
     */&lt;br /&gt;
    createStore: function() {  &lt;br /&gt;
  &lt;br /&gt;
        var options = {&lt;br /&gt;
            sphericalMercator: true,&lt;br /&gt;
            wrapDateLine: true,&lt;br /&gt;
            //numZoomLevels: 7&lt;br /&gt;
            numZoomLevels: 16&lt;br /&gt;
        };  &lt;br /&gt;
        var layers = new Array();&lt;br /&gt;
        $.getJSON(&lt;br /&gt;
        	'http://tilestream.openquake.org/api/v1/Tileset',&lt;br /&gt;
        	function(json) {&lt;br /&gt;
            	   for (var i=0; i &amp;lt; json.length; i++) {&lt;br /&gt;
                	// Get the tile name and zoom level from the tilestream API&lt;br /&gt;
        		var tileStreamLayerName = json[i].id;&lt;br /&gt;
                	var tileMaxZoom = json[i].maxzoom;    &lt;br /&gt;
                	// Build the list of layers&lt;br /&gt;
                        var newLayer = new OpenLayers.Layer.XYZ(&lt;br /&gt;
                                        tileStreamLayerName,&lt;br /&gt;
                    	                [&amp;quot;http://tilestream.openquake.org/v2/&amp;quot; + tileStreamLayerName + &amp;quot;/${z}/${x}/${y}.png&amp;quot;],  &lt;br /&gt;
                    	                OpenLayers.Util.applyDefaults(&lt;br /&gt;
                                              {&lt;br /&gt;
                        	                   layername: tileStreamLayerName,&lt;br /&gt;
                        	                   numZoomLevels: tileMaxZoom&lt;br /&gt;
                    	                      }, &lt;br /&gt;
                                             options)&lt;br /&gt;
                		        );&lt;br /&gt;
                                       layers.push(newLayer);&lt;br /&gt;
            	   }&lt;br /&gt;
            	   newLayerStore(layers);&lt;br /&gt;
        	}&lt;br /&gt;
        ); &lt;br /&gt;
        var plugin = this;&lt;br /&gt;
        var newLayerStore = function(layers) {&lt;br /&gt;
            plugin.store = new GeoExt.data.LayerStore({&lt;br /&gt;
                layers: layers,&lt;br /&gt;
            	fields: [&lt;br /&gt;
                    {name: &amp;quot;source&amp;quot;, type: &amp;quot;string&amp;quot;},&lt;br /&gt;
                    {name: &amp;quot;name&amp;quot;, type: &amp;quot;string&amp;quot;, mapping: &amp;quot;layername&amp;quot;},&lt;br /&gt;
                    //{name: &amp;quot;abstract&amp;quot;, type: &amp;quot;string&amp;quot;},&lt;br /&gt;
                    {name: &amp;quot;group&amp;quot;, type: &amp;quot;string&amp;quot;},&lt;br /&gt;
                    {name: &amp;quot;fixed&amp;quot;, type: &amp;quot;boolean&amp;quot;},&lt;br /&gt;
                    {name: &amp;quot;selected&amp;quot;, type: &amp;quot;boolean&amp;quot;}&lt;br /&gt;
                ]&lt;br /&gt;
            });&lt;br /&gt;
            plugin.fireEvent(&amp;quot;ready&amp;quot;, this);&lt;br /&gt;
        };&lt;br /&gt;
    },&lt;br /&gt;
    /** api: method[createLayerRecord]&lt;br /&gt;
     *  :arg config:  ``Object``  The application config for this layer.&lt;br /&gt;
     *  :returns: ``GeoExt.data.LayerRecord``&lt;br /&gt;
     *&lt;br /&gt;
     *  Create a layer record given the config.&lt;br /&gt;
     */&lt;br /&gt;
    createLayerRecord: function(config) {&lt;br /&gt;
        var record;&lt;br /&gt;
        var index = this.store.findExact(&amp;quot;name&amp;quot;, config.name);&lt;br /&gt;
        if (index &amp;gt; -1) {&lt;br /&gt;
            record = this.store.getAt(index).copy(Ext.data.Record.id({}));&lt;br /&gt;
            var layer = record.getLayer().clone();&lt;br /&gt;
            // set layer title from config&lt;br /&gt;
            if (config.title) {&lt;br /&gt;
                /**&lt;br /&gt;
                 * Because the layer title data is duplicated, we have&lt;br /&gt;
                 * to set it in both places.  After records have been&lt;br /&gt;
                 * added to the store, the store handles this&lt;br /&gt;
                 * synchronization.&lt;br /&gt;
                 */&lt;br /&gt;
                layer.setName(config.title);&lt;br /&gt;
                record.set(&amp;quot;title&amp;quot;, config.title);&lt;br /&gt;
            }&lt;br /&gt;
            // set visibility from config&lt;br /&gt;
            if (&amp;quot;visibility&amp;quot; in config) {&lt;br /&gt;
                layer.visibility = config.visibility;&lt;br /&gt;
            }&lt;br /&gt;
            record.set(&amp;quot;selected&amp;quot;, config.selected || false);&lt;br /&gt;
            record.set(&amp;quot;source&amp;quot;, config.source);&lt;br /&gt;
            record.set(&amp;quot;name&amp;quot;, config.name);&lt;br /&gt;
            if (&amp;quot;group&amp;quot; in config) {&lt;br /&gt;
                record.set(&amp;quot;group&amp;quot;, config.group);&lt;br /&gt;
            }&lt;br /&gt;
            record.data.layer = layer;&lt;br /&gt;
            record.commit();&lt;br /&gt;
        }&lt;br /&gt;
        return record;&lt;br /&gt;
    }&lt;br /&gt;
  };&lt;br /&gt;
  gxp.plugins.TileStreamSource = Ext.extend(gxp.plugins.LayerSource, tilestreamPlugin);&lt;br /&gt;
  Ext.preg(gxp.plugins.TileStreamSource.prototype.ptype, gxp.plugins.TileStreamSource);&lt;br /&gt;
  Ext.ns(&amp;quot;gxp.plugins&amp;quot;);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== '''Simple working fill-in code for Lautaro - Fondef tile layers for GeoExplorer.js''' ===&lt;br /&gt;
&lt;br /&gt;
Link to zipped version of the [http://sourceforge.net/projects/mentaer.u/files/otherfiles/GeoExplorer.zip/download GeoExplorer.js minified] version.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt; &lt;br /&gt;
 var tilestreamPlugin = {&lt;br /&gt;
    &lt;br /&gt;
    /** api: ptype = gxp_mapboxsource */&lt;br /&gt;
    ptype: &amp;quot;gxp_tilestreamsource&amp;quot;,&lt;br /&gt;
    &lt;br /&gt;
    /** api: config[title]&lt;br /&gt;
     *  ``String``&lt;br /&gt;
     *  A descriptive title for this layer source (i18n).&lt;br /&gt;
     */&lt;br /&gt;
    title: &amp;quot;CEDEUS TileStream Layers&amp;quot;,&lt;br /&gt;
    &lt;br /&gt;
    /** api: method[createStore]&lt;br /&gt;
     *  Creates a store of layer records.  Fires &amp;quot;ready&amp;quot; when store is loaded.&lt;br /&gt;
     *  sstein: in my case it creates only one layer &amp;quot;Fondef&amp;quot; that is part of the store&lt;br /&gt;
     *  I removed the original loop to gather layers from /api/v1/Tileset json&lt;br /&gt;
     */&lt;br /&gt;
    createStore: function() {&lt;br /&gt;
        &lt;br /&gt;
        var options = {&lt;br /&gt;
            sphericalMercator: true,&lt;br /&gt;
            wrapDateLine: true,&lt;br /&gt;
            //numZoomLevels: 7&lt;br /&gt;
            numZoomLevels: 16&lt;br /&gt;
        };  &lt;br /&gt;
        &lt;br /&gt;
        var layers = new Array();      &lt;br /&gt;
        var tileStreamLayerName = &amp;quot;Fondef&amp;quot;;&lt;br /&gt;
        var tileMaxZoom = 17;&lt;br /&gt;
  &lt;br /&gt;
        var newLayer = new OpenLayers.Layer.XYZ( &lt;br /&gt;
                                tileStreamLayerName,&lt;br /&gt;
                    		[&amp;quot;http://lautaro.ing.puc.cl/map/v2/&amp;quot; + tileStreamLayerName + &amp;quot;/${z}/${x}/${y}.png&amp;quot;],  &lt;br /&gt;
                    		OpenLayers.Util.applyDefaults(&lt;br /&gt;
                    			{&lt;br /&gt;
                        			layername: tileStreamLayerName,&lt;br /&gt;
                        			numZoomLevels: tileMaxZoom&lt;br /&gt;
                    		        }, &lt;br /&gt;
                    			options)&lt;br /&gt;
                		);&lt;br /&gt;
        layers.push(newLayer);  &lt;br /&gt;
 		 		&lt;br /&gt;
        var plugin = this;&lt;br /&gt;
        var newLayerStore = function(layers) {&lt;br /&gt;
            plugin.store = new GeoExt.data.LayerStore({&lt;br /&gt;
                layers: layers,&lt;br /&gt;
            	fields: [&lt;br /&gt;
                    {name: &amp;quot;source&amp;quot;, type: &amp;quot;string&amp;quot;},&lt;br /&gt;
                    {name: &amp;quot;name&amp;quot;, type: &amp;quot;string&amp;quot;, mapping: &amp;quot;layername&amp;quot;},&lt;br /&gt;
                    //{name: &amp;quot;abstract&amp;quot;, type: &amp;quot;string&amp;quot;},&lt;br /&gt;
                    {name: &amp;quot;group&amp;quot;, type: &amp;quot;string&amp;quot;},&lt;br /&gt;
                    {name: &amp;quot;fixed&amp;quot;, type: &amp;quot;boolean&amp;quot;},&lt;br /&gt;
                    {name: &amp;quot;selected&amp;quot;, type: &amp;quot;boolean&amp;quot;}&lt;br /&gt;
                ]&lt;br /&gt;
            });&lt;br /&gt;
            plugin.fireEvent(&amp;quot;ready&amp;quot;, this);&lt;br /&gt;
        };&lt;br /&gt;
         newLayerStore(layers);&lt;br /&gt;
    },&lt;br /&gt;
    &lt;br /&gt;
    /** api: method[createLayerRecord]&lt;br /&gt;
     *  :arg config:  ``Object``  The application config for this layer.&lt;br /&gt;
     *  :returns: ``GeoExt.data.LayerRecord``&lt;br /&gt;
     *&lt;br /&gt;
     *  Create a layer record given the config.&lt;br /&gt;
     */&lt;br /&gt;
    createLayerRecord: function(config) {&lt;br /&gt;
        var record;&lt;br /&gt;
        var index = this.store.findExact(&amp;quot;name&amp;quot;, config.name);&lt;br /&gt;
        if (index &amp;gt; -1) {&lt;br /&gt;
 &lt;br /&gt;
            record = this.store.getAt(index).copy(Ext.data.Record.id({}));&lt;br /&gt;
            var layer = record.getLayer().clone();&lt;br /&gt;
 &lt;br /&gt;
            // set layer title from config&lt;br /&gt;
            if (config.title) {&lt;br /&gt;
                /**&lt;br /&gt;
                 * Because the layer title data is duplicated, we have&lt;br /&gt;
                 * to set it in both places.  After records have been&lt;br /&gt;
                 * added to the store, the store handles this&lt;br /&gt;
                 * synchronization.&lt;br /&gt;
                 */&lt;br /&gt;
                layer.setName(config.title);&lt;br /&gt;
                record.set(&amp;quot;title&amp;quot;, config.title);&lt;br /&gt;
            }&lt;br /&gt;
 &lt;br /&gt;
            // set visibility from config&lt;br /&gt;
            if (&amp;quot;visibility&amp;quot; in config) {&lt;br /&gt;
                layer.visibility = config.visibility;&lt;br /&gt;
            }&lt;br /&gt;
            &lt;br /&gt;
            record.set(&amp;quot;selected&amp;quot;, config.selected || false);&lt;br /&gt;
            record.set(&amp;quot;source&amp;quot;, config.source);&lt;br /&gt;
            record.set(&amp;quot;name&amp;quot;, config.name);&lt;br /&gt;
            if (&amp;quot;group&amp;quot; in config) {&lt;br /&gt;
                record.set(&amp;quot;group&amp;quot;, config.group);&lt;br /&gt;
            }&lt;br /&gt;
            record.data.layer = layer;&lt;br /&gt;
            record.commit();&lt;br /&gt;
        }&lt;br /&gt;
        return record;&lt;br /&gt;
    }&lt;br /&gt;
 };&lt;br /&gt;
  &lt;br /&gt;
 gxp.plugins.TileStreamSource = Ext.extend(gxp.plugins.LayerSource, tilestreamPlugin);&lt;br /&gt;
 Ext.preg(gxp.plugins.TileStreamSource.prototype.ptype, gxp.plugins.TileStreamSource);&lt;br /&gt;
 Ext.ns(&amp;quot;gxp.plugins&amp;quot;);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''GeoNode Settings''' ==&lt;br /&gt;
&lt;br /&gt;
ToDo: check for settings that still need to be adjusted for a running system: &amp;lt;br/&amp;gt;&lt;br /&gt;
see http://docs.geonode.org/en/latest/reference/developers/settings.html&lt;br /&gt;
&lt;br /&gt;
== '''Debugging GeoNode''' ==&lt;br /&gt;
(i) Case: dataset is not shown in GeoExplorer. Options to check what is going on:&lt;br /&gt;
* GeoExplorer could not be loaded correctly (due to my mods + changes in local_settings.py). In this case, there should be an error message in the Firefox Web-Dev console.&lt;br /&gt;
** e.g. in one case I did &amp;lt;code&amp;gt;apt-get upgrade&amp;lt;/code&amp;gt; and GeoNode was upgraded. With that a new GeoExplorer.js file was installed and my local_settings.py advised to load the OpenQuake tileset plugin, which did not exist =&amp;gt; solution, replace new with old/modified GeoExplore.js file.&lt;br /&gt;
* No connection to DB? &lt;br /&gt;
** the error should be visible with &amp;lt;code&amp;gt;tail -f /var/lib/tomcat7/logs/catalina.out&amp;lt;/code&amp;gt; =&amp;gt; check also what happens when doing a restart of Tomcat7. &lt;br /&gt;
** connect with PgAdmin to see if the DB is accessible&lt;br /&gt;
* Something with GeoServer? as above check also catalina.out logs. Switch to the GeoServer admin interface in GeoNode. Check if datasets/layers are loaded. Check if they are displayed in the Layer Preview &amp;gt; OpenLayers.&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_geonode</id>
		<title>Setting up geonode</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_geonode"/>
				<updated>2014-04-10T17:07:38Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* GeoNode Settings */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return [[Cedeus IDE]] &lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Basic Install for GeoNode v. 2.0==&lt;br /&gt;
&lt;br /&gt;
This is the fast install from [http://geonode.org/ GeoNode.org Quickstart]. Full install instructions, including installation of PostGIS, can be found in [http://docs.geonode.org/en/latest/tutorials/admin/install/complete_install.html this Admin tutorial]&lt;br /&gt;
&lt;br /&gt;
# Install from PPA in Ubuntu 12.04 -&amp;gt; see http://docs.geonode.org/en/latest/intro/install.html&lt;br /&gt;
## if Tomcat7 is not installed, do: &amp;lt;code&amp;gt;sudo apt-get install tomcat7&amp;lt;/code&amp;gt; (but see below in step 1.5) &lt;br /&gt;
## &amp;lt;code&amp;gt;sudo add-apt-repository ppa:geonode/release&amp;lt;/code&amp;gt; . Note, if add-apt does not work (command not found) then do first &amp;lt;code&amp;gt;sudo apt-get update &amp;amp;&amp;amp; sudo apt-get install python-software-properties&amp;lt;/code&amp;gt;&lt;br /&gt;
## &amp;lt;code&amp;gt;sudo apt-get update&amp;lt;/code&amp;gt;&lt;br /&gt;
## check what geonode versions are available use: &amp;lt;code&amp;gt;apt-cache showpkg geonode&amp;lt;/code&amp;gt;. When I looked there was only one version, i.e. 2.0.0+thefinal5 &lt;br /&gt;
## &amp;lt;code&amp;gt;sudo apt-get install geonode&amp;lt;/code&amp;gt; (before I could run this I had do to do &amp;lt;code&amp;gt;sudo apt-get install libtomcat7-java&amp;lt;/code&amp;gt; so that Tomcat6 will be removed and then I could install tomcat7 - which was needed to for GeoServer - used by GeoNode. Another time I installed with Ubuntu Server as default solo OpenSSH and LAMPS (no tomcat no psql), so I could just do &amp;lt;code&amp;gt;sudo apt-get install tomcat7&amp;lt;/code&amp;gt;)&lt;br /&gt;
## Note that the packages are stored in ''/var/cache/apt/archives''. So they can be copied from there to another machine.&lt;br /&gt;
# Set the IP address and create a superuser (also described here: http://docs.geonode.org/en/latest/deploy/production.html)&lt;br /&gt;
#* &amp;lt;code&amp;gt;sudo geonode-updateip 127.0.0.1&amp;lt;/code&amp;gt; (=&amp;gt; Use the real IP if you have one, and for the VM I actually used the one given by ''ifconfig'': 10.0.2.15)&lt;br /&gt;
#* &amp;lt;code&amp;gt;geonode createsuperuser&amp;lt;/code&amp;gt;&lt;br /&gt;
#* set GeoServer ProxyURL as described in the [http://docs.geonode.org/en/latest/deploy/production.html geonode install instructions]. Use user ''admin'' with ''geoserver''.&lt;br /&gt;
#* If starting up Apache results in the following message: &amp;quot;Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName.&amp;quot;, Then do [http://aslamnajeebdeen.com/blog/how-to-fix-apache-could-not-reliably-determine-the-servers-fully-qualified-domain-name-using-127011-for-servername-error-on-ubuntu this]:&lt;br /&gt;
#** &amp;lt;code&amp;gt;sudo vim /etc/apache2/httpd.conf&amp;lt;/code&amp;gt;&lt;br /&gt;
#** add &amp;lt;code&amp;gt;ServerName localhost&amp;lt;/code&amp;gt; to the blank file (the word ServerName needs to stay as such)&lt;br /&gt;
#** &amp;lt;code&amp;gt;sudo service apache2 restart&amp;lt;/code&amp;gt;&lt;br /&gt;
# When using a VM with -nat I got at this point ''&amp;quot;There was a problem loading this page - Please contact your GeoNode administrator (he may have received an email automatically if he configured it properly).&amp;quot;''. I checked what is going on with &amp;lt;code&amp;gt;tail -f /var/log/apache2/error.log&amp;lt;/code&amp;gt;. The log showed me that I should add the bridged IP 146.155.17.113:14080 to allowed hosts in ''/etc/geonode/local_settings.py''. Hence I did changed the corresponding line in ''local_settings.py'' to &amp;lt;code&amp;gt;ALLOWED_HOSTS=[&amp;quot;*&amp;quot;]&amp;lt;/code&amp;gt; &lt;br /&gt;
# Import data&lt;br /&gt;
Read the [http://docs.geonode.org/#for-administrators admin docs] and also OSGeo Live DVD [http://live.osgeo.org/en/quickstart/geonode_quickstart.html Quickstart tutorial]&lt;br /&gt;
&lt;br /&gt;
Note, for assigning geoserver tomcat memory, do it for tomcat7 as described for tomcat6 (see OSGeo VM setup) using setenv.sh but in ''/usr/share/tomcat7/bin'' : &amp;lt;pre&amp;gt;#!/bin/sh &amp;amp;#10;JAVA_OPTS=&amp;quot;-Xms512m -Xmx4g -XX:MaxPermSize=270m -server -Djava.awt.headless=true -Djava.util.prefs.systemRoot=$CATALINA_HOME/content/thredds/javaUtilPrefs&amp;quot; &amp;amp;#10;export JAVA_OPTS&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes on installing PostGIS ==&lt;br /&gt;
&lt;br /&gt;
=== '''Basic PostgreSQL + PostGIS install''' ===&lt;br /&gt;
First check if PostgreSQL exists and what version exists. Use &amp;lt;code&amp;gt;which psql&amp;lt;/code&amp;gt; which should return the path. Then with the path I did &amp;lt;code&amp;gt;/usr/bin/psql --version&lt;br /&gt;
&amp;lt;/code&amp;gt; to retrieve the version installed.&lt;br /&gt;
As it was not installed on my brand new PostGIS VMs I installed Postgres 9.3 with PostGIS 2.1 as described here:&lt;br /&gt;
* http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS21UbuntuPGSQL93Apt :&lt;br /&gt;
** add the repository&lt;br /&gt;
**# &amp;lt;code&amp;gt;sudo sh -c 'echo &amp;quot;deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main&amp;quot; &amp;gt;&amp;gt; /etc/apt/sources.list'&amp;lt;/code&amp;gt;&lt;br /&gt;
**# &amp;lt;code&amp;gt;wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add - &amp;lt;/code&amp;gt;&lt;br /&gt;
**# &amp;lt;code&amp;gt;sudo apt-get update&amp;lt;/code&amp;gt;&lt;br /&gt;
** install: &amp;lt;code&amp;gt;sudo apt-get install Postgresql-9.3-postgis pgadmin3 postgresql-contrib&amp;lt;/code&amp;gt;&lt;br /&gt;
** enable admin pack:&lt;br /&gt;
**#  &amp;lt;code&amp;gt;sudo -u postgres psql&amp;lt;/code&amp;gt;&lt;br /&gt;
**#  &amp;lt;code&amp;gt;CREATE EXTENSION adminpack;&amp;lt;/code&amp;gt;&lt;br /&gt;
**#  leave psql &amp;lt;code&amp;gt;\q&amp;lt;/code&amp;gt;&lt;br /&gt;
** create the users&lt;br /&gt;
**#  &amp;lt;code&amp;gt;sudo su - postgres&amp;lt;/code&amp;gt; (logs in as postgres user)&lt;br /&gt;
**#  &amp;lt;code&amp;gt;createuser -d -E -i -l -P -r -s yourUserName&amp;lt;/code&amp;gt; =&amp;gt; create user for own login, and a &amp;quot;geonode&amp;quot; user&lt;br /&gt;
**# logout as postgres user &amp;lt;code&amp;gt;exit&amp;lt;/code&amp;gt;&lt;br /&gt;
** adjust remote connection permission in ''postgresql.conf'' and ''pg_hba.conf'', for details see below (Note, the VM setting also needs to allow connections, i.e. &amp;quot;nat&amp;quot; rules)&lt;br /&gt;
** enable the extensions &amp;quot;postgis&amp;quot; and &amp;quot;postgis_topology&amp;quot; for the particularDB (i.e. geonodegisdb93 &amp;gt; via PgAdmin: Expand the database tree in PGAdmin, and reveal the extensions node &amp;gt; Right-click the extensions node, and click &amp;lt;code&amp;gt;new extension&amp;lt;/code&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
However, one can also install from source: see: http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS20Ubuntu1204src&lt;br /&gt;
&lt;br /&gt;
=== '''PostGIS install comments with respect to my first GeoNode install''' ===&lt;br /&gt;
Here now some more install logs/info with respect to GeoNode:&lt;br /&gt;
* So, Postgres 9.1 was installed, but when I executed &amp;quot;psql&amp;quot; I got this: &amp;lt;code&amp;gt;psql: FATAL:  role &amp;quot;ssteinig&amp;quot; does not exist&amp;lt;/code&amp;gt;&lt;br /&gt;
* Hence, I first had to creating my account as a user using &amp;lt;code&amp;gt;sudo -u postgres createuser -s $USER&amp;lt;/code&amp;gt; (got this from [http://stackoverflow.com/questions/2172569/how-do-i-login-and-authenticate-to-postgresql-after-a-fresh-install here]). &lt;br /&gt;
* Now I could create a db using &amp;lt;code&amp;gt;createdb mygeodb&amp;lt;/code&amp;gt;, and connect via commandline with &amp;lt;code&amp;gt;psql -d mygeodb&amp;lt;/code&amp;gt;&lt;br /&gt;
* Finally I spatially enabled the db with &amp;lt;code&amp;gt;CREATE EXTENSION postgis;&amp;lt;/code&amp;gt;  and &amp;lt;code&amp;gt;CREATE EXTENSION postgis_topology;&amp;lt;/code&amp;gt;&lt;br /&gt;
** However, for &amp;lt;code&amp;gt;CREATE EXTENSION postgis;&amp;lt;/code&amp;gt; I got the following error: ''&amp;quot;ERROR: could not open extension control file &amp;quot;/usr/share/postgresql/9.1/extension/postgis.control&amp;quot;: No such file or directory&amp;quot;''.&lt;br /&gt;
** This '''may be''' solved using the install instructions from here: http://wiki.postgresql.org/wiki/Apt&lt;br /&gt;
** However, I followed now what is written here: http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS21UbuntuPGSQL93Apt&lt;br /&gt;
** the stuff described below did not work either, I think:&lt;br /&gt;
*** echo &amp;quot;deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main&amp;quot; | sudo tee /etc/apt/sources.list.d/postgis.list&lt;br /&gt;
*** sudo apt-get update&lt;br /&gt;
*** sudo apt-get install  postgresql-9.3 pgadmin3&lt;br /&gt;
*** and then...., I got again an error: ''update-alternatives: error: alternative pg_basebackup.1.gz can't be slave of psql.1.gz: it is a slave of postmaster.1.gz'', which send me to this page: http://www.postgresql.org/message-id/20130508192711.GA9243@msgid.df7cb.de&lt;br /&gt;
* then add a Postgres/postgis port forwarding rule for port 5432&lt;br /&gt;
&lt;br /&gt;
===  ''' GeoNode with external PostgreSQL DB''' ===&lt;br /&gt;
* modify settings in &amp;quot;''/etc/geonode/local_settings.py''&amp;quot; (before first use of db)&lt;br /&gt;
* the changes may require to run &amp;lt;code&amp;gt;geonode syncdb --noinput --all &amp;lt;/code&amp;gt; (and perhaps a tomcat7/apache2 restart?) to sync&lt;br /&gt;
* if the db contains data/layers already (e.g. geonodegisb93 &amp;gt; schemata &amp;gt; public &amp;gt; tables), and those should be visible again from GeoNode, then &lt;br /&gt;
** each table/layer needs to be published (re-loaded) in GeoServer and &lt;br /&gt;
** &amp;lt;code&amp;gt;geonode updatelayers&amp;lt;/code&amp;gt; command needs to be run.&lt;br /&gt;
&lt;br /&gt;
===  '''Accessing GeoNode - PostgreSQL''' ===&lt;br /&gt;
* create user: &amp;lt;code&amp;gt;sudo su postgres&amp;lt;/code&amp;gt;&lt;br /&gt;
* and: &amp;lt;code&amp;gt;createuser -d -E -i -l -P -r -s sstein&amp;lt;/code&amp;gt;  or all in one: &amp;lt;code&amp;gt;sudo -u postgres createuser -P ssteinig&amp;lt;/code&amp;gt;&lt;br /&gt;
* to access via terminal use &amp;lt;code&amp;gt;psql -U sstein -d geonode -h localhost&amp;lt;/code&amp;gt;&lt;br /&gt;
* to access via pgAdmin:&lt;br /&gt;
** edit the file ''/etc/postgresql/9.1/main/postgresql.conf'' to allow access from other hosts, and ''/etc/postgresql/9.1/main/pg_hba.conf'' to add the users that can login, see http://www.glom.org/wiki/index.php?title=Initial_Postgres_Configuration&lt;br /&gt;
** restart postgres as follows: &amp;lt;code&amp;gt;sudo /etc/init.d/postgresql restart&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===  '''Some PostgreSQL commands''' ===&lt;br /&gt;
* quit psql: &amp;lt;code&amp;gt;\q&amp;lt;/code&amp;gt;&lt;br /&gt;
* connecting: psql -U geonode93 -d geonodegisdb93 -h localhost -p 5432&lt;br /&gt;
* listing of dbs: &amp;lt;code&amp;gt;psql -l -p 5432&amp;lt;code&amp;gt; or &amp;lt;code&amp;gt;\l&amp;lt;/code&amp;gt;(including spec of port, as the PostGIS VM has postgres 9.1 (:9434) and 9.3 (:9432) installed)&lt;br /&gt;
** or alternatively: &amp;lt;code&amp;gt;SELECT datname FROM pg_database WHERE datistemplate = false; &amp;lt;/code&amp;gt;&lt;br /&gt;
* adding / removing users &amp;lt;code&amp;gt;createuser&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;dropuser&amp;lt;/code&amp;gt; e.g.: &amp;lt;code&amp;gt;dropuser geonode -p 5434&amp;lt;/code&amp;gt; but needs to be done as &amp;quot;sudo su - postgres&amp;quot;&lt;br /&gt;
* creating /removing dbs  &amp;lt;code&amp;gt;createdb&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;dropdb&amp;lt;/code&amp;gt; e.g.: &amp;lt;code&amp;gt;createdb geonodegisdb93&amp;lt;/code&amp;gt;&lt;br /&gt;
* listing of tables: &amp;lt;code&amp;gt;\dt&amp;lt;/code&amp;gt; : but this will only list the table from the database currently connected to&lt;br /&gt;
** to see at least something (if nothing added yet) it can also be done using: &amp;lt;code&amp;gt;SELECT table_schema,table_name FROM information_schema.tables ORDER BY table_schema,table_name; &amp;lt;/code&amp;gt;&lt;br /&gt;
* showing a tables content, e.g. all layers: &amp;lt;code&amp;gt;SELECT * FROM layers_layer;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing GeoExplorer with remote WMS clients ==&lt;br /&gt;
&lt;br /&gt;
* a list of running GeoNode instances can be found in this email thread: http://groups.google.com/d/topic/geonode-users/icuYPeL3rIg/discussion&lt;br /&gt;
* a server to test is http://demo.geonode.org/geoserver/wms , or the server from the World Food Program: http://geonode.wfp.org/geoserver/wms (= http://74.3.255.211/geoserver/wms)&lt;br /&gt;
* if errors occur to check what is going on run: &amp;lt;code&amp;gt;tail -f /var/log/apache2/error.log&amp;lt;/code&amp;gt;&lt;br /&gt;
* if a 403 error occurs, then the list of allowed hosts needs to be modified in the /etc/geonode/local_settings.py file (perhaps a &amp;quot;sudo service apache2 restart&amp;quot; is needed)&lt;br /&gt;
* if a 500 error occurs, then it could be that the mapping domain =&amp;gt; IP does not work and the DNS has to be added to the computer settings (i.e. adding the DNS to ''/etc/resolv.conf'' - but see [http://askubuntu.com/questions/201603/how-do-i-edit-my-resolv-conf-file ask-ubuntu] : i edited now ''/etc/network/interface'' and ifdown/ifup eth0 =&amp;gt; but this made me loosing the network connection !!! ...and I had to use VNC to connect to the VM again and do &amp;lt;code&amp;gt;sudo ifup eth0&amp;lt;/code&amp;gt; in a terminal)&lt;br /&gt;
&lt;br /&gt;
==  '''Changing the GeoNode logo (GeoNode 2.0)''' ==&lt;br /&gt;
The original documention on how to do this is here: http://docs.geonode.org/en/latest/deploy/customize.html. However, some things have changed for GeoNode v 2.0. So we have to do the following:&lt;br /&gt;
* The static web documents are in ''/var/www/geonode/static/geonode''. And CSS and images are in the subfolders /css and /img.&lt;br /&gt;
* Create a new logo file. The original logo file is called logo.png and has a dimension of 127x29 px.&lt;br /&gt;
* Create a subfolder in ''/etc/geonode/media/'' =&amp;gt; so we have now the folder ''/etc/geonode/media/geonode/img/''&lt;br /&gt;
* Make this ''img'' subfolder accessible for ftp (e.g. using chmod 777)&lt;br /&gt;
* copy the new logo into the ''etc/.../img'' subfolder&lt;br /&gt;
* run &amp;lt;code&amp;gt;sudo geonode collectstatic -v0&amp;lt;/code&amp;gt;&lt;br /&gt;
* this should copy the new logo image into ''/var/geonode/static/geonode/img/''.&lt;br /&gt;
&lt;br /&gt;
==  '''Changing the GeoNode Theme (GeoNode 2.0)''' ==&lt;br /&gt;
&lt;br /&gt;
=== '''Change of GeoNode web page colors''' ===&lt;br /&gt;
See comments above... for simple change of the CSS. I actually took the bootstrap? created base.css (see also base.less) and changed the color/backgroundcolor for web page elements (see personal notes in my log-book). &lt;br /&gt;
&lt;br /&gt;
Apart from that: Everything else is more complicated and requires lots of others software (bootstrap, etc):&lt;br /&gt;
&lt;br /&gt;
* a theme is available here: http://github.com/ingenieroariel/geonode-project&lt;br /&gt;
* a recent Oct. 2013 email thread: http://groups.google.com/d/msg/geonode-users/pI3-7QiFzs0/3nrvyjAX2rYJ&lt;br /&gt;
*# install geonode with apt-get&lt;br /&gt;
*# install git-core and clone https://github.com/GeoNode/geonode-project.git&lt;br /&gt;
*# Install your custom project in the virtualenv, you can do this via pip install -e . or python setup.py develop&lt;br /&gt;
*# Modify geonode's /var/www/geonode/wsgi/geonode.wsgi to import yourproject.settings instead of geonode.settings.&lt;br /&gt;
*# Add a symlink to /etc/geonode/local_settings.py next to yourproject.settings so it picks up all the information about database and template locations in production. (run geonode collectstatic)&lt;br /&gt;
*# Restart apache.&lt;br /&gt;
&lt;br /&gt;
=== '''Translation + Change of GeoNode Welcome text''' ===&lt;br /&gt;
GeoNode is a Django Project - well, according to Daniel they put it into package for distribution (see [http://geonode.readthedocs.org/en/latest/tutorials/devel/projects/projectsintro.html?highlight=django here]). So for that reason the GeoNode Django &amp;quot;project&amp;quot; can be found under the following path   &amp;lt;code&amp;gt;/usr/local/lib/python2.7/dist-packages/geonode/locale&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
To edit the text of the GeoNode welcome page, one can edit the English, Spanish, etc, locales stored under ''/usr/local/lib/python2.7/dist-packages/geonode/locale''. However, I need to check if they should get replaced when an upgrade is performed. The translation is in .po files. Information on how to compile these files can be found here: http://docs.djangoproject.com/en/1.6/topics/i18n/translation/#how-to-create-language-files&lt;br /&gt;
&lt;br /&gt;
However, what did I do to change the '''german''' translation for the front page.&lt;br /&gt;
* copy (backup first) and open /locale/'''de'''/LC_MESSAGES/django.po&lt;br /&gt;
* check out in the file /templates/index.html what strings are used&lt;br /&gt;
* modify the text for the corresponding language keys in django.po&lt;br /&gt;
* save and cope the file to the server (ensure that you have a backup of the original!!!  and use ''chmod'' to enable copying)&lt;br /&gt;
* compile the changed language file using: &amp;lt;code&amp;gt;django-admin.py compilemessages -l de&amp;lt;/code&amp;gt; or: &amp;lt;code&amp;gt;sudo geonode compilemessages&amp;lt;/code&amp;gt;&lt;br /&gt;
* perhaps do a ''sudo service apache2 restart''?&lt;br /&gt;
* now check if the '''german''' text changed.&lt;br /&gt;
&lt;br /&gt;
Note, for a new language file, e.g. Chile Spanish one would create the template po files using: &amp;lt;code&amp;gt;django-admin.py makemessages -l '''es_cl'''&amp;lt;/code&amp;gt; or: &amp;lt;code&amp;gt;sudo geonode  makemessages -l es_cl&amp;lt;/code&amp;gt; first. (I think so ;)&lt;br /&gt;
&lt;br /&gt;
== Adding own Tiles to GeoExplorer ==&lt;br /&gt;
Own background tiles can be created with TileMill and then distributed with [http://github.com/mapbox/tilestream TileStream]. Daniel has done that on Lautaro, and the tiles can be access from here: ''http://lautaro.ing.puc.cl/map/v2/Fondef/{z}/{x}/{y}.png'' . The max zoom level seems to be &amp;quot;16&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
How to enable showing of my own tiles served by TileStream can be found in the OpenQuake bugfix for &amp;quot;hack the MapBoxSource gxp plugin to allow for our tilestream data&amp;quot;. The Git pull request can be found [http://github.com/gem/oq-platform/pull/30/files here]. According to this, the following changes are necessary:&lt;br /&gt;
# check the js file by Ben Wyss [http://github.com/gem/oq-platform/blob/tilestream-dynamic-sdk-plugin/oq-ui-client2/src/gxp/script/plugins/TileStreamSource.js#L124 TileStreamSource.js] which is based on MapBoxSource.js plugin. The MapBoxSource.js is part of /var/www/geonode/static/geoexplorer/script/GeoExplorer.js in minified version, but can be seen raw in GeoExplorer-debug.js. Insert [http://github.com/gem/oq-platform/blob/tilestream-dynamic-sdk-plugin/oq-ui-client2/src/gxp/script/plugins/TileStreamSource.js#L124 this code] into GeoExplorer.js and replace with the IP of my private TileStream server. &lt;br /&gt;
# modifying ''local_settings.py'' by adding ''gxp_tilestreamsource'' equally as ''gxp_mapboxsource'' is added (+ restart Apache2 service) &lt;br /&gt;
&lt;br /&gt;
Note: When I activate in ''local_settings.py'' a TileStream server that is not accessible (i.e. timeout because my personal TileStream server is behind the PUC - San Joaquin wall), then the GeoExplorer.js does not get loaded completely (I guess) and I can't compose maps. In that case the entry in ''local_settings.py'' has to be deactivated/commented out to be able to compose maps in GeoExplorer again. For that reason, at the moment I leave access to my TileStream VM on Lautaro commented out, but for demonstration purposes I added the OpenQuake.org TileStream source that has some nice maps. &lt;br /&gt;
&lt;br /&gt;
PS: some more info is perhaps found in the tutorial: http://docs.geonode.org/en/latest/reference/developers/settings.html&lt;br /&gt;
&lt;br /&gt;
=== '''Working fill-in code for OpenQuake tile layers for GeoExplorer.js''' ===&lt;br /&gt;
&lt;br /&gt;
* The OpenQuake TileStream server can be accessed via: http://tilestream.openquake.org (this link allows to browse the tile sets as well using Leaflet)&lt;br /&gt;
* interestingly the following code executes first a request for a tile server description (a json document) to get info about all existing tile sets. This json metadata file is obtained from: http://tilestream.openquake.org/api/v1/Tileset .Lautaro doesn't seem to have installed ''api/v1/Tileset'' (at least I could not found it in ''/srv/www/''.&lt;br /&gt;
* Tiles from OpenQuake server are then accessed using this scheme: ''http://tilestream.openquake.org/v2/&amp;quot; + tileStreamLayerName + &amp;quot;/${z}/${x}/${y}.png''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
   var tilestreamPlugin = {&lt;br /&gt;
      ptype: &amp;quot;gxp_tilestreamsource&amp;quot;,&lt;br /&gt;
      title: &amp;quot;TileStream Layers&amp;quot;,&lt;br /&gt;
   &lt;br /&gt;
    /** api: method[createStore]&lt;br /&gt;
     *&lt;br /&gt;
     *  Creates a store of layer records.  Fires &amp;quot;ready&amp;quot; when store is loaded.&lt;br /&gt;
     */&lt;br /&gt;
    createStore: function() {  &lt;br /&gt;
  &lt;br /&gt;
        var options = {&lt;br /&gt;
            sphericalMercator: true,&lt;br /&gt;
            wrapDateLine: true,&lt;br /&gt;
            //numZoomLevels: 7&lt;br /&gt;
            numZoomLevels: 16&lt;br /&gt;
        };  &lt;br /&gt;
        var layers = new Array();&lt;br /&gt;
        $.getJSON(&lt;br /&gt;
        	'http://tilestream.openquake.org/api/v1/Tileset',&lt;br /&gt;
        	function(json) {&lt;br /&gt;
            	   for (var i=0; i &amp;lt; json.length; i++) {&lt;br /&gt;
                	// Get the tile name and zoom level from the tilestream API&lt;br /&gt;
        		var tileStreamLayerName = json[i].id;&lt;br /&gt;
                	var tileMaxZoom = json[i].maxzoom;    &lt;br /&gt;
                	// Build the list of layers&lt;br /&gt;
                        var newLayer = new OpenLayers.Layer.XYZ(&lt;br /&gt;
                                        tileStreamLayerName,&lt;br /&gt;
                    	                [&amp;quot;http://tilestream.openquake.org/v2/&amp;quot; + tileStreamLayerName + &amp;quot;/${z}/${x}/${y}.png&amp;quot;],  &lt;br /&gt;
                    	                OpenLayers.Util.applyDefaults(&lt;br /&gt;
                                              {&lt;br /&gt;
                        	                   layername: tileStreamLayerName,&lt;br /&gt;
                        	                   numZoomLevels: tileMaxZoom&lt;br /&gt;
                    	                      }, &lt;br /&gt;
                                             options)&lt;br /&gt;
                		        );&lt;br /&gt;
                                       layers.push(newLayer);&lt;br /&gt;
            	   }&lt;br /&gt;
            	   newLayerStore(layers);&lt;br /&gt;
        	}&lt;br /&gt;
        ); &lt;br /&gt;
        var plugin = this;&lt;br /&gt;
        var newLayerStore = function(layers) {&lt;br /&gt;
            plugin.store = new GeoExt.data.LayerStore({&lt;br /&gt;
                layers: layers,&lt;br /&gt;
            	fields: [&lt;br /&gt;
                    {name: &amp;quot;source&amp;quot;, type: &amp;quot;string&amp;quot;},&lt;br /&gt;
                    {name: &amp;quot;name&amp;quot;, type: &amp;quot;string&amp;quot;, mapping: &amp;quot;layername&amp;quot;},&lt;br /&gt;
                    //{name: &amp;quot;abstract&amp;quot;, type: &amp;quot;string&amp;quot;},&lt;br /&gt;
                    {name: &amp;quot;group&amp;quot;, type: &amp;quot;string&amp;quot;},&lt;br /&gt;
                    {name: &amp;quot;fixed&amp;quot;, type: &amp;quot;boolean&amp;quot;},&lt;br /&gt;
                    {name: &amp;quot;selected&amp;quot;, type: &amp;quot;boolean&amp;quot;}&lt;br /&gt;
                ]&lt;br /&gt;
            });&lt;br /&gt;
            plugin.fireEvent(&amp;quot;ready&amp;quot;, this);&lt;br /&gt;
        };&lt;br /&gt;
    },&lt;br /&gt;
    /** api: method[createLayerRecord]&lt;br /&gt;
     *  :arg config:  ``Object``  The application config for this layer.&lt;br /&gt;
     *  :returns: ``GeoExt.data.LayerRecord``&lt;br /&gt;
     *&lt;br /&gt;
     *  Create a layer record given the config.&lt;br /&gt;
     */&lt;br /&gt;
    createLayerRecord: function(config) {&lt;br /&gt;
        var record;&lt;br /&gt;
        var index = this.store.findExact(&amp;quot;name&amp;quot;, config.name);&lt;br /&gt;
        if (index &amp;gt; -1) {&lt;br /&gt;
            record = this.store.getAt(index).copy(Ext.data.Record.id({}));&lt;br /&gt;
            var layer = record.getLayer().clone();&lt;br /&gt;
            // set layer title from config&lt;br /&gt;
            if (config.title) {&lt;br /&gt;
                /**&lt;br /&gt;
                 * Because the layer title data is duplicated, we have&lt;br /&gt;
                 * to set it in both places.  After records have been&lt;br /&gt;
                 * added to the store, the store handles this&lt;br /&gt;
                 * synchronization.&lt;br /&gt;
                 */&lt;br /&gt;
                layer.setName(config.title);&lt;br /&gt;
                record.set(&amp;quot;title&amp;quot;, config.title);&lt;br /&gt;
            }&lt;br /&gt;
            // set visibility from config&lt;br /&gt;
            if (&amp;quot;visibility&amp;quot; in config) {&lt;br /&gt;
                layer.visibility = config.visibility;&lt;br /&gt;
            }&lt;br /&gt;
            record.set(&amp;quot;selected&amp;quot;, config.selected || false);&lt;br /&gt;
            record.set(&amp;quot;source&amp;quot;, config.source);&lt;br /&gt;
            record.set(&amp;quot;name&amp;quot;, config.name);&lt;br /&gt;
            if (&amp;quot;group&amp;quot; in config) {&lt;br /&gt;
                record.set(&amp;quot;group&amp;quot;, config.group);&lt;br /&gt;
            }&lt;br /&gt;
            record.data.layer = layer;&lt;br /&gt;
            record.commit();&lt;br /&gt;
        }&lt;br /&gt;
        return record;&lt;br /&gt;
    }&lt;br /&gt;
  };&lt;br /&gt;
  gxp.plugins.TileStreamSource = Ext.extend(gxp.plugins.LayerSource, tilestreamPlugin);&lt;br /&gt;
  Ext.preg(gxp.plugins.TileStreamSource.prototype.ptype, gxp.plugins.TileStreamSource);&lt;br /&gt;
  Ext.ns(&amp;quot;gxp.plugins&amp;quot;);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== '''Simple working fill-in code for Lautaro - Fondef tile layers for GeoExplorer.js''' ===&lt;br /&gt;
&lt;br /&gt;
Link to zipped version of the [http://sourceforge.net/projects/mentaer.u/files/otherfiles/GeoExplorer.zip/download GeoExplorer.js minified] version.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt; &lt;br /&gt;
 var tilestreamPlugin = {&lt;br /&gt;
    &lt;br /&gt;
    /** api: ptype = gxp_mapboxsource */&lt;br /&gt;
    ptype: &amp;quot;gxp_tilestreamsource&amp;quot;,&lt;br /&gt;
    &lt;br /&gt;
    /** api: config[title]&lt;br /&gt;
     *  ``String``&lt;br /&gt;
     *  A descriptive title for this layer source (i18n).&lt;br /&gt;
     */&lt;br /&gt;
    title: &amp;quot;CEDEUS TileStream Layers&amp;quot;,&lt;br /&gt;
    &lt;br /&gt;
    /** api: method[createStore]&lt;br /&gt;
     *  Creates a store of layer records.  Fires &amp;quot;ready&amp;quot; when store is loaded.&lt;br /&gt;
     *  sstein: in my case it creates only one layer &amp;quot;Fondef&amp;quot; that is part of the store&lt;br /&gt;
     *  I removed the original loop to gather layers from /api/v1/Tileset json&lt;br /&gt;
     */&lt;br /&gt;
    createStore: function() {&lt;br /&gt;
        &lt;br /&gt;
        var options = {&lt;br /&gt;
            sphericalMercator: true,&lt;br /&gt;
            wrapDateLine: true,&lt;br /&gt;
            //numZoomLevels: 7&lt;br /&gt;
            numZoomLevels: 16&lt;br /&gt;
        };  &lt;br /&gt;
        &lt;br /&gt;
        var layers = new Array();      &lt;br /&gt;
        var tileStreamLayerName = &amp;quot;Fondef&amp;quot;;&lt;br /&gt;
        var tileMaxZoom = 17;&lt;br /&gt;
  &lt;br /&gt;
        var newLayer = new OpenLayers.Layer.XYZ( &lt;br /&gt;
                                tileStreamLayerName,&lt;br /&gt;
                    		[&amp;quot;http://lautaro.ing.puc.cl/map/v2/&amp;quot; + tileStreamLayerName + &amp;quot;/${z}/${x}/${y}.png&amp;quot;],  &lt;br /&gt;
                    		OpenLayers.Util.applyDefaults(&lt;br /&gt;
                    			{&lt;br /&gt;
                        			layername: tileStreamLayerName,&lt;br /&gt;
                        			numZoomLevels: tileMaxZoom&lt;br /&gt;
                    		        }, &lt;br /&gt;
                    			options)&lt;br /&gt;
                		);&lt;br /&gt;
        layers.push(newLayer);  &lt;br /&gt;
 		 		&lt;br /&gt;
        var plugin = this;&lt;br /&gt;
        var newLayerStore = function(layers) {&lt;br /&gt;
            plugin.store = new GeoExt.data.LayerStore({&lt;br /&gt;
                layers: layers,&lt;br /&gt;
            	fields: [&lt;br /&gt;
                    {name: &amp;quot;source&amp;quot;, type: &amp;quot;string&amp;quot;},&lt;br /&gt;
                    {name: &amp;quot;name&amp;quot;, type: &amp;quot;string&amp;quot;, mapping: &amp;quot;layername&amp;quot;},&lt;br /&gt;
                    //{name: &amp;quot;abstract&amp;quot;, type: &amp;quot;string&amp;quot;},&lt;br /&gt;
                    {name: &amp;quot;group&amp;quot;, type: &amp;quot;string&amp;quot;},&lt;br /&gt;
                    {name: &amp;quot;fixed&amp;quot;, type: &amp;quot;boolean&amp;quot;},&lt;br /&gt;
                    {name: &amp;quot;selected&amp;quot;, type: &amp;quot;boolean&amp;quot;}&lt;br /&gt;
                ]&lt;br /&gt;
            });&lt;br /&gt;
            plugin.fireEvent(&amp;quot;ready&amp;quot;, this);&lt;br /&gt;
        };&lt;br /&gt;
         newLayerStore(layers);&lt;br /&gt;
    },&lt;br /&gt;
    &lt;br /&gt;
    /** api: method[createLayerRecord]&lt;br /&gt;
     *  :arg config:  ``Object``  The application config for this layer.&lt;br /&gt;
     *  :returns: ``GeoExt.data.LayerRecord``&lt;br /&gt;
     *&lt;br /&gt;
     *  Create a layer record given the config.&lt;br /&gt;
     */&lt;br /&gt;
    createLayerRecord: function(config) {&lt;br /&gt;
        var record;&lt;br /&gt;
        var index = this.store.findExact(&amp;quot;name&amp;quot;, config.name);&lt;br /&gt;
        if (index &amp;gt; -1) {&lt;br /&gt;
 &lt;br /&gt;
            record = this.store.getAt(index).copy(Ext.data.Record.id({}));&lt;br /&gt;
            var layer = record.getLayer().clone();&lt;br /&gt;
 &lt;br /&gt;
            // set layer title from config&lt;br /&gt;
            if (config.title) {&lt;br /&gt;
                /**&lt;br /&gt;
                 * Because the layer title data is duplicated, we have&lt;br /&gt;
                 * to set it in both places.  After records have been&lt;br /&gt;
                 * added to the store, the store handles this&lt;br /&gt;
                 * synchronization.&lt;br /&gt;
                 */&lt;br /&gt;
                layer.setName(config.title);&lt;br /&gt;
                record.set(&amp;quot;title&amp;quot;, config.title);&lt;br /&gt;
            }&lt;br /&gt;
 &lt;br /&gt;
            // set visibility from config&lt;br /&gt;
            if (&amp;quot;visibility&amp;quot; in config) {&lt;br /&gt;
                layer.visibility = config.visibility;&lt;br /&gt;
            }&lt;br /&gt;
            &lt;br /&gt;
            record.set(&amp;quot;selected&amp;quot;, config.selected || false);&lt;br /&gt;
            record.set(&amp;quot;source&amp;quot;, config.source);&lt;br /&gt;
            record.set(&amp;quot;name&amp;quot;, config.name);&lt;br /&gt;
            if (&amp;quot;group&amp;quot; in config) {&lt;br /&gt;
                record.set(&amp;quot;group&amp;quot;, config.group);&lt;br /&gt;
            }&lt;br /&gt;
            record.data.layer = layer;&lt;br /&gt;
            record.commit();&lt;br /&gt;
        }&lt;br /&gt;
        return record;&lt;br /&gt;
    }&lt;br /&gt;
 };&lt;br /&gt;
  &lt;br /&gt;
 gxp.plugins.TileStreamSource = Ext.extend(gxp.plugins.LayerSource, tilestreamPlugin);&lt;br /&gt;
 Ext.preg(gxp.plugins.TileStreamSource.prototype.ptype, gxp.plugins.TileStreamSource);&lt;br /&gt;
 Ext.ns(&amp;quot;gxp.plugins&amp;quot;);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''GeoNode Settings''' ==&lt;br /&gt;
&lt;br /&gt;
ToDo: check for settings that still need to be adjusted for a running system: &amp;lt;br/&amp;gt;&lt;br /&gt;
see http://docs.geonode.org/en/latest/reference/developers/settings.html&lt;br /&gt;
&lt;br /&gt;
== '''Debugging GeoNode''' ==&lt;br /&gt;
(i) Case: dataset is not shown in GeoExplorer. Options to check what is going on:&lt;br /&gt;
* GeoExplorer could not be loaded correctly (due to my mods + changes in local_settings.py). In this case, there should be an error message in the Firefox Web-Dev console&lt;br /&gt;
* No connection to DB? &lt;br /&gt;
** the error should be visible with &amp;lt;code&amp;gt;tail -f /var/lib/tomcat7/logs/catalina.out&amp;lt;/code&amp;gt; =&amp;gt; check also what happens when doing a restart of Tomcat7. &lt;br /&gt;
** connect with PgAdmin to see if the DB is accessible&lt;br /&gt;
* Something with GeoServer? as above check also catalina.out logs. Switch to the GeoServer admin interface in GeoNode. Check if datasets/layers are loaded. Check if they are displayed in the Layer Preview &amp;gt; OpenLayers.&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Accessing_server_infra</id>
		<title>Accessing server infra</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Accessing_server_infra"/>
				<updated>2014-04-10T16:44:37Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* git stuff */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== apt-get ==&lt;br /&gt;
* info on package &amp;lt;code&amp;gt;apt-cache show PackageName&amp;lt;/code&amp;gt;&lt;br /&gt;
* upgrade &amp;lt;code&amp;gt;apt-get upgrade PackageName&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== git stuff ==&lt;br /&gt;
*git diff&lt;br /&gt;
*git pull&lt;br /&gt;
*git status&lt;br /&gt;
*git reset --hard HEAD&lt;br /&gt;
*git reset HEAD~1&lt;br /&gt;
*git reset HEAD opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/analyst/IsoChrone.java&lt;br /&gt;
*git log -p&lt;br /&gt;
*git add opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/analyst/IsoChrone.java&lt;br /&gt;
*git commit -m 'added debug code to be able to figure why some edges are traversed to fast (aside fromom u-shaped roads)'&lt;br /&gt;
*gitk&lt;br /&gt;
*git push origin master&lt;br /&gt;
*git show-ref&lt;br /&gt;
*git stash list&lt;br /&gt;
*git log origin/master..master&lt;br /&gt;
*git fetch upstream&lt;br /&gt;
*git remote add upstream https://github.com/openplans/OpenTripPlanner.git&lt;br /&gt;
*git remote show origin&lt;br /&gt;
*git remote set-url origin git://github.com/mentaer/OpenTripPlanner.git&lt;br /&gt;
*git remote set-url origin git@github.com:mentaer/OpenTripPlanner.git&lt;br /&gt;
*git diff &amp;gt; /Volumes/WINDOOF/walkingslopeeffects.patch&lt;br /&gt;
*patch -p1 -R &amp;lt; IsoChrone2.patch&lt;br /&gt;
*git apply --check /Volumes/WINDOOF/IsoChrone.patch&lt;br /&gt;
&lt;br /&gt;
== maven stuff ==&lt;br /&gt;
*mvn package -DskipTests&lt;br /&gt;
&lt;br /&gt;
== postgres stuff ==&lt;br /&gt;
&lt;br /&gt;
*echo 'export PATH=/Library/PostgreSQL/9.2/bin:$PATH' &amp;gt;&amp;gt; ~/.bash_profile&lt;br /&gt;
&lt;br /&gt;
*psql&lt;br /&gt;
*sudo mkdir /Library/PostgreSQL/9.2/data/&lt;br /&gt;
*sudo chown postgres /Library/PostgreSQL/9.2/data/&lt;br /&gt;
*sudo -u postgres initdb -D /Library/PostgreSQL/9.2/data/&lt;br /&gt;
*service postgresql start&lt;br /&gt;
*sudo -u postgres pg_ctl -D /Library/PostgreSQL/9.2/data -l logfile start&lt;br /&gt;
*sudo -u postgres postgres -D /Library/PostgreSQL/9.2/data &amp;amp;&lt;br /&gt;
*sudo -u postgres createdb santiagotest&lt;br /&gt;
*sudo -u postgres createuser -P -s -e mentaer&lt;br /&gt;
*psql santiagotest&lt;br /&gt;
&lt;br /&gt;
== using VirtualBox ==&lt;br /&gt;
&amp;quot; use ''ssh -X sstein..@xxx'' to enable a visual client&lt;br /&gt;
* vboxgtk (start visual client)&lt;br /&gt;
&lt;br /&gt;
create and start a VM from comandline:&lt;br /&gt;
* &amp;lt;code&amp;gt;VBoxManage createvm --name ubuntu --register&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;VBoxManage modifyvm ubuntu --ostype ubuntu_64 --cpus 4&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;VBoxManage modifyvm ubuntu --memory 8000&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;VBoxManage startvm ubuntu&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
other:&lt;br /&gt;
* options of ip-addressing/web access: NAT (Network Address Translation) or Bridge (see also this [http://catlingmindswipe.blogspot.com/2012/06/how-to-virtualbox-networking-part-two.html blog entry]) &lt;br /&gt;
* downloading .iso archives/vm from OSGeo (use commands ''curl'' or ''wget -c''), e.g.:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget -c &amp;quot;http://downloads.sourceforge.net/project/osgeo-live/7.0/osgeo-live-7.0.iso?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fosgeo-live%2Ffiles%2F%2F7.0%2Fosgeo-live-7.0.iso%2Fdownload&amp;amp;ts=1384444616&amp;amp;use_mirror=ufpr&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* showing list of running VMs: &amp;lt;code&amp;gt;VBoxManage list runningvms&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
a VM contains 3 files: .img + .vbox (an editable xml) + .vbox-prev&lt;br /&gt;
&lt;br /&gt;
== OpenTripPlanner ==&lt;br /&gt;
* start with &amp;quot;sh start-server.sh&amp;quot;; use &amp;quot;&amp;amp;&amp;quot; at the end to keep the process running&lt;br /&gt;
* make sure that winstone.jar is executable, with chmod 755&lt;br /&gt;
* define in the start-server.sh file also where the webapps folder is located (physical location), so winstone knows that&lt;br /&gt;
* define in the WEB-INF/classes/data-sources.xml file where the graph is stored (physical location) - the files is within /otp/webapps/opentripplanner-api-webapp.war (or: the deflated war folder)&lt;br /&gt;
* kill winstone server (or OTP) process: use &amp;lt;pre&amp;gt;ps aux | grep winstone&amp;lt;/pre&amp;gt; to find the associated PID, and use &amp;lt;code&amp;gt;kill pid&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== unix commands ==&lt;br /&gt;
http://www.computerhope.com/issues/ch000623.htm&lt;br /&gt;
&lt;br /&gt;
connect to server:&lt;br /&gt;
*ssh stefan@136.159.xxx.xxx&lt;br /&gt;
*ssh sstein@146.155.xxx.xxx.&lt;br /&gt;
*pid&lt;br /&gt;
* (sudo) kill pid, e.g. kill 320&lt;br /&gt;
*top or: htop&lt;br /&gt;
*process&lt;br /&gt;
* &amp;quot;sudo shutdown now -h&amp;quot; or &amp;quot;sudo reboot&amp;quot;&lt;br /&gt;
* seeing system info: &amp;lt;code&amp;gt;cat /etc/*-release&amp;lt;/code&amp;gt; + htop (needs to be installed first)&lt;br /&gt;
* '''grep''': search for files in the folder ''/var/.../static/'' that contain the string ''nav-pills'' with: &amp;lt;code&amp;gt;grep -r -i &amp;quot;nav-pills&amp;quot; /var/www/geonode/static/&amp;lt;/code&amp;gt;&lt;br /&gt;
and:&lt;br /&gt;
*commands to display/figure out processes: http://www.howtogeek.com/107217/&lt;br /&gt;
*kill process: http://www.cyberciti.biz/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems/&lt;br /&gt;
*configuration info: http://www.cyberciti.biz/faq/linux-command-to-find-the-system-configuration-and-hardware-information/&lt;br /&gt;
*use of ''grep'': http://www.cyberciti.biz/faq/howto-use-grep-command-in-linux-unix/&lt;br /&gt;
*used ports: &amp;lt;code&amp;gt;netstat -a&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installing lightweight XFCE Desktop GUI on Ubuntu Server ==&lt;br /&gt;
* use &amp;lt;code&amp;gt;sudo apt-get install xubuntu-desktop&amp;lt;/code&amp;gt; to install XFCE client (see [http://help.ubuntu.com/community/ServerGUI here]).&lt;br /&gt;
* this will also install xauth, which allows remote window clients&lt;br /&gt;
* disable start of GUI-based login on system startup with Grub (taken from [http://askubuntu.com/questions/174312/how-can-i-set-my-ubuntu-12-04-lts-to-boot-to-console-without-gui here]):&lt;br /&gt;
** Change (edit) in /etc/default/grub file: &amp;lt;code&amp;gt;GRUB_CMDLINE_LINUX_DEFAULT=&amp;quot;text&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
** then do &amp;lt;code&amp;gt;sudo update-grub&amp;lt;/code&amp;gt;&lt;br /&gt;
* start the desktop GUI session using &amp;lt;code&amp;gt;startx&amp;lt;/code&amp;gt;&lt;br /&gt;
* end the desktop GUI session using &amp;quot;logout&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
== Enabling Remote Desktop for Windows ==&lt;br /&gt;
got the info from [http://www.ubuntututorials.com/remote-desktop-ubuntu-12-04-windows-7/ here]&lt;br /&gt;
* install XRDP: &amp;lt;code&amp;gt;sudo apt-get install xrdp&amp;lt;/code&amp;gt;&lt;br /&gt;
* connect via Windows Remote Desktop using the IP etc. &lt;br /&gt;
* if not needed, switch off the remote desktop server using: &amp;lt;code&amp;gt;sudo service xrdp stop&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== other stuff ==&lt;br /&gt;
* gdalinfo cgydem_fromgrid.tif&lt;br /&gt;
* if computer crashs: boot from a LiveDVD and the run &amp;lt;code&amp;gt;fsck&amp;lt;/code&amp;gt; (see http://www.thegeekstuff.com/2012/08/fsck-command-examples/)&lt;br /&gt;
* '''compress''': &lt;br /&gt;
** files by using: &amp;lt;code&amp;gt;zip newzipfile.zip fileToZip.obj&amp;lt;/code&amp;gt;&lt;br /&gt;
** whole folders by using: &amp;lt;code&amp;gt;tar -cvzf tarfilename.tgz /folder/to/compress&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''uncompress''':&lt;br /&gt;
** zip files, using: &amp;lt;code&amp;gt;unzip filename.zip&amp;lt;/code&amp;gt;, &lt;br /&gt;
** bz2 files with: &amp;lt;code&amp;gt;bunzip2 filename.bz2&amp;lt;/code&amp;gt;&lt;br /&gt;
** tar files: &amp;lt;code&amp;gt;tar -C / -xvzf tarfilename.tgz&amp;lt;/code&amp;gt; . ''Attention !!!'' This will restore the data exactly in the same place on the computer, and overwrite existing folders and files.&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-08T18:11:58Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Testing Calgary scenario */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
== '''General prep steps''' ==&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
#* when using an existing VM image : &lt;br /&gt;
#** fix network issue (remove old card settings in ''/etc/udev/rules.d/70-persistent-net.rules'' and reboot)&lt;br /&gt;
#** set new machine name (in ''/etc/hostname'')&lt;br /&gt;
#** check if apache2 starts with an error message or not (for a fix see [[Setting up geonode]] &amp;gt; Basic Install for GeoNode v. 2.0)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== '''Install for Calgary''' ==&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end point (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put in apache's ''/var/www/'' (i.e. /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; plus adding this to the layer selection plus as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get backend code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = on for each model =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. However, I am not having the sources right now, so the Walkshed request is send to the GISciencegroup server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [https://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; &lt;br /&gt;
#** it may be necessary to change run.py (causes error at the moment) since I am not having gnome-terminal available via command line. At the moment I am starting the scripts using commandline &amp;lt;code&amp;gt;python xxx.py &amp;amp;&amp;lt;/code&amp;gt;. &lt;br /&gt;
#**# the Management Service (for pedestrian network) will listen on http://0.0.0.0:8363/&lt;br /&gt;
#**# the Crime Service will listen on http://0.0.0.0:8366/&lt;br /&gt;
#**# the Aggregation Service will listen on http://0.0.0.0:8364/&lt;br /&gt;
#**# the POI Service will listen on http://0.0.0.0:8365/&lt;br /&gt;
#** My running processes I can see then with &amp;lt;code&amp;gt;ps -u ssteinig&amp;lt;/code&amp;gt;&lt;br /&gt;
#** ToDo: check if it is possible to use &amp;quot;subprocess.Popen&amp;quot; or &amp;quot;Multiprocess&amp;quot; (see examples on stackoverflow and [http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args here])&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test if Calgary scenario works =&amp;gt; see next part&lt;br /&gt;
== '''Testing Calgary scenario''' ==&lt;br /&gt;
# choosen params: &lt;br /&gt;
#* pos lat = 51.05747321278561&lt;br /&gt;
#* pos lon = -114.0794563293457&lt;br /&gt;
#* 15 min walkshed&lt;br /&gt;
#* walkspeed 1.38 m/sec&lt;br /&gt;
# Then this is how the web browser client request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
# the subsequent call to the managment service would be: &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=Execute&amp;amp;Version=1.0.0&amp;amp;Identifier=gs:Management&amp;amp;DataInputs=StartPoint=51.0574732128,-114.079456329;WalkingTimePeriod=15;WalkingSpeed=1.38&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''Routing/OTP WPS''': this call will return the pedestrian walkshed as JSON object &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Walkshed_Pedestrian&amp;amp;datainputs=StartPoint=51.0574732128,-114.079456329;WalkingPeriod=15;WalkingSpeed=1.38;WalkshedOutput=SHED&amp;lt;/pre&amp;gt; Note, that at the moment (8. April 2014) this will re-route the request to the Calgary OTP server. &lt;br /&gt;
#* '''Crime WPS''': for the same data and the pedestrian-network model we receive a list of crime features, with the following call: &lt;br /&gt;
#** Calgary server &amp;lt;pre&amp;gt;http://136.159.122.90:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed=%7B%22type%22:%22Polygon%22,%22coordinates%22:%5B%5B%5B-114.09364571378056,51.057144582993836%5D,%5B-114.09286815708892,51.05359381755474%5D,%5B-114.09101115708,51.050834058520664%5D,%5B-114.09075927937053,51.05080998647081%5D,%5B-114.0870286,51.0516827%5D,%5B-114.08586777200182,51.04970977429437%5D,%5B-114.0835059,51.0489783%5D,%5B-114.08184778623112,51.0498709384076%5D,%5B-114.081181,51.0536508%5D,%5B-114.0793914,51.0547065%5D,%5B-114.077687,51.0557314%5D,%5B-114.0756248,51.0568823%5D,%5B-114.0750158,51.0570965%5D,%5B-114.0736901,51.0573512%5D,%5B-114.06926177015508,51.055915080229724%5D,%5B-114.06619893997784,51.05694155563417%5D,%5B-114.06579011626843,51.0581622658825%5D,%5B-114.067673398873,51.058916548778726%5D,%5B-114.07143185670641,51.061423362491404%5D,%5B-114.07184987616904,51.06168921938163%5D,%5B-114.0741837,51.0613545%5D,%5B-114.07794224224338,51.06228401160695%5D,%5B-114.07918450576179,51.06260346516831%5D,%5B-114.07993046849634,51.06280359284396%5D,%5B-114.08066137191179,51.062350982627464%5D,%5B-114.08244401432806,51.06127600012983%5D,%5B-114.08582266933304,51.061346817139835%5D,%5B-114.08616082731021,51.06129711945887%5D,%5B-114.0888935,51.0575163%5D,%5B-114.09170271289915,51.05843118482227%5D,%5B-114.09364571378056,51.057144582993836%5D%5D%5D%7D&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** Stgo test server &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** if the python server/script is started, the crime data can also be retrieved using the following from the machines web browser itself(I think so...):&amp;lt;pre&amp;gt;http://127.0.0.1:8366/crime?walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Modify code for Santiago''' ==&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* OTP location in backend (jar file)  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-08T17:56:25Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* General prep steps */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
== '''General prep steps''' ==&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
#* when using an existing VM image : &lt;br /&gt;
#** fix network issue (remove old card settings in ''/etc/udev/rules.d/70-persistent-net.rules'' and reboot)&lt;br /&gt;
#** set new machine name (in ''/etc/hostname'')&lt;br /&gt;
#** check if apache2 starts with an error message or not (for a fix see [[Setting up geonode]] &amp;gt; Basic Install for GeoNode v. 2.0)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== '''Install for Calgary''' ==&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end point (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put in apache's ''/var/www/'' (i.e. /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; plus adding this to the layer selection plus as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get backend code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = on for each model =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. However, I am not having the sources right now, so the Walkshed request is send to the GISciencegroup server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [https://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; &lt;br /&gt;
#** it may be necessary to change run.py (causes error at the moment) since I am not having gnome-terminal available via command line. At the moment I am starting the scripts using commandline &amp;lt;code&amp;gt;python xxx.py &amp;amp;&amp;lt;/code&amp;gt;. &lt;br /&gt;
#**# the Management Service (for pedestrian network) will listen on http://0.0.0.0:8363/&lt;br /&gt;
#**# the Crime Service will listen on http://0.0.0.0:8366/&lt;br /&gt;
#**# the Aggregation Service will listen on http://0.0.0.0:8364/&lt;br /&gt;
#**# the POI Service will listen on http://0.0.0.0:8365/&lt;br /&gt;
#** My running processes I can see then with &amp;lt;code&amp;gt;ps -u ssteinig&amp;lt;/code&amp;gt;&lt;br /&gt;
#** ToDo: check if it is possible to use &amp;quot;subprocess.Popen&amp;quot; or &amp;quot;Multiprocess&amp;quot; (see examples on stackoverflow and [http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args here])&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test if Calgary scenario works =&amp;gt; see next part&lt;br /&gt;
== '''Testing Calgary scenario''' ==&lt;br /&gt;
# choosen params: &lt;br /&gt;
#* pos lat = 51.05747321278561&lt;br /&gt;
#* pos lon = -114.0794563293457&lt;br /&gt;
#* 15 min walkshed&lt;br /&gt;
#* walkspeed 1.38 m/sec&lt;br /&gt;
# Then this is how the web browser client request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
# the subsequent call to the managment service would be: &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=Execute&amp;amp;Version=1.0.0&amp;amp;Identifier=gs:Management&amp;amp;DataInputs=StartPoint=51.0574732128,-114.079456329;WalkingTimePeriod=15;WalkingSpeed=1.38&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''Routing/OTP WPS''': this call will return the pedestrian walkshed as JSON object &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Walkshed_Pedestrian&amp;amp;datainputs=StartPoint=51.0574732128,-114.079456329;WalkingPeriod=15;WalkingSpeed=1.38;WalkshedOutput=SHED&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''Crime WPS''': for the same data and the pedestrian-network model we receive a list of crime features, with the following call: &lt;br /&gt;
#** Calgary server &amp;lt;pre&amp;gt;http://136.159.122.90:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed=%7B%22type%22:%22Polygon%22,%22coordinates%22:%5B%5B%5B-114.09364571378056,51.057144582993836%5D,%5B-114.09286815708892,51.05359381755474%5D,%5B-114.09101115708,51.050834058520664%5D,%5B-114.09075927937053,51.05080998647081%5D,%5B-114.0870286,51.0516827%5D,%5B-114.08586777200182,51.04970977429437%5D,%5B-114.0835059,51.0489783%5D,%5B-114.08184778623112,51.0498709384076%5D,%5B-114.081181,51.0536508%5D,%5B-114.0793914,51.0547065%5D,%5B-114.077687,51.0557314%5D,%5B-114.0756248,51.0568823%5D,%5B-114.0750158,51.0570965%5D,%5B-114.0736901,51.0573512%5D,%5B-114.06926177015508,51.055915080229724%5D,%5B-114.06619893997784,51.05694155563417%5D,%5B-114.06579011626843,51.0581622658825%5D,%5B-114.067673398873,51.058916548778726%5D,%5B-114.07143185670641,51.061423362491404%5D,%5B-114.07184987616904,51.06168921938163%5D,%5B-114.0741837,51.0613545%5D,%5B-114.07794224224338,51.06228401160695%5D,%5B-114.07918450576179,51.06260346516831%5D,%5B-114.07993046849634,51.06280359284396%5D,%5B-114.08066137191179,51.062350982627464%5D,%5B-114.08244401432806,51.06127600012983%5D,%5B-114.08582266933304,51.061346817139835%5D,%5B-114.08616082731021,51.06129711945887%5D,%5B-114.0888935,51.0575163%5D,%5B-114.09170271289915,51.05843118482227%5D,%5B-114.09364571378056,51.057144582993836%5D%5D%5D%7D&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** Stgo test server &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** if the python server/script is started, the crime data can also be retrieved using the following from the machines web browser itself(I think so...):&amp;lt;pre&amp;gt;http://127.0.0.1:8366/crime?walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Modify code for Santiago''' ==&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* OTP location in backend (jar file)  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-08T16:42:25Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Testing Calgary scenario */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
== '''General prep steps''' ==&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== '''Install for Calgary''' ==&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end point (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put in apache's ''/var/www/'' (i.e. /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; plus adding this to the layer selection plus as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get backend code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = on for each model =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. However, I am not having the sources right now, so the Walkshed request is send to the GISciencegroup server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [https://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; &lt;br /&gt;
#** it may be necessary to change run.py (causes error at the moment) since I am not having gnome-terminal available via command line. At the moment I am starting the scripts using commandline &amp;lt;code&amp;gt;python xxx.py &amp;amp;&amp;lt;/code&amp;gt;. &lt;br /&gt;
#**# the Management Service (for pedestrian network) will listen on http://0.0.0.0:8363/&lt;br /&gt;
#**# the Crime Service will listen on http://0.0.0.0:8366/&lt;br /&gt;
#**# the Aggregation Service will listen on http://0.0.0.0:8364/&lt;br /&gt;
#**# the POI Service will listen on http://0.0.0.0:8365/&lt;br /&gt;
#** My running processes I can see then with &amp;lt;code&amp;gt;ps -u ssteinig&amp;lt;/code&amp;gt;&lt;br /&gt;
#** ToDo: check if it is possible to use &amp;quot;subprocess.Popen&amp;quot; or &amp;quot;Multiprocess&amp;quot; (see examples on stackoverflow and [http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args here])&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test if Calgary scenario works =&amp;gt; see next part&lt;br /&gt;
== '''Testing Calgary scenario''' ==&lt;br /&gt;
# choosen params: &lt;br /&gt;
#* pos lat = 51.05747321278561&lt;br /&gt;
#* pos lon = -114.0794563293457&lt;br /&gt;
#* 15 min walkshed&lt;br /&gt;
#* walkspeed 1.38 m/sec&lt;br /&gt;
# Then this is how the web browser client request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
# the subsequent call to the managment service would be: &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=Execute&amp;amp;Version=1.0.0&amp;amp;Identifier=gs:Management&amp;amp;DataInputs=StartPoint=51.0574732128,-114.079456329;WalkingTimePeriod=15;WalkingSpeed=1.38&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''Routing/OTP WPS''': this call will return the pedestrian walkshed as JSON object &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Walkshed_Pedestrian&amp;amp;datainputs=StartPoint=51.0574732128,-114.079456329;WalkingPeriod=15;WalkingSpeed=1.38;WalkshedOutput=SHED&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''Crime WPS''': for the same data and the pedestrian-network model we receive a list of crime features, with the following call: &lt;br /&gt;
#** Calgary server &amp;lt;pre&amp;gt;http://136.159.122.90:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed=%7B%22type%22:%22Polygon%22,%22coordinates%22:%5B%5B%5B-114.09364571378056,51.057144582993836%5D,%5B-114.09286815708892,51.05359381755474%5D,%5B-114.09101115708,51.050834058520664%5D,%5B-114.09075927937053,51.05080998647081%5D,%5B-114.0870286,51.0516827%5D,%5B-114.08586777200182,51.04970977429437%5D,%5B-114.0835059,51.0489783%5D,%5B-114.08184778623112,51.0498709384076%5D,%5B-114.081181,51.0536508%5D,%5B-114.0793914,51.0547065%5D,%5B-114.077687,51.0557314%5D,%5B-114.0756248,51.0568823%5D,%5B-114.0750158,51.0570965%5D,%5B-114.0736901,51.0573512%5D,%5B-114.06926177015508,51.055915080229724%5D,%5B-114.06619893997784,51.05694155563417%5D,%5B-114.06579011626843,51.0581622658825%5D,%5B-114.067673398873,51.058916548778726%5D,%5B-114.07143185670641,51.061423362491404%5D,%5B-114.07184987616904,51.06168921938163%5D,%5B-114.0741837,51.0613545%5D,%5B-114.07794224224338,51.06228401160695%5D,%5B-114.07918450576179,51.06260346516831%5D,%5B-114.07993046849634,51.06280359284396%5D,%5B-114.08066137191179,51.062350982627464%5D,%5B-114.08244401432806,51.06127600012983%5D,%5B-114.08582266933304,51.061346817139835%5D,%5B-114.08616082731021,51.06129711945887%5D,%5B-114.0888935,51.0575163%5D,%5B-114.09170271289915,51.05843118482227%5D,%5B-114.09364571378056,51.057144582993836%5D%5D%5D%7D&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** Stgo test server &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** if the python server/script is started, the crime data can also be retrieved using the following from the machines web browser itself(I think so...):&amp;lt;pre&amp;gt;http://127.0.0.1:8366/crime?walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Modify code for Santiago''' ==&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* OTP location in backend (jar file)  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-08T16:40:39Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Install for Calgary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
== '''General prep steps''' ==&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== '''Install for Calgary''' ==&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end point (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put in apache's ''/var/www/'' (i.e. /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; plus adding this to the layer selection plus as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get backend code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = on for each model =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. However, I am not having the sources right now, so the Walkshed request is send to the GISciencegroup server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [https://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; &lt;br /&gt;
#** it may be necessary to change run.py (causes error at the moment) since I am not having gnome-terminal available via command line. At the moment I am starting the scripts using commandline &amp;lt;code&amp;gt;python xxx.py &amp;amp;&amp;lt;/code&amp;gt;. &lt;br /&gt;
#**# the Management Service (for pedestrian network) will listen on http://0.0.0.0:8363/&lt;br /&gt;
#**# the Crime Service will listen on http://0.0.0.0:8366/&lt;br /&gt;
#**# the Aggregation Service will listen on http://0.0.0.0:8364/&lt;br /&gt;
#**# the POI Service will listen on http://0.0.0.0:8365/&lt;br /&gt;
#** My running processes I can see then with &amp;lt;code&amp;gt;ps -u ssteinig&amp;lt;/code&amp;gt;&lt;br /&gt;
#** ToDo: check if it is possible to use &amp;quot;subprocess.Popen&amp;quot; or &amp;quot;Multiprocess&amp;quot; (see examples on stackoverflow and [http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args here])&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test if Calgary scenario works =&amp;gt; see next part&lt;br /&gt;
== '''Testing Calgary scenario''' ==&lt;br /&gt;
# choosen params: &lt;br /&gt;
#* pos lat = 51.05747321278561&lt;br /&gt;
#* pos lon = -114.0794563293457&lt;br /&gt;
#* 15 min walkshed&lt;br /&gt;
#* walkspeed 1.38 m/sec&lt;br /&gt;
# Then this is how the web browser client request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
# the subsequent call to the managment service would be: &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=Execute&amp;amp;Version=1.0.0&amp;amp;Identifier=gs:Management&amp;amp;DataInputs=StartPoint=51.0574732128,-114.079456329;WalkingTimePeriod=15;WalkingSpeed=1.38&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''Routing/OTP WPS''': this call will return the pedestrian walkshed as JSON object &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Walkshed_Pedestrian&amp;amp;datainputs=StartPoint=51.0574732128,-114.079456329;WalkingPeriod=15;WalkingSpeed=1.38;WalkshedOutput=SHED&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* '''Crime WPS''': for the same data and the pedestrian-network model we receive a list of crime features, with the following call: &lt;br /&gt;
#** Calgary server &amp;lt;pre&amp;gt;http://136.159.122.90:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed=%7B%22type%22:%22Polygon%22,%22coordinates%22:%5B%5B%5B-114.09364571378056,51.057144582993836%5D,%5B-114.09286815708892,51.05359381755474%5D,%5B-114.09101115708,51.050834058520664%5D,%5B-114.09075927937053,51.05080998647081%5D,%5B-114.0870286,51.0516827%5D,%5B-114.08586777200182,51.04970977429437%5D,%5B-114.0835059,51.0489783%5D,%5B-114.08184778623112,51.0498709384076%5D,%5B-114.081181,51.0536508%5D,%5B-114.0793914,51.0547065%5D,%5B-114.077687,51.0557314%5D,%5B-114.0756248,51.0568823%5D,%5B-114.0750158,51.0570965%5D,%5B-114.0736901,51.0573512%5D,%5B-114.06926177015508,51.055915080229724%5D,%5B-114.06619893997784,51.05694155563417%5D,%5B-114.06579011626843,51.0581622658825%5D,%5B-114.067673398873,51.058916548778726%5D,%5B-114.07143185670641,51.061423362491404%5D,%5B-114.07184987616904,51.06168921938163%5D,%5B-114.0741837,51.0613545%5D,%5B-114.07794224224338,51.06228401160695%5D,%5B-114.07918450576179,51.06260346516831%5D,%5B-114.07993046849634,51.06280359284396%5D,%5B-114.08066137191179,51.062350982627464%5D,%5B-114.08244401432806,51.06127600012983%5D,%5B-114.08582266933304,51.061346817139835%5D,%5B-114.08616082731021,51.06129711945887%5D,%5B-114.0888935,51.0575163%5D,%5B-114.09170271289915,51.05843118482227%5D,%5B-114.09364571378056,51.057144582993836%5D%5D%5D%7D&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** Stgo test server &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** if the python server/script is started, the crime data can be also be called using &amp;lt;pre&amp;gt;http://127.0.0.1:8366/crime?walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Modify code for Santiago''' ==&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* OTP location in backend (jar file)  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-08T16:29:55Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Install for Calgary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
== '''General prep steps''' ==&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== '''Install for Calgary''' ==&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end point (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put in apache's ''/var/www/'' (i.e. /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; plus adding this to the layer selection plus as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get backend code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = on for each model =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. However, I am not having the sources right now, so the Walkshed request is send to the GISciencegroup server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [https://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; &lt;br /&gt;
#** it may be necessary to change run.py (causes error at the moment) since I am not having gnome-terminal available via command line. At the moment I am starting the scripts using commandline &amp;lt;code&amp;gt;python xxx.py &amp;amp;&amp;lt;/code&amp;gt;. &lt;br /&gt;
#**# the Management Service (for pedestrian network) will listen on http://0.0.0.0:8363/&lt;br /&gt;
#**# the Crime Service will listen on http://0.0.0.0:8366/&lt;br /&gt;
#**# the Aggregation Service will listen on http://0.0.0.0:8364/&lt;br /&gt;
#**# the POI Service will listen on http://0.0.0.0:8365/&lt;br /&gt;
#** My running processes I can see then with &amp;lt;code&amp;gt;ps -u ssteinig&amp;lt;/code&amp;gt;&lt;br /&gt;
#** ToDo: check if it is possible to use &amp;quot;subprocess.Popen&amp;quot; or &amp;quot;Multiprocess&amp;quot; (see examples on stackoverflow and [http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args here])&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test ic Calgary works&lt;br /&gt;
#* this is how a request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* this will do a call to the pedestrian-network '''crime WPS''' and return features in the given walkshed: &lt;br /&gt;
#** Calgary server &amp;lt;pre&amp;gt;http://136.159.122.90:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed=%7B%22type%22:%22Polygon%22,%22coordinates%22:%5B%5B%5B-114.09364571378056,51.057144582993836%5D,%5B-114.09286815708892,51.05359381755474%5D,%5B-114.09101115708,51.050834058520664%5D,%5B-114.09075927937053,51.05080998647081%5D,%5B-114.0870286,51.0516827%5D,%5B-114.08586777200182,51.04970977429437%5D,%5B-114.0835059,51.0489783%5D,%5B-114.08184778623112,51.0498709384076%5D,%5B-114.081181,51.0536508%5D,%5B-114.0793914,51.0547065%5D,%5B-114.077687,51.0557314%5D,%5B-114.0756248,51.0568823%5D,%5B-114.0750158,51.0570965%5D,%5B-114.0736901,51.0573512%5D,%5B-114.06926177015508,51.055915080229724%5D,%5B-114.06619893997784,51.05694155563417%5D,%5B-114.06579011626843,51.0581622658825%5D,%5B-114.067673398873,51.058916548778726%5D,%5B-114.07143185670641,51.061423362491404%5D,%5B-114.07184987616904,51.06168921938163%5D,%5B-114.0741837,51.0613545%5D,%5B-114.07794224224338,51.06228401160695%5D,%5B-114.07918450576179,51.06260346516831%5D,%5B-114.07993046849634,51.06280359284396%5D,%5B-114.08066137191179,51.062350982627464%5D,%5B-114.08244401432806,51.06127600012983%5D,%5B-114.08582266933304,51.061346817139835%5D,%5B-114.08616082731021,51.06129711945887%5D,%5B-114.0888935,51.0575163%5D,%5B-114.09170271289915,51.05843118482227%5D,%5B-114.09364571378056,51.057144582993836%5D%5D%5D%7D&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** Stgo test server &amp;lt;pre&amp;gt;http://146.155.17.113:17088/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=execute&amp;amp;identifier=gs:Crime_Pedestrian&amp;amp;datainputs=Walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
#** if the python server/script is started, the crime data can be also be called using &amp;lt;pre&amp;gt;http://127.0.0.1:8366/crime?walkshed={%22type%22:%22Polygon%22,%22coordinates%22:[[[-114.09364571378056,51.057144582993836],[-114.09286815708892,51.05359381755474],[-114.09101115708,51.050834058520664],[-114.09075927937053,51.05080998647081],[-114.0870286,51.0516827],[-114.08586777200182,51.04970977429437],[-114.0835059,51.0489783],[-114.08184778623112,51.0498709384076],[-114.081181,51.0536508],[-114.0793914,51.0547065],[-114.077687,51.0557314],[-114.0756248,51.0568823],[-114.0750158,51.0570965],[-114.0736901,51.0573512],[-114.06926177015508,51.055915080229724],[-114.06619893997784,51.05694155563417],[-114.06579011626843,51.0581622658825],[-114.067673398873,51.058916548778726],[-114.07143185670641,51.061423362491404],[-114.07184987616904,51.06168921938163],[-114.0741837,51.0613545],[-114.07794224224338,51.06228401160695],[-114.07918450576179,51.06260346516831],[-114.07993046849634,51.06280359284396],[-114.08066137191179,51.062350982627464],[-114.08244401432806,51.06127600012983],[-114.08582266933304,51.061346817139835],[-114.08616082731021,51.06129711945887],[-114.0888935,51.0575163],[-114.09170271289915,51.05843118482227],[-114.09364571378056,51.057144582993836]]]}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Modify code for Santiago''' ==&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* OTP location in backend (jar file)  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-04T21:24:24Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Modify code for Santiago */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
== '''General prep steps''' ==&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== '''Install for Calgary''' ==&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end point (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put in apache's ''/var/www/'' (i.e. /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; plus adding this to the layer selection plus as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get backend code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = on for each model =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. However, I am not having the sources right now, so the Walkshed request is send to the GISciencegroup server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [https://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; &lt;br /&gt;
#** it may be necessary to change run.py (causes error at the moment) since I am not having gnome-terminal available via command line. At the moment I am starting the scripts using commandline &amp;lt;code&amp;gt;python xxx.py &amp;amp;&amp;lt;/code&amp;gt;. &lt;br /&gt;
#**# the Management Service (for pedestrian network) will listen on http://0.0.0.0:8363/&lt;br /&gt;
#**# the Crime Service will listen on http://0.0.0.0:8366/&lt;br /&gt;
#**# the Aggregation Service will listen on http://0.0.0.0:8364/&lt;br /&gt;
#**# the POI Service will listen on http://0.0.0.0:8365/&lt;br /&gt;
#** My running processes I can see then with &amp;lt;code&amp;gt;ps -u ssteinig&amp;lt;/code&amp;gt;&lt;br /&gt;
#** ToDo: check if it is possible to use &amp;quot;subprocess.Popen&amp;quot; or &amp;quot;Multiprocess&amp;quot; (see examples on stackoverflow and [http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args here])&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test ic Calgary works&lt;br /&gt;
#* this is how a request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Modify code for Santiago''' ==&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* OTP location in backend (jar file)  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-04T21:19:17Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Install for Calgary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
== '''General prep steps''' ==&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== '''Install for Calgary''' ==&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end point (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put in apache's ''/var/www/'' (i.e. /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; plus adding this to the layer selection plus as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get backend code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = on for each model =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. However, I am not having the sources right now, so the Walkshed request is send to the GISciencegroup server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [https://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; &lt;br /&gt;
#** it may be necessary to change run.py (causes error at the moment) since I am not having gnome-terminal available via command line. At the moment I am starting the scripts using commandline &amp;lt;code&amp;gt;python xxx.py &amp;amp;&amp;lt;/code&amp;gt;. &lt;br /&gt;
#**# the Management Service (for pedestrian network) will listen on http://0.0.0.0:8363/&lt;br /&gt;
#**# the Crime Service will listen on http://0.0.0.0:8366/&lt;br /&gt;
#**# the Aggregation Service will listen on http://0.0.0.0:8364/&lt;br /&gt;
#**# the POI Service will listen on http://0.0.0.0:8365/&lt;br /&gt;
#** My running processes I can see then with &amp;lt;code&amp;gt;ps -u ssteinig&amp;lt;/code&amp;gt;&lt;br /&gt;
#** ToDo: check if it is possible to use &amp;quot;subprocess.Popen&amp;quot; or &amp;quot;Multiprocess&amp;quot; (see examples on stackoverflow and [http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args here])&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test ic Calgary works&lt;br /&gt;
#* this is how a request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Modify code for Santiago''' ==&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-04T21:14:42Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Install for Calgary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
== '''General prep steps''' ==&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== '''Install for Calgary''' ==&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end point (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put in apache's ''/var/www/'' (i.e. /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; plus adding this to the layer selection plus as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get backend code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = on for each model =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. However, I am not having the sources right now, so the Walkshed request is send to the GISciencegroup server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [https://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; &lt;br /&gt;
#** it may be necessary to change in run.py since I am not having gnome-terminal available via command line. At the moment I am starting the scripts using commandline &amp;lt;code&amp;gt;python xxx.py &amp;amp;&amp;lt;/code&amp;gt;. &lt;br /&gt;
#**# the Management Service (for pedestrian network) will listen on http://0.0.0.0:8363/&lt;br /&gt;
#**# the Crime Service will listen on http://0.0.0.0:8366/&lt;br /&gt;
#**# the Aggregation Service will listen on http://0.0.0.0:8364/&lt;br /&gt;
#**# the POI Service will listen on http://0.0.0.0:8365/&lt;br /&gt;
#** My running processes I can see then with &amp;lt;code&amp;gt;ps -u ssteinig&amp;lt;/code&amp;gt;&lt;br /&gt;
#** ToDo: check if it is possible to use &amp;quot;subprocess.Popen&amp;quot; or &amp;quot;Multiprocess&amp;quot; (see examples on stackoverflow and [http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args here])&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test ic Calgary works&lt;br /&gt;
#* this is how a request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Modify code for Santiago''' ==&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-04T21:14:11Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Install for Calgary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
== '''General prep steps''' ==&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== '''Install for Calgary''' ==&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end point (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put in apache's ''/var/www/'' (i.e. /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; plus adding this to the layer selection plus as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get backend code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = on for each model =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. However, I am not having the sources right now, so the Walkshed request is send to the GISciencegroup server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [https://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; &lt;br /&gt;
#** it may be necessary to change in run.py since I am not having gnome-terminal available via command line. At the moment I am starting the scripts using commandline &amp;lt;code&amp;gt;python xxx.py &amp;amp;&amp;lt;/code&amp;gt;. &lt;br /&gt;
#** the Management Service (for pedestrian network) will listen on http://0.0.0.0:8363/&lt;br /&gt;
#** the Crime Service will listen on http://0.0.0.0:8366/&lt;br /&gt;
#** the Aggregation Service will listen on http://0.0.0.0:8364/&lt;br /&gt;
#** the POI Service will listen on http://0.0.0.0:8365/&lt;br /&gt;
#** My running processes I can see then with &amp;lt;code&amp;gt;ps -u ssteinig&amp;lt;/code&amp;gt;&lt;br /&gt;
#** ToDo: check if it is possible to use &amp;quot;subprocess.Popen&amp;quot; or &amp;quot;Multiprocess&amp;quot; (see examples on stackoverflow and [http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args here])&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test ic Calgary works&lt;br /&gt;
#* this is how a request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Modify code for Santiago''' ==&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-04T21:10:32Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Install for Calgary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
== '''General prep steps''' ==&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== '''Install for Calgary''' ==&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end point (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put in apache's ''/var/www/'' (i.e. /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; plus adding this to the layer selection plus as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get backend code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = on for each model =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. However, I am not having the sources right now, so the Walkshed request is send to the GISciencegroup server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [https://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; &lt;br /&gt;
#** it may be necessary to change in run.py using &amp;lt;code&amp;gt;subprocess.Popen(xxx)&amp;lt;/code&amp;gt; or something (see [http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args here]). At the moment I am starting the scripts using commandline &amp;lt;code&amp;gt;python xxx.py &amp;amp;&amp;lt;/code&amp;gt;. &lt;br /&gt;
#** the Management Service (for pedestrian network) will listen on http://0.0.0.0:8363/&lt;br /&gt;
#** the Crime Service will listen on http://0.0.0.0:8366/&lt;br /&gt;
#** the Aggregation Service will listen on http://0.0.0.0:8364/&lt;br /&gt;
#** the POI Service will listen on http://0.0.0.0:8365/&lt;br /&gt;
#** My running processes I can see then with &amp;lt;code&amp;gt;ps -u ssteinig&amp;lt;/code&amp;gt;:&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test ic Calgary works&lt;br /&gt;
#* this is how a request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Modify code for Santiago''' ==&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-04T21:03:03Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
== '''General prep steps''' ==&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== '''Install for Calgary''' ==&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end point (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put in apache's ''/var/www/'' (i.e. /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; plus adding this to the layer selection plus as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get backend code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = on for each model =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. However, I am not having the sources right now, so the Walkshed request is send to the GISciencegroup server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [https://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; &lt;br /&gt;
#** it may be necessary to change in run.py to simply &amp;lt;code&amp;gt;subprocess.Popen(&amp;quot;python AggregationService.py 1&amp;quot;)&amp;lt;/code&amp;gt; (took this from [http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args here])&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test ic Calgary works&lt;br /&gt;
#* this is how a request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Modify code for Santiago''' ==&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-04T20:19:48Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
'''General prep steps'''&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
'''Install for Calgary'''&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end point (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put in apache's ''/var/www/'' (i.e. /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; plus adding this to the layer selection plus as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get backend code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = on for each model =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. However, I am not having the sources right now, so the Walkshed request is send to the GISciencegroup server. &lt;br /&gt;
#* install &amp;quot;[http://initd.org/psycopg/install/ psycopg2]&amp;quot; python modul which allows access to PostgrSQL &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, [https://groups.google.com/forum/#!topic/django-users/IfL_uhqFyME install before] &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot;)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; =&amp;gt; it may be necessary to change in run.py to simply &amp;lt;code&amp;gt;os.system(&amp;quot;python AggregationService.py 1&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test ic Calgary works&lt;br /&gt;
#* this is how a request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Modify code for Santiago'''&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-04T19:50:05Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
'''General prep steps'''&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
'''Install for Calgary'''&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end point (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put in apache's ''/var/www/'' (i.e. /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; plus adding this to the layer selection plus as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get backend code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = on for each model =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. However, I am not having the sources right now, so the Walkshed request is send to the GISciencegroup server. &lt;br /&gt;
#* install &amp;quot;psycopg2&amp;quot; python modul which allows access to PostgrSQL &amp;lt;code&amp;gt;pip install psycopg2&amp;lt;/code&amp;gt; (for that, install &amp;quot;python-dev&amp;quot; and &amp;quot;libpq-dev&amp;quot; before)&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; =&amp;gt; it may be necessary to change in run.py to simply &amp;lt;code&amp;gt;os.system(&amp;quot;python AggregationService.py 1&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test ic Calgary works&lt;br /&gt;
#* this is how a request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Modify code for Santiago'''&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-04T19:32:12Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
'''General prep steps'''&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
'''Install for Calgary'''&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end point (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put in apache's ''/var/www/'' (i.e. /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; plus adding this to the layer selection plus as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get backend code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = on for each model =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. However, I am not having the sources right now, so the Walkshed request is send to the GISciencegroup server. &lt;br /&gt;
#* install &amp;quot;psycopg2&amp;quot; python modul which allows access to PostgrSQL&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot; =&amp;gt; it may be necessary to change in run.py to simply &amp;lt;code&amp;gt;os.system(&amp;quot;python AggregationService.py 1&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
#* Note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test ic Calgary works&lt;br /&gt;
#* this is how a request for the pedestrian network model for calgary looks like: &amp;lt;pre&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Modify code for Santiago'''&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-04T19:03:59Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
'''General prep steps'''&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
'''Install for Calgary'''&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end point (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put in apache's ''/var/www/'' (i.e. /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; plus adding this to the layer selection plus as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get backend code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = on for each model =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. However, I am not having the sources right now, so the Walkshed request is send to the GISciencegroup server. &lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test ic Calgary works&lt;br /&gt;
#* this is how a request for the pedestrian network model for calgary looks like: &amp;lt;code&amp;gt;GET call_wps.php?wps=pedestrian&amp;amp;start_point=51.05747321278561,-114.0794563293457&amp;amp;walking_time_period=15&amp;amp;walking_speed=1.38&amp;amp;distance_decay_function=false&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Modify code for Santiago'''&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-04T18:29:18Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
'''General prep steps'''&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
'''Install for Calgary'''&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end point (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put in apache's ''/var/www/'' (i.e. /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; plus adding this to the layer selection plus as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get backend code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = on for each model =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* next I would also need modify the OpenTripPlaner URL in in the jar of the WPS module = model. However, I am not having the sources right now, so the Walkshed request is send to the GISciencegroup server. &lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test ic Calgary works&lt;br /&gt;
&lt;br /&gt;
'''Modify code for Santiago'''&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/About_Me</id>
		<title>About Me</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/About_Me"/>
				<updated>2014-04-04T18:09:46Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: /* Publications */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Personal Info ==&lt;br /&gt;
[[File:Stefan_puerto_madryn_small.jpg‎|200px|thumb|right|yep that's me in Argentina 2010]]&lt;br /&gt;
'''Stefan Steiniger'''&lt;br /&gt;
* currently PostDoc at Pontificia Universidad Catolica de Chile - Dept. of Transportation Eng. and Logistics with the [http://www.cedeus.cl CEDEUS] project&lt;br /&gt;
* entrepreneur/consultant at GEO Steiniger Ltda&lt;br /&gt;
* 3 PostDocs in Geography (2008/9), and Geomatics Engineering (2009/10, 2011/12), at the [http://en.wikipedia.org/wiki/University_of_Calgary University of Calgary] (CAN)&lt;br /&gt;
* PhD in Geography (2007), [http://en.wikipedia.org/wiki/University_of_Zurich University of Zurich] (CH) &lt;br /&gt;
* Dipl. Ing. (MSc) in Geodesy (2003), [http://en.wikipedia.org/wiki/Technische_Universit%C3%A4t_Dresden Technische Universität Dresden] (GER) &lt;br /&gt;
&lt;br /&gt;
'''contact''' 	&lt;br /&gt;
* sstein[-at-]geo.uzh.ch&lt;br /&gt;
* perriger[-at-]gmx.de&lt;br /&gt;
* current location: Santiago de Chile (CHL)&lt;br /&gt;
&lt;br /&gt;
'''interests'''&lt;br /&gt;
* areas I have touched in the past 12 years or so: geographical analysis, visualization, cartography, geographic information systems (GIS), (Java) programming, computational geometry, pattern recognition and data mining, machine learning, agent based systems, optimization, location based services (LBS), (land) surveying, geomatics, software development, user centered design, urban planning, landscape ecology, wildlife ecology, remote sensing, participatory GIS, social networking, writing articles, e-learning,&lt;br /&gt;
* and less so: spatial databases, visual perception and cognition&lt;br /&gt;
&lt;br /&gt;
'''bio-sketch'''&lt;br /&gt;
* From July 2011 unti December 2012 I have been working with Dr. Andrew Hunter at the [http://en.wikipedia.org/wiki/University_of_Calgary University of Calgary] (CAN), on the [http://www.planyourplace.ca PlanYourPlace] project,&lt;br /&gt;
* I took a break from research from October 2010 to June 2011 and went backpacking in Argentina, Chile and Bolivia, to get to know these beautiful countries, and to learn Spanish from scratch. &lt;br /&gt;
* Previously from Sept. 2009 to Sept. 2010 I was within the group of [http://people.ucalgary.ca/~ahunter/ Dr. Andrew Hunter] at the University of Calgary (UofC) as a PostDoctoral Fellow developing tools and methods for [[Movement Analysis]] (i.e. Home Range analysis) of Grizzly Bears (based on GPS collar data). &lt;br /&gt;
* I also did research as PostDoctoral Fellow in Landscape Ecology and object based image analysis with [http://www.geog.ucalgary.ca/index.cfm?page=people&amp;amp;style=2&amp;amp;this=173 Dr. Geoffrey J. Hay]  from Feb 2008 to July 2009 at the UofC.&lt;br /&gt;
* From 2004 until 2007 I did my PhD research on Automated Map Generalization within the [http://www.geo.uzh.ch/gis/aboutus/ GIS Division] of the University of Zurich, under supervision of [http://www.geo.uzh.ch/~weibel/ Prof. Dr. Robert Weibel].&lt;br /&gt;
* From 2005 until my travels in October 2010, I  was project leader of the JUMP Pilot Project which maintains the free desktop GIS [http://www.openjump.org/ OpenJUMP].&lt;br /&gt;
&lt;br /&gt;
'''internships'''&lt;br /&gt;
* [http://www.gef.de/gef_ris_en/index.html GEF RIS AG] - now part of [http://www.bentley.com/en-US/Markets/Geospatial/Geospatial+Overview.htm Bentley Systems - Geospatial], Leimen (GER) - 6 months in 2003/2004&lt;br /&gt;
* [http://www.centroid.fi/ Centroid OY] - now part of [http://www.sito.fi/ SITO] and [http://www.inplace.fi/ InPlace], Espoo (FI) - 7 months in 2001/2002&lt;br /&gt;
&lt;br /&gt;
== Research Interests ==&lt;br /&gt;
[[File:Dataenrichment_v4_150g.jpg|300px|thumb|right|Data enrichment for map generalization]]&lt;br /&gt;
before you start reading this, I like to note that this section needs a '''rewrite'''...&lt;br /&gt;
&lt;br /&gt;
My research interests are focusing on three areas within GISystems &amp;amp; Science and its application:&lt;br /&gt;
&lt;br /&gt;
# automated cartography &amp;amp; map generalization,&lt;br /&gt;
# development of spatial analysis algorithms for landscape and wildlife ecology,&lt;br /&gt;
# participatory web platforms for urban planning, and&lt;br /&gt;
# free and open source GIS software developments and adoption in teaching, research, and business.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1. PhD project DEGEN'''&lt;br /&gt;
[[File:Ojhorae.jpg‎|300px|thumb|right|OpenJUMP HoRAE screenshot]]&lt;br /&gt;
My '''PhD project''' at the University of Zurich covered one part of the [http://www.geo.uzh.ch/gis/research/cartgen/ DEGEN project] - Data Enrichment for automated map GENeralization - that was funded by the Swiss National Science Foundation (SNF). The final thesis was entitled &amp;quot;'''Enabling Pattern-Aware Automated Map Generalization'''&amp;quot; ([http://www.geo.uzh.ch/~sstein/finalpub/diss_sstein_lowres_standard_A4_nov2007.pdf pdf-small]; [http://www.geo.uzh.ch/~sstein/finalpub/diss_sstein_medres_pdfa1b2005_cmyk_A4_nov2007.pdf pdf-large]), and covered the following topics:&lt;br /&gt;
&lt;br /&gt;
* perception based pattern recognition approaches for the structural analysis of topographic and categorical (vector) maps&lt;br /&gt;
* cartometrics and map object relations&lt;br /&gt;
* discriminant analysis algorithms for urban structure recognition&lt;br /&gt;
* map generalisation modeling and control: Multi-Agent-Systems, Genetic Algorithms&lt;br /&gt;
* map generalisation and signal processing algorithms: Snakes, TAFUS, Wavelets&lt;br /&gt;
&lt;br /&gt;
The second part of the project was done by [http://www.geo.uzh.ch/~neun/ Moritz Neun] who developed a novel web service for web-based map generalization and GIS-(analysis) called [http://webgen.geo.uzh.ch WebGen] (see also [http://aci.ign.fr/web_service.php here])&lt;br /&gt;
&lt;br /&gt;
'''2. PostDoc project PAGEVIS-LD'''&lt;br /&gt;
&lt;br /&gt;
These research topics mentioned above are also covered within my project &amp;quot;''PAGEVIS-LD - Pattern-Aware GEneralisation and VISualization of Land-use and Land-cover Data''&amp;quot;, carried out at the University of Calgary (2008-2009).&lt;br /&gt;
[[File:wyp_screenshot.png‎|300px|thumb|right|WalkYourPlace tool screenshot]]&lt;br /&gt;
'''3. PostDoc project OpenJUMP-HoRAE'''&lt;br /&gt;
&lt;br /&gt;
I also gained an interest in [http://www.geo.unizh.ch/publications/sstein/sstein_freegitools_ecoinf2009.pdf GIS application for Landscape Ecology] and '''Animal Movement Analysis'''. Hence, I was working with Andrew Hunter on topics related to the [http://foothillsresearchinstitute.ca/pages/ProgramsGrizzly_Bear/default.aspx Foothills Research Institute Grizzly Bear Program] to develop GI tools for home range analysis based on GPS collar data.&lt;br /&gt;
&lt;br /&gt;
'''4. PostDoc project PlanYourPlace'''&lt;br /&gt;
&lt;br /&gt;
My latest work on the [http://www.planyourplace.ca PlanYourPlace] project went into a different direction: the development of a participatory/social web platform to be used in community/urban planning. Our results and  efforts on developing the base platform and urban access evaluation tools ([http://gisciencegroup.ucalgary.ca/wiki/Accessibility_Assessment WalkYourPlace]) are published in papers and worksop contributions - that can be found below.&lt;br /&gt;
&lt;br /&gt;
'''5. Other work'''&lt;br /&gt;
&lt;br /&gt;
Most of the developments for my research have been done with Open Source GIS tools and libraries (especially with [http://www.openjump.org OpenJUMP GIS]; see also below).&lt;br /&gt;
&lt;br /&gt;
Apart from the topics above I also touched other topics in GIS research, such as&lt;br /&gt;
&lt;br /&gt;
* Urban built-up patterns and their correlation with socio-economic data (supervised student project)&lt;br /&gt;
* Morphologic and vegetation dependent filtering of LIDAR data (supervides student project)&lt;br /&gt;
* Location-Based Services&lt;br /&gt;
* Optimal Xylomigrant placement constrained by mirco-scale traffic behaviour. :o)&lt;br /&gt;
&lt;br /&gt;
== Publications ==&lt;br /&gt;
&lt;br /&gt;
'''journal articles and book chapters (peer-reviewed) : 13''' &amp;lt;br&amp;gt;&lt;br /&gt;
please send an email if you are interested in the manuscript. With a star marked articles are ISI listed journals.&lt;br /&gt;
&lt;br /&gt;
* Touya, G., Bucher, B., Falquet, G., Jaara, K., and S. Steiniger (2014).&amp;lt;br&amp;gt;'''Modelling geographic relationships in automated environments.''' Chapter 3 in D. Burghardt, C. Duchene and W.A. Mackaness (eds): ''Abstracting Geographic Information in a Data Rich World'', 2014, LNG&amp;amp;C, Springer, Heidelberg, pp. 53-82.[http://www.springer.com/earth+sciences+and+geography/geographical+information+systems/book/978-3-319-00202-6 ISBN 978-3-319-00202-6]&lt;br /&gt;
* *Steiniger, S. and A.J.S. Hunter,  (2013). &amp;lt;br&amp;gt;'''A scaled line-based kernel density estimator for the retrieval of utilization distributions and home ranges from GPS movement tracks.''' ''Ecological Informatics'' 13:1-8. (at Elsevier [http://dx.doi.org/10.1016/j.ecoinf.2012.10.002 DOI: 10.1016/j.ecoinf.2012.10.002], 1st [http://sourceforge.net/projects/mentaer.u/files/pubs/linekde_sstein_forweb.pdf/download manuscript], for the software toolbox see also http://gisciencegroup.ucalgary.ca/wiki/OpenJUMP_HoRAE)&lt;br /&gt;
* *Steiniger, S. and A.J.S. Hunter, (2013).&amp;lt;br&amp;gt;'''The 2012 free and open source GIS software map - a guide to facilitate research, development, and adoption.''' ''Computers, Environment and Urban Systems'' 39:136-150. ([http://sourceforge.net/projects/mentaer.u/files/pubs/fosgismap_sstein_v9_web.pdf/download manuscript], at Elsevier [http://dx.doi.org/10.1016/j.compenvurbsys.2012.10.003 DOI: 10.1016/j.compenvurbsys.2012.10.003])&lt;br /&gt;
* Steiniger, S. and A.J.S. Hunter, (2012). &amp;lt;br&amp;gt;'''OpenJUMP HoRAE – A free GIS and toolbox for home range analysis.''' ''The Wildlife Society Bulletin'' 36(3):600-608. (Wiley [http://onlinelibrary.wiley.com/doi/10.1002/wsb.168/abstract DOI: 10.1002/wsb.168], 1st [http://sourceforge.net/projects/mentaer.u/files/moveantools/ojhorae/oj_horae_sstein_v1_wiki.pdf/download manuscript], for the software toolbox see also http://gisciencegroup.ucalgary.ca/wiki/OpenJUMP_HoRAE)&lt;br /&gt;
* Hunter, AJS., S. Steiniger, B.A. Sandalack, S.H.L. Liang, et al., (2012).&amp;lt;br&amp;gt;'''PlanYourPlace – A geospatial infrastructure for sustainable community planning.''' ''Revue Internationale de Geomatique'' 22(2):223-253. (Hermes [http://rig.revuesonline.com/article.jsp?articleId=17624 link], 1st [http://sourceforge.net/projects/mentaer.u/files/pubs/hunter_planyourplace_framework_rig2012.pdf/download manuscript])&lt;br /&gt;
* Steiniger, S. and A.J.S. Hunter (2012).&amp;lt;br&amp;gt;'''Free and open source GIS software for building a spatial data infrastructure.''' In E. Bocher and M. Neteler (eds): '' Geospatial Free and Open Source Software in the 21st Century: Proceedings of the first Open Source Geospatial Research Symposium'', 2009, LNG&amp;amp;C, Springer, Heidelberg, pp. 247-261 (2nd [http://sourceforge.net/projects/jump-pilot/files/w_other_freegis_documents/articles/sstein_hunter_fosgis4sdi_v10_final.pdf/download manuscript], [http://sourceforge.net/projects/jump-pilot/files/w_other_freegis_documents/presentations/sstein_free_open_source_gis_software_for_spatial_data_infrastructures_sdi_cossfest2010.pdf/download slides] of the COSSFest 2010 talk, [http://www.youtube.com/watch?v=-j7PLVJlvfE&amp;amp;annotation_id=annotation_186410&amp;amp;feature=iv video]  of COSSFest 2010 talk)&lt;br /&gt;
* Steiniger, S. and R. Weibel (2010).&amp;lt;br&amp;gt;'''GIS software.''' In: B. Warf (ed): ''Encyclopaedia of Geography'', SAGE Publications [http://www.sage-ereference.com/geography/Article_n518.html] --- note: a similar version is downloadable as &amp;quot;GIS software - A description in 1000 words&amp;quot;, [http://sourceforge.net/projects/jump-pilot/files/w_other_freegis_documents/articles/gissoftware_steiniger2008.pdf/download pdf] (year 2009)&lt;br /&gt;
* *Steiniger, S., P. Taillandier and R. Weibel (2010).&amp;lt;br&amp;gt;'''Utilising urban context recognition and machine learning to improve the generalisation of buildings.''' ''Int. J. of Geographical Information Science'' 24(2): 252-283. (Informaworld [http://www.informaworld.com/smpp/content%7Edb=all%7Econtent=a919588811 Link], [http://www.geo.uzh.ch/~sstein/manuscripts/sstein_control_bdggen_ijgisforweb2009.pdf manuscript])&lt;br /&gt;
* *Steiniger, S. and G.J. Hay (2009).&amp;lt;br&amp;gt;'''Free and open source geographic information tools for landscape ecology.''' ''Ecological Informatics'' 4(4): 183-195. (at ScienceDirect [http://dx.doi.org/10.1016/j.ecoinf.2009.07.004 DOI: 10.1016/j.ecoinf.2009.07.004]; [http://sourceforge.net/projects/jump-pilot/files/w_other_freegis_documents/articles/sstein_freegitools_ecoinf2009.pdf/download manuscript])&lt;br /&gt;
* *Steiniger, S. and E. Bocher (2009).&amp;lt;br&amp;gt;'''An overview on current free and open source desktop GIS developments.''' ''Int. J. of Geographical Information Science'' 23(10): 1345-1370. (Informaworld [http://www.informaworld.com/openurl?genre=article&amp;amp;issn=1365%2d8816&amp;amp;volume=23&amp;amp;issue=10&amp;amp;spage=1345 Link], [http://sourceforge.net/projects/jump-pilot/files/w_other_freegis_documents/articles/sstein_foss_desktop_gis_overview_ijgis2009_v2.pdf/download 1st manuscript])&lt;br /&gt;
* *Steiniger, S., T. Lange, D. Burghardt and R. Weibel (2008).&amp;lt;br&amp;gt; '''An approach for the classification of urban building structures based on discriminant analysis techniques.''' ''Transactions in GIS'' 12(1): 31-59. (Blackwell  [http://www.blackwell-synergy.com/doi/abs/10.1111/j.1467-9671.2008.01085.x Link]; [http://www.geo.uzh.ch/~sstein/finalpub/steinigeretal_buildingclass_tgis2008.pdf manuscript version])&lt;br /&gt;
* *Steiniger, S., and R. Weibel (2007).&amp;lt;br&amp;gt; '''Relations among map objects in cartographic generalization.''' ''Cartography and Geographic Information Science'' (CaGIS) 34(3): 175-197. (Ingenta [http://www.ingentaconnect.com/content/acsm/cagis/2007/00000034/00000003/art00001 Link]; [http://www.geo.uzh.ch/%7Esstein/finalpub/steiniger_weibel_mapobjectrelations_cagis2007.pdf manuscript])&lt;br /&gt;
* *Meier, S. and S. Steiniger (2005).&amp;lt;br&amp;gt; '''Linieglättung mit Snakes als Filteroperation.''' ''Photogrammetrie, Fernerkundung und Geoinformation'' (PFG) 8(4): 311- 320. ([http://www.geo.uzh.ch/~sstein/finalpub/meier_steiniger_snakes_smoothing_pfg2005no4.pdf German - pdf]) [the extended english version &amp;quot;Snakes: a technique for line smoothing and displacement in map generalisation.&amp;quot; can be found below]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''manuscripts in progress'''&lt;br /&gt;
please send an email if you are interested in the manuscripts&lt;br /&gt;
* Steiniger, S., M.E. Poorazizi and A.J.S. Hunter; (submitted). '''WalkYourPlace – A Web-Tool for the Evaluation of Urban Accessibility and Walkability using a Service-based Architecture.''' submitted to ''Transactions in GIS'' in May 2013 (this work was also presented at UDMS 2013, see below).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''conference and workshop papers (full paper review) : 3'''&lt;br /&gt;
&lt;br /&gt;
* Steiniger, S., D. Burghardt and R. Weibel (2006).&amp;lt;br&amp;gt;'''Recognition of Island Structures for Map Generalization.''' In: ''Proceedings of ACM-GIS'06'', Arlington, Virginia, pp. 67-74. [http://www.geo.uzh.ch/%7Esstein/finalpub/steiniger_perceptual_grouping_graph_methods_acmgis2006.pdf pdf] &amp;lt;small&amp;gt; &amp;quot;© ACM, (2006). This is the author's version of the work. It is posted here by permission of ACM for your personal use. Not for redistribution. The definitive version was published in ACM-GIS, November 10-11, 2006. http://doi.acm.org/10.1145/1183471.1183484&amp;quot; &amp;lt;/small&amp;gt;&lt;br /&gt;
* Steiniger, S. and R. Weibel (2005).&amp;lt;br&amp;gt; '''Relations and structures in categorical maps.''' In: ''8th ICA Workshop on Generalisation and Multiple Representation'', A Coruña, Spain. [http://www.geo.uzh.ch/%7Esstein/manuscripts/map_relations2005_sstein_rweibel.pdf pdf]&lt;br /&gt;
* Steiniger, S. and S. Meier (2004).&amp;lt;br&amp;gt; '''Snakes: a technique for line smoothing and displacement in map generalisation.''' In: ''7th ICA Workshop on Generalisation and Multiple Representation'', Leicester, GB. [http://www.geo.uzh.ch/%7Esstein/manuscripts/snakes_leicester.pdf pdf]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''conference and workshop papers and extended abstracts (abstract review) : 13'''&lt;br /&gt;
&lt;br /&gt;
* Steiniger, S., M.E. Poorazizi, and A.J.S. Hunter (2013).&amp;lt;br&amp;gt; '''WalkYourPlace – Evaluating Neighbourhood Accessibility at Street Level.''' In C. Ellul, S. Zlatanova, M. Rumor, and R. Laurini (eds): ''29th Urban Data Management Symposium''. ISPRS Archives – Volume XL-4/W1, 2013, pp. 1-6. [http://www.int-arch-photogramm-remote-sens-spatial-inf-sci.net/XL-4-W1/1/2013/isprsarchives-XL-4-W1-1-2013.pdf Paper - pdf]&lt;br /&gt;
* Steiniger, S., M.E. Poorazizi, C.A.M. Bliss Taylor, E. Mohammadi and A.J.S. Hunter (2012).&amp;lt;br&amp;gt; '''PlanYourPlace: Merging Social Networks and Participatory GIS for Participatory Planning''' ''FIG Working Week 2012'', Rome, Italy. [http://www.fig.net/pub/fig2012/papers/ts03e/TS03E_hunter_steiniger_et_al_5850.pdf Paper - pdf]&lt;br /&gt;
* Steiniger, S., T.L. Timmins and A.J.S Hunter (2010).&amp;lt;br&amp;gt; '''Implementation and comparison of home range estimators for grizzly bears in Alberta, Canada, based on GPS data.''' ''GIScience 2010'', Zurich, Switzerland. [http://www.geo.uzh.ch/%7Esstein/manuscripts/sstein_gb_homerange_estimation_final.pdf Extended Abstract - pdf], [http://www.geo.uzh.ch/%7Esstein/manuscripts/sstein_giscience2010_hre_eval_v2_pdfscreenprint_lowres.pdf Poster - pdf]&lt;br /&gt;
* Steiniger, S. and A.J.S Hunter (2010).&amp;lt;br&amp;gt; '''Teaching GIScience with free and open source software? - A first assessment.''' ''GIScience 2010'', Zurich, Switzerland. [http://www.geo.uzh.ch/%7Esstein/manuscripts/ssteinig_foss4giscteaching_final.pdf Extended Abstract - pdf]&lt;br /&gt;
* Hunter, A.J.S. and S. Steiniger (2010).&amp;lt;br&amp;gt; '''Implementing a spatial data infrastructure successfully with free and open source software?''' ''ISPRS Com I and Canadian Geomatics Conference''. Calgary, Alberta, Canada. [http://www.geo.uzh.ch/%7Esstein/manuscripts/hunter_steiniger_foss4sdi_canadageom_abstract_v2.pdf Extended Abstract - pdf], the full paper is published in the OGRS 2009 proceedings book - see above.&lt;br /&gt;
* Steiniger, S. and G.J. Hay (2008).&amp;lt;br&amp;gt; '''An experiment to assess the perceptual organization of polygonal objects.''' In A. Klippel and S. Hirtle (eds): ''You-Are-Here-Maps - Creating a Sense of Place through Map-like Representation''. Spatial Cognition 2008, Freiburg, Germany, pp. 38-44. [http://www.geo.uzh.ch/%7Esstein/manuscripts/sstein_groupingofpolygons_yahm2008_final.pdf Extended Abstract - pdf]&lt;br /&gt;
* Steiniger, S., G. Castilla and G.J. Hay (2008).&amp;lt;br&amp;gt; '''From image-objects to maps: an assessement of cartographic requirements for GEOBIA.''' ''GEOBIA 2008'', Calgary, Alberta, Canada. [http://www.geo.uzh.ch/%7Esstein/manuscripts/sstein_etal_objectstomaps_geobia2008.pdf Abstract - pdf], [http://www.geo.uzh.ch/%7Esstein/presentations/geobia_objectstomaps_v3.pdf presentation]&lt;br /&gt;
* Steiniger, S. and P. Taillandier (2007).&amp;lt;br&amp;gt; '''Improving map generalisation of buildings by introduction of urban context rules.''' In: '''Proceedings of GeoComputation 2007''', Maynooth, Ireland. [http://www.geo.uzh.ch/%7Esstein/manuscripts/gecomp2007_sstein_gen_expertrules.pdf Extended Abstract - pdf]&lt;br /&gt;
* Steiniger, S., R. Weibel and D. Burghardt (2006).&amp;lt;br&amp;gt; '''Recognition of large island structures for map generalization.''' In: M. Raubal, H. J. Miller, A. U. Frank and M. Goodchild (eds): ''Geographic Information Science.'' 4th Int. Conf., GIScience 2006, IfGIprints 28, pp. 351-254. [http://www.geo.uzh.ch/%7Esstein/manuscripts/sstein_island_recog_giscience2006.pdf Extended Abstract - pdf - 3.6 MB], [http://www.geo.uzh.ch/%7Esstein/manuscripts/sstein_island_recognition_formata3_giscience2005.pdf Poster - pdf - Format A3].&lt;br /&gt;
* Steiniger, S. (2006).&amp;lt;br&amp;gt; '''Classifying urban structures for mapping purposes using discriminant analysis.''' In: G. Priestnall and P. Aplin (eds): ''Proceedings of GISRUK Conference 2006'', Nottingham, pp. 107-111. [http://www.geo.uzh.ch/%7Esstein/manuscripts/steiniger_urbanstructures_gisruk2006.pdf Extended Abstract - pdf]&lt;br /&gt;
* Neun, M. and S. Steiniger (2005).&amp;lt;br&amp;gt; '''Modelling cartographic relations for categorical maps.''' In: ''Proceedings of the XXII. International Cartographic Conference'', A Coruña, Spain (CD-ROM). [http://www.geo.uzh.ch/%7Esstein/manuscripts/icc2005_neun_steiniger.pdf pdf]&lt;br /&gt;
* Burghardt, D. and S. Steiniger (2005).&amp;lt;br&amp;gt; ''Usage of principal component analysis in the process of automated generalisation.''  In: ''Proceedings of the XXII. International Cartographic Conference'', A Coruña, Spain (CD-ROM). [http://www.geo.uzh.ch/%7Esstein/manuscripts/pca_settlement_icc2005.pdf pdf]&lt;br /&gt;
* Steiniger, S. and R. Weibel (2005).&amp;lt;br&amp;gt;''' A conceptual framework for automated generalization and its application to geologic and soil maps.''' In: ''Proceedings of the XXII. International Cartographic Conference'', A Coruña, Spain (CD-ROM). [http://www.geo.uzh.ch/%7Esstein/manuscripts/genframework_icc2005.pdf pdf]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
'''other (thesis &amp;amp; educational docs) : 14'''&lt;br /&gt;
&lt;br /&gt;
* Steiniger, S. and M. Michaud (2009, 2010, 2011, 2013).&amp;lt;br&amp;gt; '''''The Desktop GIS OpenJUMP: A hands-on introduction.''''' Software tutorial held at OGRS 2009, Nantes, France. [http://sourceforge.net/projects/jump-pilot/files/Documentation/OpenJUMP%201.3%20Docs%20%28English%29/ogrs2009_tutorial.pdf/download pdf], data and software can be downloaded there as well&lt;br /&gt;
* Steiniger, S. (2007).&amp;lt;br&amp;gt; '''''Enabling Pattern-Aware Automated Map Generalization'''''. PhD thesis. Department of Geography, University of Zürich. [http://www.geo.uzh.ch/%7Esstein/finalpub/diss_sstein_lowres_standard_A4_nov2007.pdf pdf - low-res]; [http://www.geo.uzh.ch/%7Esstein/finalpub/diss_sstein_medres_pdfa1b2005_cmyk_A4_nov2007.pdf pdf-medium-res]&lt;br /&gt;
* Steiniger, S., M. Neun and A. Edwardes (2006).&amp;lt;br&amp;gt; '''''Lecture Notes: Foundations of Location Based Services'''''. Department of Geography, University of Zürich. [http://sourceforge.net/projects/jump-pilot/files/w_other_freegis_documents/articles/lbs_lecturenotes_steinigeretal2006.pdf/download pdf] (see also project [http://www.e-cartouche.ch CartouCHe] )&lt;br /&gt;
* Steiniger, S. (2003).&amp;lt;br&amp;gt; '''''Vergleichende Untersuchungen zur Linienglättung mit Snakes und Wavelets'''''. MSc./Diploma thesis. Technical University Dresden. (engl. translation: Comparative Tests on Cartographic Line Smoothing Using Wavelets and Active Splines.) [http://www.geo.uzh.ch/%7Esstein/finalpub/snakes_wavelets_linienglaettung_diplom_sst_10_04_03_final.pdf German - pdf]&lt;br /&gt;
&lt;br /&gt;
== University Work == &lt;br /&gt;
&lt;br /&gt;
'''Teaching'''&lt;br /&gt;
* sessional lecturer for GIS II (Geo 457), UofC, Department of Geography, Winter 2010&lt;br /&gt;
* guest lecture on GIS Software for UofC Geo 647  in 2008&lt;br /&gt;
* TAs/CAs&lt;br /&gt;
** course assistant for field course &amp;quot;Forestry and GIS&amp;quot; , UofC Geo 537, in 2009&lt;br /&gt;
** lead TA for GIS II, UZH Geo351, in 2005/6 and 2006/7, responsible for one lab group of 30 students. &lt;br /&gt;
&lt;br /&gt;
'''Supervision'''&lt;br /&gt;
* co-supervison of student projects, UofC, Geomatics Engineering&lt;br /&gt;
* co-supervision of three [http://code.google.com/ Google Summer of Code] students in 2008 &amp;amp; 2009&lt;br /&gt;
* supervison of one MSc Student - Christian Sailer: ''Algorithmen zur Filterung von LIDAR-Daten im Sihlwald.'' UZH, Oct 2005 - Dec 2007, Geography&lt;br /&gt;
* co-supervision of one MSc Student - Stefan Schmid: ''Automated Constraint-Based Evaluation of Cartographic Generalisation''. UZH, Nov 2006 - Jun 2008, [http://www.geo.uzh.ch/fileadmin/files/content/abteilungen/gis/research/msc_thesis/msc_stefan_schmid_2008.pdf pdf], UZH, Geography&lt;br /&gt;
* supervison of student group projects, UZH, Geography&lt;br /&gt;
** C. Sailer, R. Briegel, M. Zuan: ''Ableitung von Konturlinien (Höhenlinien) aus einem Digitalen Geländemodell'' (DGM) mit ArcGis 9.0 für das Naturschutzgebiet Sihlwald (CH). [http://www.geo.uzh.ch/%7Esstein/pubothers/hoehenlinien_sihlwald2005.pdf pdf]&lt;br /&gt;
** D. Roth: ''Analyse sozioökonomischer Daten auf Übereinstimmung mit urbanen Strukturklassen.'' [http://www.geo.uzh.ch/%7Esstein/pubothers/final_socioeco_roth.pdf pdf]&lt;br /&gt;
&lt;br /&gt;
'''Contributions'''&lt;br /&gt;
* participation/co-preparation of the Modelling and Statistics Learning and Discussion Group (http://homepages.ucalgary.ca/%7Emosta/index.html MOSTA), UofC, Geography (2008 &amp;amp; 2009)&lt;br /&gt;
* content author for the LBS Basics lesson ([http://sourceforge.net/projects/jump-pilot/files/w_other_freegis_documents/articles/lbs_lecturenotes_steinigeretal2006.pdf/download pdf]) of e-learning Project [http://www.e-cartouche.ch CartouCHe], as well reviewer for other lessons.&lt;br /&gt;
&lt;br /&gt;
'''Services'''&lt;br /&gt;
* lots of manuscript reviews for journals and conferences ;)&lt;br /&gt;
* ex-PDAC active member (PostDoc Association), UofC (2008-9)&lt;br /&gt;
* elected representative for the Board of the Institute of Geography, UZH (until Sept. 2007)&lt;br /&gt;
* elected student representative for several boards of the faculty/school of Forst-Geo-Hydro Sciences, University of Dresden (1998-2001)&lt;br /&gt;
* ex-active member of ARGEOS (the geomatics student organization of german speaking countries)&lt;br /&gt;
&lt;br /&gt;
== Further Interests ==&lt;br /&gt;
&lt;br /&gt;
the usual things.. hiking, Tai Chi, books (from Murakami and D. Adams to Hesse), music (from Sigur Ros and Thievery Cooperation to Blumfeld), traveling South America, etc.&lt;br /&gt;
&lt;br /&gt;
== Free &amp;amp; Open Source GIS ==&lt;br /&gt;
&lt;br /&gt;
Since 2005 I am one of the project administrators of the [http://sourceforge.net/projects/jump-pilot/ Jump Pilot Project] and developer for [http://www.openjump.org OpenJUMP GIS]. Own extensions for the free &amp;amp; open source GIS  OpenJUMP, which is based on the Java Unified Mapping Plattform (JUMP) by VividSolutions, can be found below.&lt;br /&gt;
&lt;br /&gt;
* In Oct. 2007 I gave a presentation containing and overview on Free and OpenSource Desktop GIS: &amp;quot;Open Source Desktop GIS Developments – Is OpenJUMP GIS approaching your Desktop?&amp;quot; [http://www.geo.uzh.ch/%7Esstein/presentations/os_desktopgis_presentation_v2_mediumlength.pdf pdf]&lt;br /&gt;
* Based on the previous presentation I created two overview tables on open souce desktop GIS and wrote several articles on the topic (see my publication list above). At [http://www.ogrs2009.org OGRS 2009] I also gave a [http://sourceforge.net/projects/jump-pilot/files/w_other_freegis_documents/presentations/sstein_FOS_Desktop_GIS_Projects_and_Software_an_analysis_ogrs2009.pdf/download keynote] on the development status.&lt;br /&gt;
* Finally in 2010, I had a look on free software that can be used to build Spatial Data Infrastructures (SDIs). The resulting paper we wrote and a talk are availble for for download too: [http://sourceforge.net/projects/jump-pilot/files/w_other_freegis_documents/articles/sstein_hunter_fosgis4sdi_v10_final.pdf/download paper], [http://sourceforge.net/projects/jump-pilot/files/w_other_freegis_documents/presentations/sstein_free_open_source_gis_software_for_spatial_data_infrastructures_sdi_cossfest2010.pdf/download slides] of the talk, [http://www.youtube.com/watch?v=-j7PLVJlvfE&amp;amp;annotation_id=annotation_186410&amp;amp;feature=iv video].&lt;br /&gt;
&lt;br /&gt;
=== OpenJUMP GIS Extensions ===&lt;br /&gt;
Over the years I programmed a couple of plugins for [http://openjump.org OpenJUMP]. Lots of my work was directly integrated into the core of OpenJUMP. However, I also produced several separate extensions for JUMP/OpenJUMP like the ones below:  &lt;br /&gt;
* '''''Home Range Analysis Toolbox''''' (HoRAE) - see also [[Movement Analysis]] (it's actually an own OpenJUMP distribution)&lt;br /&gt;
* ''Attribute classification and plotting'' functions - now integrated in OpenJUMP&lt;br /&gt;
* '''''Landscape Pattern Extension''''' - An extension to extract edges, core area, patches, corridors, branches and shortcut areas as described in (Vogt et al. 2007- Ecol. Ind.) but with buffer operations. The extension provides also a set of metrics to describe single polygons and their neighboorhood: e.g. x-centroid, y-centroid, area, perimeter, concavity, elongation, shape index, Schumm's shape index, fractal dimension, MBR orientation, three buffer density indices, R-Index. Download [http://sourceforge.net/projects/jump-pilot/files/OpenJUMP_plugins/More%20Plugins/Landscape%20Pattern%20Analysis%20Tools/? here].&lt;br /&gt;
* ''Selection Toolbox'' - now integrated in OpenJUMP&lt;br /&gt;
* ''Save Image As SVG PlugIn'' - now integrated in OpenJUMP&lt;br /&gt;
* '''''MapGen Toolbox''''' ([https://sourceforge.net/project/showfiles.php?group_id=118054 download]) - conatins a number of map generalization algorithms (mostly for building generalisation), such as (i) Building Spread Narrow Parts, (ii) Enlarge Building to Rectangle, (iii) Square Building Walls, (iv) Eliminate Small Buildings, (v) Eliminate “Points in Line” of Building, (vi) Simplify Building, (vii) Simplify Building to Rectangle, (viii) Change Elongation of Building, (ix) Displace Lines, (x) Line Smoothing Simple Version, (xi) Line Simplify JTS 1.5 Algorithm, (xii) Merge Polygons ...  Note, the source code is available on the OpenJUMP project SVN&lt;br /&gt;
* ''Clean and Convert ArcGIS Contour Results'' - MultiLinestring to LineStrings ([http://www.geo.uzh.ch/%7Esstein/ojplugins/cleanarcgiscontours.jar download])&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-03T20:30:25Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
'''General prep steps'''&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
'''Install for Calgary'''&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end point (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put in apache's ''/var/www/'' (i.e. /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; plus adding this to the layer selection plus as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get backend code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = on for each model =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* note, not sure, but in ManagementService.py the GeoServer URL is defined with http://127.0.0.1:8080/geoserver - maybe this needs to be changed (for use in a VM???)&lt;br /&gt;
# test ic Calgary works&lt;br /&gt;
&lt;br /&gt;
'''Modify code for Santiago'''&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-03T19:33:32Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
'''General prep steps'''&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
'''Install for Calgary'''&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end point (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put in apache's ''/var/www/'' (i.e. /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;pre&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/pre&amp;gt; plus adding this to the layer selection plus as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get backend code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = on for each model =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot;&lt;br /&gt;
# test ic Calgary works&lt;br /&gt;
&lt;br /&gt;
'''Modify code for Santiago'''&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	<entry>
		<id>http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace</id>
		<title>Setting up walkyourplace</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.cedeus.cl/mediawiki-1.22.7/index.php/Setting_up_walkyourplace"/>
				<updated>2014-04-03T19:32:45Z</updated>
		
		<summary type="html">&lt;p&gt;Mentaer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;gt;&amp;gt; return to [[Cedeus IDE]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Steps to Install the WalkYourPlace tool for Santiago&lt;br /&gt;
&lt;br /&gt;
'''General prep steps'''&lt;br /&gt;
# create new Ubuntu 12.04 VM with LA(M)PS ( 7773, lautaro:17022)&lt;br /&gt;
# install tomcat 7 (or jetty)&lt;br /&gt;
# install GeoServer + WPS plugin &lt;br /&gt;
# install Php cURL (http://php.net/curl)&lt;br /&gt;
#* geoserver should run on port 8080, otherwise modify &amp;quot;call_wps.php&amp;quot;.&lt;br /&gt;
# install OpenTripPlanner (running on GeoNode VM (146.155.17.54:8080) - and compile graph with&lt;br /&gt;
#* Santiago OSM data&lt;br /&gt;
#* Santiago GTFS data&lt;br /&gt;
#* =&amp;gt; test if it works&lt;br /&gt;
# install PostgreSQL + PostGIS (17032 : db: ''wypdb'')&lt;br /&gt;
#* install PostgreSQL&lt;br /&gt;
&lt;br /&gt;
'''Install for Calgary'''&lt;br /&gt;
# Install DBs&lt;br /&gt;
#* install crime DB (for the crimes, we considered 12 types of crime as listed in http://crimemap.calgarypolice.ca/ : weighing is in ''AggregationService.py'')&lt;br /&gt;
#* install GTFS DB&lt;br /&gt;
# get Browser client code &amp;quot;WPSClient&amp;quot; &lt;br /&gt;
#* modify browser client end point (WPS, etc.) in file ''call_wps.php'' to http://146.155.17.113:17088/geoserver/&lt;br /&gt;
#* put in apache's ''/var/www/'' (i.e. /var/www/wypwps)&lt;br /&gt;
#* note: the map tiles, as defined in ''js/main.js'',  will still come from http://136.159.122.90/PHPTileServer/CalgaryGrey/{z}/{x}/{y}.png However, in case the TileServer is down its possible to add OSM map with &amp;lt;code&amp;gt;var osmmap = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © &amp;lt;a href=&amp;quot;http://openstreetmap.org&amp;quot;&amp;gt;OpenStreetMap&amp;lt;/a&amp;gt; contributors'});&amp;lt;/code&amp;gt; plus adding this to the layer selection plus as default layer (PS: also remove setting of the map bounds, see &amp;lt;code&amp;gt;map.setMaxBounds(bounds);&amp;lt;/code&amp;gt;)&lt;br /&gt;
# get backend code &lt;br /&gt;
#* GeoServer WPS servers *.jar files = on for each model =&amp;gt; install in GeoServers  ''*/WEB-INF/lib folder'' =&amp;gt; restart GeoServer&lt;br /&gt;
#** check if it works with http://146.155.17.113:8080/geoserver/ows?service=wps&amp;amp;version=1.0.0&amp;amp;request=GetCapabilities&lt;br /&gt;
#* GeoProcessing Engine (access model code in Python) =&amp;gt; put in any folder&lt;br /&gt;
#* modify the postgres DB access in ''postgis.conf''&lt;br /&gt;
#* start each model with &amp;quot;run.py&amp;quot;&lt;br /&gt;
# test ic Calgary works&lt;br /&gt;
&lt;br /&gt;
'''Modify code for Santiago'''&lt;br /&gt;
# install PyCharm to modify client code and backend code&lt;br /&gt;
#* GeoServer WPS location (IP/address) &lt;br /&gt;
#* Postgres location and access: ''postgis.conf''&lt;br /&gt;
#* Tileserver location/code in client  &lt;br /&gt;
#* remove crime calculation in ''ManagementService.py''&lt;br /&gt;
# deploy code:&lt;br /&gt;
#* client side code =&amp;gt; install on var/www/ of apache server&lt;br /&gt;
#* if there are no changes: GeoProcessing Engine(s) =&amp;gt; put in whatever folder and run &amp;quot;run.py&amp;quot;&lt;br /&gt;
#* GeoServer WPS servers *.jar files  =&amp;gt; put in GeoServers  ''*/WEB-INF/lib'' folder (requires restart of GeoServer)&lt;br /&gt;
# Test&lt;/div&gt;</summary>
		<author><name>Mentaer</name></author>	</entry>

	</feed>