Ideas for space in this forsaken world around us. Very narcissistic in nature.
Includes an auto suggest integerated with osm maps. Convert the osm map to django models level.
Install the
postgresql-9.1
:sudo apt-get install postgresql-9.1-postgis postgresql-contrib-9.1
Create a database named
osm
:sudo -u postgres
Run the commands for setting up the geometric function in postgresql:
psql -h HOST -U USERNAME -d DATABASE -f /usr/share/postgresql/9.1/contrib/postgis-1.5/postgis.sql psql -h HOST -U USERNAME -d DATABASE -f /usr/share/postgresql/9.1/contrib/postgis-1.5/spatial_ref_sys.sql
Install
osm2pgsql
.Run the command to transfer data from the osm file to postgresql database:
http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/default.style Sample OSM_FILE: http://metro.teczno.com/#new-delhi osm2pgsql -l -p osm -d DATABASE -U USERNAE -H Host -W OSM_FILE
Install
postgresql_psycopg2
:sudo apt-get install python-psycopg2
Run the command for creating the mysql databases:
python manage.py syncdb
Fill the with content from the osm, by the command:
python places/filler.py
Install the redis.
Install the redis-py.
Run the command to fill the redis with prefixes:
python suggest/filler.py
- Install the webkit-server.
- Install the dryscrape.