Autodesk infrastructure Map Server (AIMS)/mapguide API training materials-Chapter 3rd

Source: Internet
Author: User

Directory:

Autodesk infrastructure Map Server (AIMS)/mapguide API training materials-Chapter 2

Autodesk infrastructure Map Server (AIMS)/mapguide API training materials-Chapter 2

Autodesk infrastructure Map Server (AIMS)/mapguide API training materials-Chapter 2

Autodesk infrastructure Map Server (AIMS)/mapguide API training materials-Chapter 2

Autodesk infrastructure Map Server (AIMS)/mapguide API training materials-Chapter 2

Autodesk infrastructure Map Server (AIMS)/mapguide API training materials-Chapter 2

Autodesk infrastructure Map Server (AIMS)/mapguide API training materials-Chapter 2

Autodesk infrastructure Map Server (AIMS)/mapguide API training materials-Chapter 2

Autodesk infrastructure Map Server (AIMS)/mapguide API training material Chinese PPT download

 

This chapter discusses site services and resource services. As mentioned above, mapguide web extension APIs include eight services. When using these services on the page, you must first open a siteconnection to create these services. First, you must call the followingCodeTo initialize the network layer.

Mapguideapi. mginitializewebtier ("webconfig. ini ")

 

The webconfig. ini file is a text file that stores the Web extension configuration information. This file does not need to be changed. If you need to change it, you can view this document.

Infrastructure Map ServerRepositoryIs is an XML database that stores site data. This database contains the element source feature source, layer, and other resources. Note that for external Oracle SQL Server databases connected through data connection, repository actually stores a connection string. The repository is classified as permanent library: //, which is visible to all users. In addition, no session has a temporary warehouse. The resources stored in the temporary warehouse repository are only valid for the current user. Temporary Storage stores temporary resources, such as temporary layers.

 

We can use Resource Service to manipulate resources. As mentioned above, the resource service must have siteconnection created:Mguserinformation userinfo =NewMguserinformation (sessionid );
Siteconnection =NewMgsiteconnection (); siteconnection. Open (userinfo );
Mgresourceservice resourceservice = (mgresourceservice) siteconnection
. Createservice (mgservicetype. resourceservice );

 

The following are the most common methods for resource services. You can refer to the API reference to obtain the complete method list aims api reference.

Mgresourceservice: enumerateresources
Mgresourceservice: getresourcecontent
Mgresourceservice: setresource

Using these simple APIs can implement many interesting applications. The key is to understand the content of resources. For example, you need to understand layer definition for layer operations ). If you are not familiar with resource services, first take a look at the PPT in this chapter, and then make solution3 (here) in the sample code ). after completing this, you can read this blog intelligence landing page. ThisArticleThis article introduces the smart homepage of mapguide, which can implement conditional filtering of elements and view jump. These interesting applications are actually implemented through resource services. This example also provides the source code.

 

Training material PPT download en_aims_api_chapter_3

Download the sample code: here

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.