Install mapguide and sample programs
Some materials come from your own translation, some information comes from the network, for your reference only, no copyright, please reprint.
1, InstallationMapguide Server:
** Download mgserversetup.exe and install mapguide server.
** You can use multiple computers to provide the mapguide server function. When you install mapguide server on multiple computers, you need to set one computer as the site server and other computers as the support server, when installing the support server, you must provide the IP address of the Site Server.
** The mapguide server (mgserver.exe) program is automatically started by default when the system is started. The service name is mapguide server (1.2) or mapguide server V2.0 (2.0 ). You can run the Net start/stop/restart "mapguide server V2.0" command to start/stop/restart the service.
2, InstallationMapguide webserver extensions
** Download mgwebserverextensionssetup.exe and install mapguide webserver extention.
** Mapguide server and mapguide webserver extention can be installed on the same computer or on different computers, the IP address of the computer on which the mapguide server is installed must be provided.
** The webserver configuration environment supported by mapguide webserver extention:
1) IIS configuration (suitable for beginners and supports ASP. NET development. It must be supported by ASP. NET 2.0.50727 or a later version );
2) bundled configuration (supports php development through FastCGI mode of Apache HTTP Server and Java Development through Apache Tomcat );
3) manual configuration;
3, Test installation results
After mapguide server and extension are installed, you can visit the following address to test whether the installation is successful:
(1) test mapagent
Http: // localhost/mapguide/mapagent. fcgi? Operation = enumerateresources & version = 1.0.0 & locale = en & resourceid = Library: // & type = & depth =-1
Default User name: Administrator
Default password: Admin
The above usernames and passwords are case sensitive.
If an XML file is displayed, the installation is successful.
(2) test site administrator
Http: // localhost/mapguide/mapadmin/login. php
Default User name: Administrator
Default password: Admin
The above usernames and passwords are case sensitive.
If you can log on to the site administrator page, the installation is successful. All server configuration information can be modified in site administrator.
(3) test Web Server Extensions
Http: // localhost/mapguide/mapviewerajax/ajaxviewer. aspx? Weblayout = Library: // atest. weblayout
Because the current mapguide does not contain atest. weblayout, the following error message should be displayed:
Resource was not found: Library: // atest. weblayout. This indicates that the Web Server Extension is successfully installed and can receive and process requests normally.
4, InstallationMapguide dwfviewer
Dwfviewer is the vector data browser used by mapguide. After dwfviewer is installed, you can browse the mapguide vector map in IE.
Download dwfviewersetup_chs.exe to install the DwF browser.
5, InstallationMapguideSample Data
** Download the sample data Sheboygan. MGP of mapguide.
** The steps for loading Sheboygan sample data on the mapguide server are as follows:
(1) copy the Sheboygan. MGP file to the packages directory (C:/program files/mapguideopensource2.0/Server/packages:
(2) open site administrator: http: // localhost/mapguide/mapadmin/login. php
Default User name: Administrator
Default password: Admin
(3) Select the configure services menu
(4) In the resource services item, the package folder directory information should be the same as that in step (1): mapguideopensource installation directory/Server/Packages
(5) Select the manage packages menu
(6) Select Sheboygan. MGP from the load package item and click load package.
After the data is loaded, the status bar displays the load succeeded information.
If the load fails, you can view the log information: mapguideopensource installation directory/Server/packages/Sheboygan. MGP. Log
Test successful:
If mapguide studio is available, you can view the sample data in it;
You can also use HTTP to test whether the sample data is successfully loaded. Open http: // localhost/mapguide/mapagent/index.html, select enumerateresources, enter weblayout in type, and click Submit, if the sample data is successfully loaded, obtain the following six weblayout files:
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, InstallationMapguideSample program
ASP. NET:
Download the mapguide sample viewer program dotnetviewersample. To install the sample program dotnetviewersample on the mapguide server, follow these steps:
(1) copy the dotnetviewersample folder to the WWW folder in mapguide webserver extention. If there is no bin folder in it, copy it from the bin in mapguide webserver extention mapviewernet. If yes, replace it;
(2) Open the mapguide site in the IIS service, right-click the dotnetviewersample folder, select properties, and click "CREATE" in the "application settings" option of the "directory" tab ", click "OK" to complete dotnetviewersample configuration.
After configuring the sample data and the dotnetviewersample sample program, you can view three effects of the sample program in the browser:
Note: You must install the dwfviewer software before you can view the effect of the DwF viewer in Internet Explorer.
You can browse vector map data and only run it on Internet Explorer. url:
Http: // localhost/mapguide/dotnetviewersample/dwfviewersample. aspx
Ajax viewer effect: You can use ajax to browse Map Data (non-vector) and run it on Internet Explorer or Firefox or other browsers. url:
Http: // localhost/mapguide/dotnetviewersample/ajaxviewersample. aspx
Use tiled map for Ajax Viewer: You can use a multipart map or ajax to browse Map Data (non-vector) and run it on Internet Explorer or Firefox or other browsers. url:
Http: // localhost/mapguide/dotnetviewersample/ajaxtiledviewersample. aspx
Note: in step (2), if mapviewernet is not an application, you must configure mapviewernet as an application in step (2.
PHP:
(1)download phpviewersample.zip address as https://mapguide.osgeo.org/downloads.html#samples
(2) decompress the package to C:/program files/mapguideopensource2.0/webserverextensions/www.
(3) test:
DwF Viewer: http: // localhost: 8008/mapguide/phpviewersample/dwfviewersample. php
You need to install or update the DwF viewer version 6.5.
Ajax Viewer: http: // localhost: 8008/mapguide/phpviewersample/ajaxviewersample. php
Http: // localhost: 8008/mapguide/phpviewersample/ajaxtiledviewersample. php
7, InstallationMapguides studio 2008Trial version
Mapguide studio is a map management tool. You can use Studio to conveniently manage what you see and what you get, and configure and manage map data. Mapguide studio can only be installed on Windows platforms. Mapguide studio is not an open-source program and must be purchased from Autodesk.
Download auto‑mapguidestudio2008eval.exe to install mapguide studio. This version is a 60-day trial version.
The sites that mapguide studio and mapguide web studio log on to are
Http: // localhost/mapguide
Default User name: Administrator
Default password: Admin
If the version is incompatible, install a patch to replace Autodesk. mapguide. Studio. Site. dll.
8,Mapguide web Studio
Mapguide web Studio provides some functions of mapguide studio. Mapguide web studio is located in the installation directory of mapguideopensource/webserverextensions/www/webstudio, URL: http: // localhost/mapguide/webstudio/index.html
The logon site, user name, and password of mapguide web studio are the same as those of mapguide studio.