com.esri.arcgis.location
Interface ILocatorManager2

All Superinterfaces:
ILocatorManager, Serializable
All Known Implementing Classes:
LocatorManager

public interface ILocatorManager2
extends ILocatorManager, Serializable

Provides access to members for manipulating located datasets and locator workspaces.

When To Use

Use the ILocatorManager interface to open locator workspaces, and to retrieve AttachedLocators from datasets.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
ILocatorWorkspace2, ILocatorManager2, AttachedLocator, DatabaseLocatorWorkspace, IAttachedLocator, ILocatorWorkspace, ILocatorManager.getLocatorWorkspaceFromPath(String), LocatorEnumerator, ILocatorWorkspaceName2, LocatorWorkspaceName, IDatabaseLocatorWorkspace, LocalLocatorWorkspace, ILocatorManager.hasLocatorAttached(com.esri.arcgis.geodatabase.IDatasetName), ILocatorManager, LocatorManager, ILocatorManager.getLocatorFromDataset(com.esri.arcgis.geodatabase.IDataset), ILocatorWorkspaceName

Method Summary
 ILocatorWorkspace getAGSLocatorWorkspace(IAGSServerConnectionName serverConnection)
          Returns the locator workspace for an ArcGIS server connection.
 
Methods inherited from interface com.esri.arcgis.location.ILocatorManager
getLocatorFromDataset, getLocatorWorkspace, getLocatorWorkspaceFromPath, hasLocatorAttached
 

Method Detail

getAGSLocatorWorkspace

ILocatorWorkspace getAGSLocatorWorkspace(IAGSServerConnectionName serverConnection)
                                         throws IOException,
                                                AutomationException
Returns the locator workspace for an ArcGIS server connection.

Remarks

An ArcGIS Server can serve GeocodeServers which can be used by ArcGIS like any other locator. Use this method to return a reference to an AGSLocatorWorkspace that contains locators that represent the GeocodeServers served by the ArcGIS Server. The serverConnection parameter is a reference to an AGSServerConnectionName object that represents the ArcGIS Server connection.

Product Availability

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

Parameters:
serverConnection - A reference to a com.esri.arcgis.gisclient.IAGSServerConnectionName (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.ILocatorWorkspace
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
IEnumServerObjectType, AGSLocatorWorkspace, IEnumServerObjectTypeInfo, GeocodeServer, ILocatorManager2.getAGSLocatorWorkspace(com.esri.arcgis.gisclient.IAGSServerConnectionName), ServerObject, ILocatorWorkspaceName2.getAGSServerConnectionName(), AGSAddressLocator