Category Archives: MapServer

kamap!新手入门

本文以MS4W为例,介绍如何建立一个简单的kamap!系统,并假设你已经做好了相关的数据,并建立了对应的map文件。 1、下载 若要简单的先浏览一下kamap!在本机上建立后的效果,需要下载下面对应的软件,所有软件都在www.maptools.org的网站上。 MS4W 2.2.3 ka-map! 1.0 gmap demo 其中,gmap是为了演示kamap!的功能的,若你有自己的数据,则可以不用下载。 2、安装 把上面下载的3个zip文件,都解压缩到c:\目录下。最终形成了一个c:\ms4w的目录,所有文件都安装到了这个目录下。 然后执行c:\ms4w\apache-install.bat文件。 ok,这样一个基本系统就搭建好了,你可以通过在WWW浏览器如IE、FIREFOX中浏览本机地址: http://localhost/ 而kamap的地址是: http://localhost/kamap/ 注意: 若在浏览kamap是无法得到地图数据,则有可能是因为浏览器缓存的问题,请先清空浏览器的缓存再试验看看。 3、定制 如何添加自己的数据集? 打开c:\ms4w\apps\ka-map-1.0\include\config.php文件,注意要用写字板或别的能支持硬回车的文本编辑软件来进行编辑。 注意看到这部分内容: $aszGMap = array ( ‘title’ => ‘GMap 75′, ‘path’ => ‘../../gmap/htdocs/gmap75.map’, ‘scales’ => array( 40000000, 25000000, 12000000, … Continue reading

Posted in MapServer | Tagged , , , | 2 Comments

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

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

webmap.cn使用的WEBGIS技术

参见:http://www.webmap.cn 使用的是ka-map!以及Mapserver的CGI方式,还有PHP/MAPSCRIPT方式。 其中的目录浏览、地图制作、快图查询都很有特色。

Posted in MapServer | Tagged , , | 1 Comment

Autodesk Contributes Web Mapping Software to Open Source Community

参考 http://biz.yahoo.com/prnews/051128/sfm053.html?.v=33 以及 http://mapserverfoundation.org 这对MAPSERVER应该是个好事情。

Posted in MapServer | Tagged | Leave a comment

ubuntu breezy下的mapserver问题

升级后,发现mapserver有问题,开始还以为是需要重新编译。 没想到是php4下的插件改目录了,一直没有注意。 在make后,拷贝php_mapscript.so文件到/usr/include/php4/20050606目录下 在最新的debian sarge testing版本中也是同样的问题。 编译方法同上个版本,参考:http://blog.mygis.org/98/

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

IE中的XMLHTTP

极度郁闷,最近在调试XMLHTTP时,在FIREFOX上都没有问题,但转到IE上时就出来问题了。 用ubuntu hoary作服务器,WIN2K3+IE6测试,没有问题。 但用debian作服务器,就出现问题了,但FIREFOX都没有问题。 关键的错误是IE6时,得到的XMLHTTP的responseText是空。

Posted in MapServer | Tagged , , , | 4 Comments

xmlhttp request

使用XMLHTTP实现无刷新显示WEBGIS中的地图及其他相关内容, 可以参考下面这个文章: http://jibbering.com/2002/4/httprequest.html 另外几个JS库 JavaScript: DHTML API, Drag & Drop for Images and Layers http://www.walterzorn.com/dragdrop/dragdrop_e.htm

Posted in MapServer | Tagged , , | Leave a comment

MapServer 4.7-cvs在ubuntu 5.04下的安装

首先从CVS下载最新版本。 然后配置: ./configure –with-ogr –with-gdal –with-geos –with-proj –with-postgis –with-php=/usr/include/php4 –with-freetype 然后,编译,遇到一个错误,byacc参数错误。 郁闷。 后发现若安装了bison后就可以解决此错误。 sudo apt-get install bison 看看结果: ./mapserv -v MapServer version 4.7 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

Posted in MapServer | Tagged , | 3 Comments

fonts.txt字体的别名

注意,字体的别名最后不能跟数据。 比如:abc8(不合法) 应以字母结束。

Posted in MapServer | Tagged | 37 Comments