`

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 4.Data Source Specific APIs 直接使用数据源具体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 ...

    Mastering Play Framework for Scala(PACKT,2015)

    Play Framework is an open source web application framework that is written in Java and Scala. It follows the Model-View-Controller architectural pattern and enables the user to employ Scala for ...

    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 ...

    Hadoop权威掼.pdf

    * Learn the Hadoop Distributed File System (HDFS), including ways to use its many APIs to transfer data * Write distributed computations with MapReduce, Hadoop's most vital component * Become familiar...

    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 ...

    Google C++ Style Guide(Google C++编程规范)高清PDF

    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 ...

    2009-5出版的《Programming with the Google SDK》

    This practical book provides the concepts and code you need to develop software with Android, the open-source platform for cell phones and mobile devices that's generating enthusiasm across the ...

    eac3to V3.17

    * fixed: audio delay was incorrect when 1st m2ts part contained no audio data * fixed: very small WAV files were not detected correctly * fixed: "eac3to source.eac3 dest.dts -core" crashed v3.12 * ...

    Spring.Persistence.with.Hibernate.2nd.Edition.1484202694

    Persistence is an important set of techniques and technologies for accessing and using data, and ensuring that data is mobile regardless of specific applications and contexts. In Java development, ...

    Professional.MFC.with.VC6

    Shell APIs The Shell Namespace The Taskbar Notification Area Summary Chapter 10: Utility and Exception Classes CStrings Constructing CString Objects CString Operators CStrings and String ...

    julia-1.1.0-win64

    Current stable release...Call C functions directly (no wrappers or special APIs needed) Powerful shell-like capabilities for managing other processes Lisp-like macros and other metaprogramming facilities

    Android Application Development

    learn the concepts and architecture of a specific feature set, including views, maps, location-based services, persistent data storage, 2D and 3D graphics, media services, telephony services, and ...

    VB编程资源大全(英文源码 API)

    The code has been tested under NT4 SP6a<END><br>31,passdemo.zip This is a very good example of how to use the registry to save data. It shows how to create, store and save a password to the ...

    javacv-platform-1.3.3-src

    You may also find it useful to refer to the source code of ProCamCalib and ProCamTracker as well as examples ported from OpenCV2 Cookbook and the associated wiki pages. Please keep me informed of ...

Global site tag (gtag.js) - Google Analytics