`
- 浏览:
757965 次
- 性别:
- 来自:
上海
-
1、MapServer简介
MapServer是美国明尼苏达大学提供的WebGIS解决方案。 MapServer是一款成功的开源WebGIS服务。在服务器端通过CGI应用程序连接Web Server和GIS空间数据库,客户端仅须使用浏览器就可以对空间数据进行查询分析。
MapServer 基于C 语言,利用GEOS、OGR/GDAL 对多种矢量和栅格数据的支持,通过Proj.4共享库实时的进行投影变换。同时,还集合PostGIS 和开源数据库PostgreSQL 对地理空间数据进行存储和SQL 查询操作,基于ka-map、MapLab、Cartoweb 和Chameleon 等一系列客户端JavaScript API来支持对地理空间数据的传输与表达,并且遵守OGC制定的WMS、WFS、WCS、WMC、SLD、GML 和Filter Encoding 等一系列规范。
2、Windows下的安装
使用MS4W安装包比较方便,下载地址:http://maptools.org/dl/ms4w/ms4w_2.3.1.zip。解压到任意目录下。
依次运行ms4w目录下的setenv,和Apache-install文件。
3、第一个HelloWorld的编写
3.1 Hello.html编写
<html>
<head><title>MapServer Hello World</title></head>
<body>
<form method=POST action="/cgi-bin/mapserv.exe">
<input type="submit" value="Click Me">
<input type="hidden" name="map" value="/ms4w/Apache/htdocs/hello.map">
<input type="hidden" name="map_web_imagepath" value="">
</form>
<IMG SRC="[img]" width=400 height=300 border=0>
</body>
</html>
3.2 Hello.map编写
#第一个Hello World文件
MAP
NAME "Hello World"
SIZE 400 300
IMAGECOLOR 249 245 186
IMAGETYPE png
EXTENT -1.00 -1.00 1.00 1.00
WEB
TEMPLATE "/ms4w/Apache/htdocs/hello.html"
IMAGEPATH "/ms4w/Apache/htdocs/tmp/" #文件写在这里
IMAGEURL "/tmp/" #读取的时候读这里
END
LAYER
STATUS default
TYPE point
FEATURE
POINTS 0.0 0.0
END
TEXT "Hello World"
END
CLASS
STYLE
COLOR 255 0 0
END
LABEL
TYPE bitmap
END
END # end class
END # end layer
END # end mapfile
4、使用配置
把Hello.html和Hello.map拷贝到ms4w\Apache\htdocs目录下,并新建tmp目录
在浏览器中输入http://localhost/Hello.html
点击Click按钮,就能看到效果了。
分享到:
Global site tag (gtag.js) - Google Analytics
相关推荐
MapServer使用笔记
比较mapserver和geoserver,调研资料必备
java调用mapserver 根据网上示例修改,按网上示例配置报错,这个配置文档已修改并附测试代码一份
mapserver.
开源的GIS ---mapserver-5.4.0
MapServer帮助文档,讲说MapServer的具体使用方法,以及函数的使用。
包括mapserver开发涉及系列软件说明,简要介绍配置要点和注意要项。
MapServer for Dummies 一本关于 web mapping 和 MapServer 的英文版电子书
开源webgis:MapServer简介及其开发
根据官网文档 在线机翻,如有问题,请联系,帮助WebGIS开发
mapserver-open-gis 开发学习资料
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 - ...
mapserver 安装程序,包含web页面的简单编写,地图放大缩小等功能,mapinfo的编写等
MapServer之Mapfile文件中文参考详细介绍
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,发布后可以使用。
NULL 博文链接:https://zxs19861202.iteye.com/blog/647161
如何编译mapserver在windows环境下.doc