首先介绍几个概念:
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)使用 SaveObject和LoadObject方法
‘在 geocode servers context中保存点对象
Dim sPoint As String = geocodeContext.SaveObject(geocodedPoint)
‘在map’s server context中装载点对象
Dim mapPoint As IPoint = mapContext.LoadObject(sPoint)
分享到:
相关推荐
3. **Web ADF/Common Data Source API->Data Source Specific APIs** **页面ADF框架普通数据源API调用数据源具体API** 在这一级别,开发者可以直接调用特定数据源的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....
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 ...
event.dataTransfer.setData("arbitrary", "data"); }); // On the target element: const targetElement = document.querySelector('.target'); targetElement.addEventListener('dragover', function(event) { ...
ArcGIS Engine包含丰富的控件和API,但需要授权,而data source specific APIs则无需授权即可在桌面环境中直接编程使用。 4. **移动应用开发**:针对特定移动设备,如PocketPC,开发者可以利用Mobile ADF,这是为...
- **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 ...
- **data source specific developer APIs**:可在桌面应用中直接编程使用,无需授权。 5. **移动应用开发** Mobile ADF是为移动设备如PocketPC设计的开发框架,通过途径4利用ArcGIS Server Web services和SOAP ...
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 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 ...
- **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 ...
print("%(timestamp)s %(author)s: %(text)s" % hit["_source"]) ``` #### Features (Page 9) The `elasticsearch-py` library offers several advanced features that enhance its functionality: ##### ...
- **Native device API access:** Access native device features like camera, accelerometer, and geolocation through JavaScript APIs. - **Performance optimization:** Improved performance through ...
Google-Specific Magic Smart Pointers cpplint Other C++ Features Reference Arguments Function Overloading Default Arguments Variable-Length Arrays and alloca() Friends Exceptions Run-Time Type ...
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...
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...
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...