Experience of developing Web GIS using ArcGIS Server (1)

Source: Internet
Author: User

(For Windows operating system. Net Development Environment)

ArcGIS Server is the latest server product launched by ESRI. It can implement two main functions:
1. Development of powerful Web GIS systems;
2. Development of distributed GIS systems;
The kernel of ArcGIS Server is the same as that of ArcGIS Desktop and ArcGIS Engine. It is the ArcObjects library. The so-called Web GIS is nothing more than encapsulating ArcObjects with Web technology, while distributed development is implemented through DCOM.

The younger brother engaged in ArcIMS a few months ago and found it really painful to develop it. He spent the whole day tossing JavaScript + ArcXML. He was so depressed that he heard about some good things like ArcGIS Server, he suggested to the boss to switch to ArcGIS Server, and the boss agreed. So I developed and learned. I found a small number of available resources on the Internet, so I had to worry about it myself. It's not easy to start from scratch. This is not the case. I encountered two problems when I first got started. Fortunately, I have solved them all. Now I want to write them down and hope they will be helpful to new users like me.

The installation of ArcGIS Server is very simple. First install ArcGIS Server, then install dotnet adf, and finally add a server with arccatelog, and then add a serverobject so that you can perform development. The serverobject here is similar to the Service in ArcIMS. It should be a conceptual concept. Adding a serverobject requires an mxd or PMF file to save and manage the data to be released.

now you can start development.
open Visual Studio 2003 and open the new project dialog box. ESRI has prepared some ArcGIS Server projects templates for us, including map viewer web application and page layout web applicaiton, let's create a map viewer web application, select it, enter the project name, and click "OK, we found that a Web GIS Program that contains the basic data browsing and query functions has been created.
Well, open the default. aspx file and find that the webpage contains a map component, a toolbar component, a TOC component, and an overviewmap component. It seems similar to the C/S development mode. The map component and the overviewmap component have two mandatory attributes: Host and serverobject, which correspond to the server and serverobject we added in arccatelog respectively, and enter it. Set the buddy attribute of the TOC component and toolbar component. OK. You are done!

Run! Failed. An error occurred. Check whether the access was rejected. What is the problem? Remember the previous articleArticleIn Asp.net, access is often rejected due to permission reasons, and ArcGIS Server itself is the re-encapsulation of the COM components such as ArcObjects. This seems to be the case. Find this article and add a line in Web. config:
<Identity impersonate = "true" username = "Administrator" Password = "123456"/>
Run again. Wow, it's cool. A beautiful WebGIS is shown in front of you. You can browse, query, layer management, eagleeye navigation, and refer to the left-side navigation pane...
(I later found that an impersonation component is useless on the page. I checked its attributes and only one identity. Click it and you will find that... haha, it turned out that this component was used to do this. It was dizzy and wasted two hours of valuable time ...)

One rowCodeNo need to write. However, it is quite lost and there is no bottom in mind. How is this Web GIS implemented?

To be continued

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.