Use ARCserver to implement map query (without controls)

Source: Internet
Author: User

For project reasons, the first contact with ARCserver needs to be developed using ARCserver. Function: Enter the number of a plot. You must use WMS to return an image of the exterior rectangle of the plot.

My implementation method is to use the transfer method, which means that I create a page and put it on the server. After the client fills in the block number, it will directly submit it to this page; on this page, you can use the ARCserver API to find the corresponding plot, find the coordinates of the external rectangle of the plot, synthesize the WMS service address of the ARCserver, and redirect it to this address.

The problem is how to write this page in the middle? After constant exploration, and constantly accessing the Internet to find information, we finally achieved this function.

The procedure is as follows:

    1. 1. Specify the user used for the connection.
    2. 2. Connect to the server.
    3. 3. Get the SOM object.
    4. 4. Set the corresponding map name and service type to obtain the context (iservercontext ).
    5. 5. Obtain imapserverobjects.
    6. 6. Get the IMAP object through imapserverobjects.
    7. 7. Obtain the layers and attributes to be queried.
    8. 8. Set the filter used for query.
    9. 9. query by calling search
    10. 10. processing result

The next article will be combinedCodeLet's talk about it (click to view details ).

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.