Category Archives: GIS

Supplement: run MMS 1.2.1 beta on Ubuntu Dapper

This is a supplement for the previous howto. http://wlxblog.westgis.ac.cn/215/ 1. modify setup file, diff with the old one: 1c1 < #!/bin/ksh --- > #!/bin/sh 18c18 < FC=f77 --- > FC=gfortran 57c57 < XINCPATH=/usr/include/X11 ; check_x_inc_path=yes --- > XINCPATH=/usr/include ; check_x_inc_path=yes … Continue reading

Posted in GIS, Linux | Tagged , | 1 Comment

how to make MMS(modular modeling system) work with ubuntu dapper

This is a memory, and thanks to George – the author of MMS, without his help, I can not make MMS work on my system – ubuntu dapper. 1. download the latest version to your computer, and extract it in … Continue reading

Posted in GIS, Linux | Tagged , | 3 Comments

install and use postgis in debian/ubuntu

因为postgis已经进入debian的库了,就把原来用source安钻的postgresql和postgis都删除掉,然后从库中安装。 aptitude install postgresql-8.1-postgis 然后再创建数据库,并作相应的初始化工作: createlang plpgsql yourdatabase psql -f `locate lwpostgis.sql` -d yourdatabase psql -f `locate spatial_ref_sys.sql` -d yourdatabase 最后再添加一个超级用户: create user xxx with password ‘passwd’ createuser createdb

Posted in PostGIS | Tagged , , | 1 Comment

debian testing 中安装mapserver

mapserver已经尽到debian的库里,直接安装就可以了: aptitude install php4-mapserver 然后提示不能运行在CGI/FCGI模式下: aptitude install libapache2-mod-php4 MAPSERVER运行没有问题了,但MYSQL出问题了: 编辑/etc/php4/apache2/php.ini,把mysql.so前面的注释去掉,重新启动apache2。 下次就直接测试php5相关部分了。

Posted in Linux, MapServer | Tagged , | 2 Comments

Web Processing Service: PyWPS

GRASS goes to web! nice idea. http://www.les-ejk.cz/?cat=pywps

Posted in GRASS | Tagged , | 1 Comment

ubuntu dapper下编译mapserver

好久没有安装mapserver了,今天才发现mapserver都已经进入官方的源了。 看来已经出了好长时间了,今天要重装mapserver才发现。 ubuntu dapper中的版本是4.6.1 apt-cache search mapserver cgi-mapserver – cgi module of mapserver mapserver-bin – mapserver binary utilities mapserver-doc – documentation for mapserver perl-mapscript – perl mapserver library php4-mapscript – module for php4-cgi to use mapserver php5-mapscript – module for … Continue reading

Posted in Linux, MapServer | Tagged , , | Leave a comment

传统的postgis安装方法@dapper

首先下载postgis source code,然后解开: 运行传统的安装方法: ./configure make 注意若提示缺少相关的lib,如pam,krb5等库,可从库中安装。 然后: checkinstall -D sudo dpkg -i 若不想用deb安装,也可以直接: make install

Posted in Linux, PostGIS | Tagged , , | 1 Comment

qgis 0.8svn版本的debian式安装

前面已经用checkinstall制作了qgis 0.8svn版本的deb包,现在或许我们可以用更加debian化的方式来进行打包: 首先更新代码: svn up 然后从www.debian.org或debian gis下载qgis 0.7.4的DEBIAN包,解开,然后拷贝其中的debian目录到qgis 0.8svn目录下。 进行修改: 1. 删除patches下的两个文件,这两个patch已经都没有用了,或许不删除也没有关系,打包时并没有调用。 2. 修改control文件,调整qt3为qt4,调整对应的软件包,包括gdal等。 3. 修改rules文件,调整对应的编译参数,或者添加你想使用的参数。 4. 修改三个*.install文件,调整其中对应的目录以及相应的文件,注意不要漏或重复。 然后打包: dch -i dpkg-buildpackage -rfakeroot

Posted in GIS, Linux | Tagged , , , | 1 Comment

调用proj.4库

proj.4的库非常简单,很容易使用。 用法: #include <proj_api.h> projPJ pj_init(int argc, char **argv) projPJ pj_init_plus(const char *defn) projUV pj_fwd(projUV val, projPJ proj) projUV pj_inv(projUV val, projPJ proj) int pj_transform(projPJ src_cs, projPJ dst_cs, long point_count, double *x, double *y, double *z) void pj_free(projPJ proj) 说明: … Continue reading

Posted in GIS, Linux | Tagged | Leave a comment

GRASS 6.1cvs重打包

首先更新: cvs up 然后更改control/rules 把TCL/TK 8.3版本替换成8.4版本,FFTW换成版本3,添加上sqlite支持。 然后: dch -i dpkg-buildpackage -rfakeroot 但是出现错误,检查发现是patches出现了问题,于是手工修改对应的文件,然后把此patch删除。 继续打包,最后出现错误,检查后是grass.install中的目录有一个发生了改变。

Posted in GIS, Linux | Tagged | Leave a comment