`
- 浏览:
761070 次
- 性别:
- 来自:
上海
-
Mapserver起步
Mapserver是比较著名的开放源代码网络地图软件,国外用的人非常多。国内的也有比较成功的应用,象:http://www.webmap.cn/mapDir.php。
本文简单介绍了一个windows下ms4w的小例子,希望对初学者有帮助。
1.下载Mapserver。
Mapserver的官方网站是:http://mapserver.gis.umn.edu/
下载ms4w可以到:http://maptools.org/ms4w/index.phtml
ms4w不用安装,解压即可使用(注意一定要解压到根目录,比如D:\)
2.打开ms4w文件夹,双击apache-install.bat,就可以启动Apache网络服务器,这时你在浏览器中输入localhost(或127.0.0.1),就能看到ms4w的页面了。
文件夹中还有apache-restart.bat,apache-uninstall.bat分别是重启和停止APACHE的命令。
3.到http://free.ys168.com/?casljz 下载webgis.rar(我做的一个小例子),解压缩,然后把 webgis文件夹拷贝到D:\ms4w\Apache\htdocs中,双击D:\ms4w\apache-restart.bat重启apache服务器
4.在浏览器中输入localhost/webgis,即可看到一个最简单的WEBGIS的页面(只能放大)
好了,下面讲解一下Mapserver的工作原理。
Mapserver真正起作用的是一个CGI程序,在WINDOWS下是mapserv.exe,如果你在浏览器窗口输入http://localhost/cgi-bin/mapserv.exe,得到:“No query information to decode. QUERY_STRING is set, but empty.”,说明你的mapserver已经能干活啦。
在mapserver中起核心作用的是mapfile文件,该文件定义了数据在哪里?HTML模板在哪里?投影?显示图层等详细配置信息,我们的主要工作就是修改这个文件配置数据进入mapserv.exe,关于mapfile文件的详细信息,请参考http://mapserver.gis.umn.edu/docs/reference/mapfile
另外比较重要的是template文件,这个文件是用户与mapserv.exe进行交互的界面。
分享到:
Global site tag (gtag.js) - Google Analytics
相关推荐
比较mapserver和geoserver,调研资料必备
java调用mapserver 根据网上示例修改,按网上示例配置报错,这个配置文档已修改并附测试代码一份
mapserver.
开源的GIS ---mapserver-5.4.0
MapServer使用笔记
MapServer帮助文档,讲说MapServer的具体使用方法,以及函数的使用。
包括mapserver开发涉及系列软件说明,简要介绍配置要点和注意要项。
MapServer for Dummies 一本关于 web mapping 和 MapServer 的英文版电子书
开源webgis:MapServer简介及其开发
根据官网文档 在线机翻,如有问题,请联系,帮助WebGIS开发
MapServer之Mapfile文件中文参考详细介绍
This package contains all the required files to successfully run MapServer and GDAL related applications on Windows. The files are organized according to the following directory layout: \bin - ...
MapFile文件时MapServer的基本配置文件,这篇由jean-francois doyon and jeff McKenna 编写的文档可以让你对MapFile文件有一个很好的认识。
mapserver 安装程序,包含web页面的简单编写,地图放大缩小等功能,mapinfo的编写等
mapserver三维gis。。。。。。。
注意此资源不含有 include 和 lib 需要的请下开发包 GDAL 1.11 + MapServer6.4.1 32位编译包,由vs2010编译,如需开发包请下载 GDAL 1.11 + MapServer6.4.1 32位开发包
MapServer Documentation.pdf 英文帮助文档
mapserver的mapfile 生产工具,不是qgis的插件,也不是maplab。花时间找的工具,测试可以生产mapfile,发布后可以使用。
如何编译mapserver在windows环境下.doc
MapServer的入门文档 Mapserver for dummies WEB GIS很好的入门文档