(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.
Good. 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? I have read an article about using COM components in Asp.net. Access is often denied due to permission reasons, and ArcGIS Server itself is a re-encapsulation of COM components such as ArcObjects, this is 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 ...)
No need to write a line of code. However, it is quite lost and there is no bottom in mind. How is this Web GIS implemented?