`

Data source-specific APIs 编程中的常用概念

阅读更多

首先介绍几个概念:

Server Objects

一个服务器对象就是一个粗粒的ArcObject

l  MapServer展示地图文档

l  GeocodeServer展示定位器

 

能从一个服务器对象获得其它相关的对象:

MapServer –>Map àLayer

 

Server context

1)可以把Server context 是一个进程 (ArcSOC.exe)

2)作为访问server object ArcObjects的入口

3)需要小心地管理Server Context的生命周期

 

 

服务器对象的生命周期

普通步骤(COM应用程序)

1.  连接

2.  创建一个 context

3.  访问 server object

4.  释放 context

 

服务器对象存活在上下文中。

调用CreateServerContext来获得一个包含专门服务器对象的服务器上下文。

只要持有服务器上下文,服务器对象和所有相关的其它对象就是活动的,可以使用。

一旦释放了服务器上下文,就不能再使用服务器对象或从上下文中获得任何其它对象。

在池式的服务器对象/上下文情况下,即使释放了服务器上下文,服务器也将处理其他用户/会话的服务器对象/上下文请求。

 

Context之间传递对象

1)一个Context不可以直接使用在另一个Context中创建的对象

2)必须序列化对象

3)对象必须实现IPersistStream接口 (serializable)

4)使用 SaveObjectLoadObject方法

 

geocode servers context中保存点对象

Dim sPoint As String = geocodeContext.SaveObject(geocodedPoint)

 

map’s server context中装载点对象

 Dim mapPoint As IPoint = mapContext.LoadObject(sPoint)

分享到:
评论

相关推荐

    ArcServer四种开发方式

    3. **Web ADF/Common Data Source API->Data Source Specific APIs** **页面ADF框架普通数据源API调用数据源具体API** 在这一级别,开发者可以直接调用特定数据源的API,进一步增强应用程序的功能和性能。例如,...

    应用Dephi 开发佳能照相机API

    When using the EDSDK libraries, you must call this API once before using EDSDK APIs. Parameters: In: None Out: None Returns: Returns EDS_ERR_OK if successful. In other cases, see EDSDKError....

    Core Software Security: Security at the Source

    Secure Coding Frameworks (APIs) Manual Code Review Independent Code Review and Testing (by Experts or Third Parties) Static Analysis Risk Assessment Methodology Integration of SDL with SDLC ...

    JavaScript APIs HTML5

    event.dataTransfer.setData("arbitrary", "data"); }); // On the target element: const targetElement = document.querySelector('.target'); targetElement.addEventListener('dragover', function(event) { ...

    ArcGIS Server 开发

    ArcGIS Engine包含丰富的控件和API,但需要授权,而data source specific APIs则无需授权即可在桌面环境中直接编程使用。 4. **移动应用开发**:针对特定移动设备,如PocketPC,开发者可以利用Mobile ADF,这是为...

    geronimo-book.pdf

    - **Server Resources:** Resources like data sources, JMS destinations, and mail sessions can be managed within Geronimo. - **Server Management & Deployment:** Geronimo provides tools for managing and ...

    ArcGISServer开发Flyingis.pdf

    - **data source specific developer APIs**:可在桌面应用中直接编程使用,无需授权。 5. **移动应用开发** Mobile ADF是为移动设备如PocketPC设计的开发框架,通过途径4利用ArcGIS Server Web services和SOAP ...

    iOS Fuondation Framework Reference

    It provides a rich set of high-level APIs for handling data, performing operations, and managing system resources. The framework includes classes, protocols, and other components that developers can ...

    selenium webdriver 3 practical guide 第二版

    Selenium WebDriver is an open source automation tool implemented through a browser-specific driver, which sends commands to a browser and retrieves results. The latest version of Selenium 3 brings ...

    impala-2.8

    - **ODBC Configuration**: Requires configuring the ODBC driver and establishing a DSN (Data Source Name). - **JDBC Configuration**: - **Configuring the JDBC Port**: Specifies the port used for JDBC ...

    elasticsearch-py-readthedocs-io-en-7.7.1.pdf

    print("%(timestamp)s %(author)s: %(text)s" % hit["_source"]) ``` #### Features (Page 9) The `elasticsearch-py` library offers several advanced features that enhance its functionality: ##### ...

    PhoneGap 3.x Mobile Application Development Hotshot.2014.pdf

    - **Native device API access:** Access native device features like camera, accelerometer, and geolocation through JavaScript APIs. - **Performance optimization:** Improved performance through ...

    ComponentOne 2012 V2 ActiveReports 7(完整安装)

    Its unique architecture allows the lean reporting engine to quickly read records from the data source and immediately render them to the output device. The simplicity of the design allows the data to...

    ComponentOne 2012 V2 ActiveReports 7 1/3

    Its unique architecture allows the lean reporting engine to quickly read records from the data source and immediately render them to the output device. The simplicity of the design allows the data to...

    ComponentOne 2012 V2 ActiveReports 7 3/3

    Its unique architecture allows the lean reporting engine to quickly read records from the data source and immediately render them to the output device. The simplicity of the design allows the data to...

    PLX PCI卡 linux驱动

    Simple application that calls various PLX APIs for a selected device & verifies return codes & parameters. The API calls made depend upon the type of device selected. - DSlave Demonstrates how to ...

Global site tag (gtag.js) - Google Analytics