Objects in ArcGIS Server

Source: Internet
Author: User
Tags ipoint

We have several terms to explain below: (only for ry)

Screen: it is the type of the ry in. net, including the dot and line planes, which are located in system. Drawing.

Web ADF: A common geometric object in the common data source, which is located in ESRI. ArcGIS. ADF. Web. geometry.

ArcGIS Server soap: The ry type in the special data source ARCserver, which is located in ESRI. ArcGIS. ADF. arcgisserver.

ArcGIS Server ArcObjects: the AO remote proxy object used by ARCserver, that is, the common COM object.

ArcIMS: The ry type in the special data source ArcIMS, which is located in ESRI. ArcGIS. ADF. IMS. geometry.

 

Three types of ADF can be divided: one is the namespace of the ADF, the other is soap, and the other is AO.
For example, ESRI. ArcGIS. ADF. Web. Point
For example, ESRI. ArcGIS. ADF. arcgisserver. polylinen
For example, ESRI. ArcGIS. Geometry. ipoint.
The value object is under the arcgisserver soap class, and the COM object is under the AO class.

Http://blog.csdn.net/zengzhe/archive/2008/03/28/2224782.aspx

For ease of understanding, we call the client that requires the service and the service that provides the service as the server based on different roles. We know that in order to better support multiple data sources, adf9.2 adds the common API and value objects levels not available in adf9.0/9.1 On the basis of COM objects. At the same time, we have a better control granularity. Between value objects and COM objects, we can use it according to certain hierarchical design specifications as needed (such as improving performance.
Value objects are stored on the client and dependent on the client environment. The proxy object is also stored on the client, which is responsible for communicating with remote objects on the server. As needed, the proxy object serializes the local value object according to the requirements of the remote object and then transmits it to the server. The result of the remote object deserialization on the server is created locally. Web Service Description Language (WSDL) can automatically generate local value objects and proxy objects as needed. Both the ADF controls and common APIs use stateless local value objects. Therefore, you need to manually Save the status of local value objects.
In the Web Service world, all communications are stateless. Therefore, the server creates an object when receiving a request and releases the object after responding to the request. To reduce the overhead of the server, the server can adopt the connection pool technology when the state of the server object is uniform. Even to use this technology, the status of each customer is retained on the server or client, and the original status is restored after the service is obtained. For example, mapdescription adopted in the ADF. If the connection pool technology is not used, we must explicitly release server resources, such as servercontext. releasecontext (). If you want to refresh the client status to the server, you can use applymapdescriptiontoserver. If the remote service object is modified on the server, you can use refreshserverobjects () to refresh the service ().
In general, the data source type in the ADF interacts with the server using ArcGIS Server soap API technology (including ArcGIS Server local and ArcGIS Server Internet ). ArcGIS Server local data resources use DCOM proxy (such as mapserverdcomproxy) to serialize local value objects and communicate with server objects through soap, that is, soap over DCOM; the ArcGIS Server uses a Web Service proxy (such as mapserverproxy) to serialize local value objects and communicate with server objects through soap, that is, soap over HTTP. In particular, when you reach servercontext through servercontextinfo on ArcGIS Server local, you can directly communicate with arcobject through DCOM, just like adf9.0/9.1.
When facing ArcGIS Server local and ArcGIS Server Internet, we use a local value object in the ADF controls and common APIS; in the data source specific APIs, we use a COM Object for ArcGIS Server local. To facilitate the conversion, ArcGIS Server ADF provides the corresponding class: ESRI. arcGIS. ADF. arcgisserver. converter, ESRI. arcGIS. ADF. converter, ESRI. arcGIS. ADF. web. datasources. arcgisserver. converter, ESRI. arcGIS. ADF. web. datasources. IMS. converter, ESRI. arcGIS. ADF. web. UI. webcontrols. converter.

For example, objects accessed by developers at level I, II, and III are generally value objects relative to data sources.
At the Level IV, there are different answers based on different data sources.

 

See http://edndoc.esri.com/arcobjects/9.2/NET_Server_Doc/developer/ADF/access_datasource_api.htm

 

 

Http://hi.baidu.com/leyhui/blog/item/a129c6cc10e2ae1900e9285d.html

 

Here we will explain the geometric objects involved in ArcGIS Server with point:

1,System. Drawing.PointIs A. NET system object, which generally represents the screen coordinate. the click of the map is passed in by the toolbar event parameter.

ESRI. ArcGIS. ADF. Web. UI. webcontrols.PointeventargsPponteventargs = (ESRI. ArcGIS. ADF. Web. UI. webcontrols.Pointeventargs) ARGs;

System. Drawing.PointScreenpoint = pponteventargs. screenpoint;

2. ESRI. ArcGIS. ADF. Web. geometry.PointIt belongs to the ADF object, indicating the map coordinate, which is obtained through screen coordinate/ArcObjects Conversion

ESRI. ArcGIS. ADF. Web. geometry.PointAdfpoint = ESRI. ArcGIS. ADF. Web. geometry.Point. Tomappoint (screenpoint, adfmap. gettransformationparams (ESRI. ArcGIS. ADF. Web. geometry.Transformationdirection. Tomap ));

ESRI. ArcGIS. ADF. Web. Geometry. Point adfpoint =ESRI. ArcGIS. ADF. Web. datasources. arcgisserver. converter. toadfpoint (valuepoint );

ESRI. ArcGIS. ADF. Web. Geometry. Point adfpoint = ESRI. ArcGIS. ADF. Web. datasources. arcgisserver. converter. fromipoint (compoint );

3. ESRI. ArcGIS. ADF. arcgisserver.PointnIt is a soap object, also known as a value object. It is obtained through converting the coordinate of the adf map/ArcObjects COM object.

ESRI. arcGIS. ADF. arcgisserver. pointn valuepoint = ESRI. arcGIS. ADF. web. datasources. arcgisserver. converter . fromadfpoint (adfpoint);

/// // /// // /// // // /span>

ESRI. arcGIS. ADF. arcgisserver. pointn valuepoint = (ESRI. arcGIS. ADF. arcgisserver. pointn) ESRI. arcGIS. ADF. web. datasources. arcgisserver. converter. comobjecttovalueobject (compoint, servercontext, typeof (ESRI. arcGIS. ADF. arcgisserver. pointn);

4. ESRI. ArcGIS. geometry.IpointIs an ArcObjects object. In theory, it is a proxy object.The coordinate of the adf map/valueobject is converted

ESRI. ArcGIS. Geometry. ipoint compoint = (ESRI. ArcGIS. Geometry. ipoint) ESRI. ArcGIS. ADF. Web. CES. arcgisserver. converter. toigeometry (adfpoint, servercontext );

/// // /// // /// // // /span>

ESRI. arcGIS. ADF. arcgisserver. pointn compoint = (ESRI. arcGIS. ADF. arcgisserver. pointn) ESRI. arcGIS. ADF. web. datasources. arcgisserver. converter. valueobjecttocomobject (valuepoint, servercontext );

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.