ArcObjects Library Reference (GlobeCore)  

GlobeServer CoClass

A Globe Server class that serves Globe Tiles.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

The GlobeServer component provides programmatic access to the contents of a Globe document on disk, and serves globe data tiles of the layers in the 3dd document. GlobeServer is an efficient means of serving globe optimized data for web service access by globe clients.

 

Interfaces

Interfaces Description
IGlobeServer Provides access to members that support Globe server operations.
IGlobeServer2 Provides access to the objects used by the Globe server.
IGlobeServer3 Provides access to the objects used by the Globe server.
IGlobeServer4 Provides access to the objects used by the Globe server.
IGlobeServerObjects Provides access to the objects used by the Globe server.
IGlobeServerSetup Provides access to members for initializing a Globe server.
ILogSupport (esriSystem) Provides access to methods for initializing an object for logging.
IObjectActivate (esriSystem) Provides access to methods for activating and deactivating objects.
IObjectConstruct (esriSystem) Provides access to methods for constructing an object.
IRequestHandler (esriSystem) Provides access to members that control handing of request messages.
IRequestHandler2 (esriSystem) Provides access to members that control handing of request messages.
IRESTRequestHandler (esriSystem) Provides access to REST request for SO or SOE.
IServerObject (esriServer) Provides access to properties of a map or geocode server object.
IServerObjectExtensionManager (esriServer) Provides access to members that help locate installed server object extensions.

Remarks

The GlobeServer coclass gives you access to an ArcGIS Globe layer bound to a GlobeServer object. It also allows GlobeServer layers to be queried and identified (via the Find and Identify methods). GlobeServer can be used in desktop or Internet development environments. In a desktop environment, GlobeServer objects can be created in-process within your application. GlobeServer objects are run within ArcGIS for Server.

ArcGIS for Desktop and ArcGIS Engine developers can also consume GlobeServer objects via the Server API. The GlobeServer object always works in a stateless manner. That means, unlike MapServer objects, GlobeServer objects are always exposed as pooled objects, and you can only use them to gain access to finer grained ArcObjects. Note that you will not be able to make permanent changes, as a non-pooled mode of operation is not supported by the GlobeServer objects. 

Use GISServerConnection to connect to the GIS server.

The GlobeServer coclass contains several interfaces with basic functions for displaying (IGlobeServer) and querying (IGlobeServer, IGlobeServerObjects, and IGlobeServerSetup) a Globe layer.

[C#]

//pass the URL address eg. http://myGlobeServer:6800/arcgis/services

private IAGSServerConnection ConnectToServer(string ServerConnection

{

  //Create the ArcGIS connection...

  IAGSServerConnectionName pAGSServerConnectionName = new AGSServerConnectionNameClass();

 

  //populate IpropertySet2<

  IPropertySet2 pProps = new PropertySetClass();

 

   if (ServerConnection.StartsWith("http://myGlobeServer:6080/"))

      pProps.SetProperty("URL", ServerConnection);

 

   else

   {

      MessageBox.Show("not a valid server connection");

      return;

   }

 

   //set propeties and return object

   pAGSServerConnectionName.ConnectionProperties = pProps;

           

   IName pName;

   pName = (IName)pAGSServerConnectionName;

 

   return (IAGSServerConnection)pName.Open();

}

 

[C++]