内蒙古java团队

j2se,j2ee开发组
posts - 139, comments - 212, trackbacks - 0, articles - 65
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

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

2、安装MapGuide WebServer Extensions
下载MgWebServerExtensionsSetup.exe安装MapGuide WebServer Extention
MapGuide ServerMapGuide WebServer Extention可以安装在同一台计算机上,也可安装在不同的计算机上,需要安装在其他计算机上时,要提供安装了MapGuide Server的计算机的IP地址。
MapGuide WebServer Extention支持的WebServer配置环境:
1) IIS Configuration(对初学者比较适合);
2) Bundled Configuration(支持PHPJava开发);
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 ServerExtension后,可以访问以下地址测试是否安装成功:

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 DwfViewer
DwfViewerMapguide使用的矢量数据浏览器,安装了DwfViewer后即可在IE浏览器中浏览Mapguide矢量地图。
下载DwfViewerSetup_chs.exe安装Dwf浏览器。

5、安装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项中,Package folder目录信息应该与步骤(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,点击提交,如果示例数据装载成功,应该获得如下6WebLayout
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

6、安装MapGuide示例程序
下载Mapguide示例Viewer程序dotnetviewersample。在Mapguide Server上安装示例程序dotnetviewersample的步骤如下:
1)将dotnetviewersample文件夹拷贝到MapGuide WebServer Extention中的www的文件夹中,如果里面没有bin文件夹,则从MapGuide WebServer Extention mapviewernet中的bin拷贝进去,如果有则替换;
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配置为应用程序。


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 StudioMapGuide Web Studio登录的站点为:
http://localhost/mapguide
默认用户名: Administrator
默认密码:admin
如果出现版本不兼容的问题,则用Autodesk.MapGuide.Studio.Site.dll替换

更多MapGuide的安装、配置和开发信息请参考资料:
InstallConfigureMgOpenSourceOnWindows.pdf 包含了MapGuide的安装和配置信息。
InstallMapGuideOpenSourceSamples.pdf包含了MapGuide示例数据和示例程序的安装和配置信息。
安装完MapGuidedotnetviewsample后,在IIS的目录下面,会见到如下的一个文件结构:
在该文件结构中,mapviewerajax, mapviewerdwf, mapviewernet三个文件包含特定功能函数的aspx文件,这些aspx文件不能被直接浏览,而是给其它实例,如dotnetviewersample,提供实现的函数,其它实例借助于这些包含特定功能的aspx文件实现自己的操作,即通过传递参数间接调用这aspx文件。
如实例调用实例部分代码:<frame src="/mapguide/mapviewernet/ajaxviewer.aspx?SESSION=<%= sessionId %>&WEBLAYOUT=<%= webLayout %>"Mapagent文件夹里面主要是html,php文件,是把服务端解译给客户端时需要的一些文件。



8、遇到了访问IIS元数据库失败问题
在运行时候,可能会遇到了访问IIS元数据库失败的错误。错误提示为:用于运行 ASP.NET 的进程帐户必须具有对 IIS 元数据库(如 IIS://servername/W3SVC)的读访问权。这个问题是由于先安装VS 2005,后安装IIS才出现的。
解决办法如下:
在开始菜单中打开 "Microsoft .NET Framework SDK V2.0"目录下的SDK 命令提示符,打开以后在命令提示符中运行aspnet_regiis -r就可以了,当然把-r改成-i也可以,在xp中推荐用-r,在2K中推荐用-i
如果你安装的只是.net Framework,那么可以到下面的目录运行同样的命令:%Systemroot%\Microsoft.NET\Framework\v2.0.50727

9AutoDesk MapGuide版本冲突问题
替换AutoDesk中的Autodesk.MapGuide.Studio.Site.dll库,在附件Autodesk.MapGuide.Studio.Site.rar中有说明解决问题的dll及说明。
具体参见Autodesk.MapGuide.Studio.Site.rar解决该问题。

10AutoDesk MapGuide无法加载栅格问题
利用附件rasterconfig.rar中的rasterconfig.php加载栅格数据即可,在附件rasterconfig.rar中有说明解决问题的说明。
具体参见rasterconfig.rar解决该问题。


常用到的链接
http://localhost/mapguide/mapadmin/login.php
http://localhost/mapguide/mapagent/index.html
http://localhost/mapguide/webstudio/index.html
http://localhost/mapguide/rasterconfig.php (*添加栅格页面*)
http://localhost/mapguide/dotnetviewersample/dwfviewersample.aspx
http://localhost/mapguide/dotnetviewersample/ajaxviewersample.aspx
http://localhost/mapguide/dotnetviewersample/ajaxtiledviewersample.aspx


评论

# re: MapGuide安装常见问题及解决办法  回复  更多评论   

2011-05-26 19:59 by 阿发生的
哀伤的发生大幅

# re: MapGuide安装常见问题及解决办法  回复  更多评论   

2011-08-04 17:21 by chance87
您好!
我安装了MapGuideOpenSource-2.2.0.5703-Release.exe


测试MapAgent
http://localhost:8008/mapguide/mapagent/mapagent.fcgi?OPERATION=ENUMERATERESOURCES&VERSION=1.0.0&LOCALE=en&RESOURCEID=Library://&TYPE=&DEPTH=-1
通过;
测试Site Administrator
http://localhost:8008/mapguide/mapadmin/login.php
通过;
测试Web Server Extensions
http://localhost:8008/mapguide/mapviewerajax/ajaxviewer.aspx?WEBLAYOUT=Library://ATest.WebLayout
出现503错误:
Service Temporarily Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Apache Server at localhost Port 8008

请问可能是那里出现了问题?多谢!

# re: MapGuide安装常见问题及解决办法[未登录]  回复  更多评论   

2011-12-21 08:35 by test
config目录下有个workers.properties需要编辑

# re: MapGuide安装常见问题及解决办法  回复  更多评论   

2012-11-15 16:02 by yinchuanqi
你这个问题是tomcat没有启动。

# re: MapGuide安装常见问题及解决办法  回复  更多评论   

2012-11-15 16:02 by yinchuanqi
你这个问题是tomcat没有启动。

# re: MapGuide安装常见问题及解决办法  回复  更多评论   

2012-11-15 16:02 by yinchuanqi
你这个问题是tomcat没有启动。

只有注册用户登录后才能发表评论。


网站导航: