您的位置:首页 > 产品设计 > UI/UE

面向企业级的开源WebGIS解决方案--MapGuide(安装

2007-12-10 13:35 375 查看
MapGuide的安装包括:安装MapGuide Server;安装MapGuide WebServer Extensions、安装示例数据、安装示例程序、安装DwfViewer、安装mapguide studio这几项。
以下所介绍的安装都基于Windows平台和IIS网络服务,并使用.Net开发技术。
下载地址:https://mapguide.osgeo.org

1、安装MapGuide Server
下载MgServerSetup.exe安装MapGuide Server。
可以使用多台计算机共同提供MapGuide Server的功能,当在多台计算机上安装MapGuide Server时,需要设置一台计算机作为site server,其他的计算机作为support server,
在安装support server时需要提供site server的IP地址。
MapGuide Server (mgserver.exe)程序在系统运行时自动启动,服务名为MapGuide Server(Windows服务可查看)。

2、安装MapGuide WebServer Extensions
下载MgWebServerExtensionsSetup.exe安装MapGuide WebServer Extention。
MapGuide Server和MapGuide WebServer Extention可以安装在同一台计算机上,也可安装在不同的计算机上,需要安装在其他计算机上时,要提供安装了MapGuide Server的计算机的IP地址。
MapGuide WebServer Extention支持的WebServer配置环境:
1) IIS Configuration(对初学者比较适合);
2) Bundled Configuration(支持PHP、Java开发);
3) Manual Configuration;

注:MapGuide需要ASP.NET 2.0.50727或更高版本的支持。
在IIS服务中选择mapguide站点,打开属性页面,选择ASP.NET标签查看ASP.NET 的版本信息,如果ASP.NET版本低于version 2.0.50727,请更新ASP.NET。

3、安装测试
安装好MapGuide Server和Extension后,可以访问以下地址测试是否安装成功:

(1)测试MapAgent
http://localhost/mapguide/mapagent/mapagent.fcgi?OPERATION=ENUMERATERESOURCES&VERSION=1.0.0&LOCALE=en&RESOURCEID=Library://&TYPE=&DEPTH=-1
默认用户名: Administrator
默认密码:admin
以上的用户名和密码区分大小写。
如果页面显示一XML文件,则安装成功。

(2)测试Site Administrator
http://localhost/mapguide/mapadmin/login.php
默认用户名: Administrator
默认密码:admin
以上的用户名和密码区分大小写。
如果可以登入Site Administrator页面,则安装成功。Site Administrator中可以修改所有的Server配置信息。

(3)测试Web Server Extensions
http://localhost/mapguide/mapviewerajax/ajaxviewer.aspx?WEBLAYOUT=Library://ATest.WebLayout
由于当前MapGuide中没有ATest.WebLayout,页面应该显示如下错误信息:
Resource was not found: Library://ATest.WebLayout,这表示Web Server Extension安装成功,并可以正常的接收和处理请求。

4、安装MapGuide示例数据
下载Mapguide示例数据Sheboygan.mgp。在Mapguide Server上装载Sheboygan示例数据的步骤如下:
(1)将Sheboygan.mgp文件拷贝到Packages目录中:
(2)打开Site Administrator:
http://localhost/mapguide/mapadmin/login.php
默认用户名: Administrator
默认密码:admin
(3)选择Configure Services菜单
(4)在Resource Services项中,目录信息应该与步骤(1)中相同:
MapGuideOpenSource安装目录Server/Packages
(5)选择Manage Packages菜单
(6)在Load Package项中选择Sheboygan.mgp,点击Load Package。
数据装载完毕后,状态栏会显示Load Succeeded信息。
如果装载不成功,可查看日志信息:MapGuideOpenSource安装目录/Server/Packages/Sheboygan.mgp.log
可用MapGuide Studio,则可以在其中查看示例数据;也可以使用http方式测试示例数据装载成功与否,打开:http://localhost/mapguide/mapagent/index.html,选择EnumerateResources选项,在Type 中输入 WebLayout,点击提交,如果示例数据装载成功,应该获得如下6个WebLayout:
Library://Samples/Sheboygan/Layouts/SheboyganPhp.WebLayout
Library://Samples/Sheboygan/Layouts/SheboyganPhpTiled.WebLayout
Library://Samples/Sheboygan/Layouts/SheboyganAsp.WebLayout
Library://Samples/Sheboygan/Layouts/SheboyganAspTiled.WebLayout
Library://Samples/Sheboygan/Layouts/SheboyganJsp.WebLayout
Library://Samples/Sheboygan/Layouts/SheboyganJspTiled.WebLayout

5、安装MapGuide示例程序
下载Mapguide示例Viewer程序dotnetviewersample。在Mapguide Server上安装示例程序dotnetviewersample的步骤如下:
(1)将dotnetviewersample文件夹拷贝到MapGuide WebServer Extention中的www的文件夹中;
(2)在IIS服务中打开mapguide站点,在dotnetviewersample文件夹上点击右键,选择属性,在“目录”标签的“应用程序设置”选项中点击“创建”,点击“确定”完成dotnetviewersample的配置。
配置好示例数据和dotnetviewersample示例程序后,可在浏览器中查看该示例程序的三种效果:
注:需要先安装DwfViewer软件才能在Internet Explorer中浏览DWF Viewer效果。
DWF Viewer效果:可以浏览矢量地图数据,只能在Internet Explorer上运行,URL:
http://localhost/mapguide/dotnetviewersample/dwfviewersample.aspx
AJAX Viewer效果:使用AJAX方式浏览地图数据(非矢量),可在Internet Explorer上或Firefox等浏览器上运行,URL:
http://localhost/mapguide/dotnetviewersample/ajaxviewersample.aspx
使用分片地图(tiled map)的AJAX Viewer效果:使用分片地图和AJAX方式浏览地图数据(非矢量),可在Internet Explorer上或Firefox等浏览器上运行,URL:
http://localhost/mapguide/dotnetviewersample/ajaxtiledviewersample.aspx
注:在步骤(2)中,如mapviewernet不是应用程序,需要按照步骤(2)的方式将mapviewernet配置为应用程序。

6、安装MapGuide DwfViewer
DwfViewer是Mapguide使用的矢量数据浏览器,安装了DwfViewer后即可在IE浏览器中浏览Mapguide矢量地图。
下载DwfViewerSetup_chs.exe安装Dwf浏览器。

7、安装MapGuide Studio 2007 试用版
MapGuide Studio 是地图管理工具,用户可以用Studio进行所见即所得的便捷管理,对地图数据进行配置和管理。MapGuide Studio只能安装在Windows平台。MapGuide Studio不是开源程序,需要购买。
下载autodeskmapguidestudio2007eval.exe安装MapGuide Studio。此版本是60天试用版本。
另外,MapGuide Web Studio提供了MapGuide Studio的部分功能。MapGuide Web Studio位于MapGuideOpenSource安装目录/WebServerExtensions/www/webstudio文件夹中, URL:
http://localhost/mapguide/webstudio/index.html
MapGuide Studio和MapGuide Web Studio登录的站点为: http://localhost/mapguide 默认用户名: Administrator
默认密码:admin

更多MapGuide的安装、配置和开发信息请参考资料:
InstallConfigureMgOpenSourceOnWindows.pdf 包含了MapGuide的安装和配置信息。
InstallMapGuideOpenSourceSamples.pdf包含了MapGuide示例数据和示例程序的安装和配置信息。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐