Difference between revisions of "Main Page/Stuff/Ubuntu stuff/server 9.10"
From phurvitz
< Main Page | Stuff | Ubuntu stuff
Phil Hurvitz (talk | contribs) |
Phil Hurvitz (talk | contribs) |
||
Line 1: | Line 1: | ||
+ | This was mainly to try the wkt raster functionality in PostGIS. It is not promising as of 2010.03.26 for any meaningful work. | ||
+ | |||
# install the server on a vm | # install the server on a vm | ||
# sudo apt-get update | # sudo apt-get update | ||
Line 41: | Line 43: | ||
## sudo make | ## sudo make | ||
## sudo make install | ## sudo make install | ||
+ | ## psql -f rt_pg/rtpostgis.sql testdb | ||
+ | # gdal 1.7.1 | ||
+ | ## sudo ./configure --with-perl --with-python --with-ogr --with-xerces --with-pg=/usr/local/pgsql/bin/pg_config | ||
+ | ## sudo make | ||
+ | ## sudo make install | ||
+ | # sudo apt-get install swig | ||
+ | # sudo apt-get install python-dev | ||
+ | # numpy | ||
+ | ## sudo apt-get install libatlas-base-dev | ||
+ | ## sudo apt-get install libatlas3gf-sse2 | ||
+ | ## python setup.py build | ||
+ | ## python setup.py install | ||
# wktraster | # wktraster | ||
## sudo ./configure -with-postgis-sources=/usr/local/src/postgis-2.0.0SVN | ## sudo ./configure -with-postgis-sources=/usr/local/src/postgis-2.0.0SVN | ||
Line 47: | Line 61: | ||
## sudo make install | ## sudo make install | ||
## make post-install-check (as postgres user) | ## make post-install-check (as postgres user) | ||
− | ## | + | ## /usr/local/pgsql/bin/gdal2wktraster.py -r /mnt/hgfs/junk/percentpark1.tif -t percentpark -R |
+ | |||
+ | |||
+ | At this point I was able to only get cell size and envelope data from the raster. Fooey! |
Revision as of 01:37, 27 March 2010
This was mainly to try the wkt raster functionality in PostGIS. It is not promising as of 2010.03.26 for any meaningful work.
- install the server on a vm
- sudo apt-get update
- sudo apt-get xinit
- sudo apt-get install kubuntu-desktop
- restart
- sudo apg-get install g++
- download and install python from source (2.6.5)
- sudo apt-get install libtool
- geos 3.2.0
- sudo ./configure
- sudo make
- sudo make install
- proj4 4.7.0
- sudo ./configure
- sudo make
- sudo make install
- sudo apt-get install libreadline-dev
- sudo apt-get install zlib-bin
- sudo apt-get install zlib1g-dev
- sudo apt-get install libreadline5-dev
- perl 5.1.0
- postgresql 8.4.3
- sudo ./configure --with-perl --with-python
- sudo make
- sudo make install
- sudo apt-get install postgresql-client-8.4
- sudo mkdir /usr/local/pgsql/data
- sudo adduser postgres (pw=samsung)
- sudo chown postgres data/
- su - postgres
- /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
- /usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data >logfile 2>&1 &
- /usr/bin/createdb testdb
- createlang plpgsql
- postgis (http://www.postgis.org/download/postgis-2.0.0SVN.tar.gz)
- sudo apt-get install libpq-dev
- sudo apt-get install postgresql-server-dev-8.4
- sudo apt-get install libxml2-dev
- export PATH=/usr/local/pgsql/bin:$PATH
- sudo ./configure --with-geos --with-pgsql --with-proj --prefix=/usr/local/pgsql
- sudo make
- sudo make install
- psql -f rt_pg/rtpostgis.sql testdb
- gdal 1.7.1
- sudo ./configure --with-perl --with-python --with-ogr --with-xerces --with-pg=/usr/local/pgsql/bin/pg_config
- sudo make
- sudo make install
- sudo apt-get install swig
- sudo apt-get install python-dev
- numpy
- sudo apt-get install libatlas-base-dev
- sudo apt-get install libatlas3gf-sse2
- python setup.py build
- python setup.py install
- wktraster
- sudo ./configure -with-postgis-sources=/usr/local/src/postgis-2.0.0SVN
- sudo make
- sudo make check
- sudo make install
- make post-install-check (as postgres user)
- /usr/local/pgsql/bin/gdal2wktraster.py -r /mnt/hgfs/junk/percentpark1.tif -t percentpark -R
At this point I was able to only get cell size and envelope data from the raster. Fooey!