ArcGis Server develops Web GIS novice experience (i)
Source: Internet
Author: User
ArcGIS Server is the newest server end of ESRI, which can achieve two major functions:
1, the development of a powerful web GIS system;
2, the development of distributed GIS system;
The ArcGIS server's kernel, like ArcGIS desktop and ArcGIS engine, is the Arcobjects library. The so-called web GIS, in fact, is simply to use web technology to encapsulate Arcobjects only, and distributed development is implemented through DCOM.
Little brother a few months ago ArcIMS, found that development is really painful ah, all day is toss javascript+arcxml, depressed dead, heard of ArcGIS server such a good thing, a little understanding, then to the boss suggested to ArcGIS server, The boss actually agreed. So he developed the study. Online looked looked for a moment, found that the available resources are very few, had to ponder. Starting from scratch is really not easy ah, this is not, just started to encounter two problems, fortunately have been resolved, and now write down, I hope that the same novice with me to help.
ArcGIS Server installation is very simple, first install ArcGIS server, then install the dotnet ADF, and finally add a Server with Arccatelog, and then add a serverobject, so that can be developed. Here the Serverobject and ArcIMS in the service is very similar, in fact, should be a concept of things. Adding a serverobject requires a mxd or PMF file to hold and manage the data that needs to be published.
Well, now it's time to start developing.
Open Visual Studio 2003 to open the New Project dialog box and discover that ESRI has prepared some of the ArcGIS Server projects templates for us, including the map Viewer Web application,page Layout Web Applicaiton and so on, we will build a map Viewer Web application Bar, select it, enter the project name, and then click on the "OK" button, we found a already contains basic data browsing and query function of the WEB GIS program has been built.
OK, open the Default.aspx file and discover that the page contains a map component, a toolbar component, a TOC component, a Overviewmap component, and so on. It seems to be similar to the C/s development model, it's cool. The map component and the Overviewmap component have two required attributes: Host and Serverobject, which correspond to the server and the Serverobject we added in Arccatelog, respectively. Then set the TOC component and the toolbar component's buddy properties, OK.
Run. Gee, there is a mistake, look intently, the original is the visit refused, this is how to go on. I remember seeing an article, saying that COM components are used in asp.net, often because of access denials due to permission reasons, and ArcGIS server itself is a arcobjects of these COM components. To find this article, you should add a line to the web.config:
<identity impersonate= "true" Username= "Administrator" password= "123456"/>
Run again, wow, cool, a beautiful webgis show in front of. Can browse, query, layer management, Eagle Eye Navigation, as well as pointing to the north pin ...
(later found on the page also a component called impersonation useless, looked at its properties, only one identity, click it, you will find ...) Oh, the original component is used to do this, halo, and waste my two hours of valuable time ...)
A line of code is not written, cool. But also very frustrated, no bottom in mind, this web GIS is how to achieve it.
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.