This document is archived and information here might be outdated.  Recommended version.


ILocatorWorkspace Interface (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

ILocatorWorkspace Interface

Provides access to members for managing the locators in the locator workspace. Note: the ILocatorWorkspace interface has been superseded byILocatorWorkspace2. Please consider using the more recent version.

Product Availability

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

When To Use

Use the ILocatorWorkspace interface to manage the locators and locator styles in the locator workspace. You can use this interface to retrieve locators and locator styles from the locator workspace, as well as create, modify, and delete locators in the locator workspace.

Members

Description
Method AddLocator Adds a locator to the locator workspace.
Method AddLocatorStyle Adds a locator style.
Method CopyLocator Copies a locator.
Method DeleteLocator Deletes a locator.
Method GetLocator Gets a locator.
Method GetLocatorName Gets a LocatorName object.
Method GetLocatorStyle Gets a locator style.
Read-only property LocatorNames LocatorName objects in the locator workspace.
Read-only property Locators Locators in the locator workspace.
Read-only property Name The Name object for the locator workspace.
Method RenameLocator Renames a locator.
Method UpdateLocator Modifies the properties of a locator.

CoClasses that implement ILocatorWorkspace

CoClasses and Classes Description
AGSLocatorWorkspace (esriLocation) A locator workspace that exposes geocoding services from an ArcGIS Server.
DatabaseLocatorWorkspace (esriLocation) A locator workspace that stores locators in a Geodatabase.
LocalLocatorWorkspace (esriLocation) A locator workspace that stores locators in a file system.

Remarks

For some of the members of this interface, you must specify a Category string parameter. You can use categories to organize your locators and locator styles. All of the locators and locator styles provided with ArcGIS have a category of �Address�.

See Also

ILocatorWorkspace2 Interface | ILocatorWorkspace Interface | ILocatorWorkspaceName Interface | LocatorEnumerator Class | LocatorWorkspaceName Class | ILocatorWorkspaceName2 Interface | ILocatorManager Interface | LocalLocatorWorkspace Class | DatabaseLocatorWorkspace Class | IDatabaseLocatorWorkspace Interface | ILocatorManager2 Interface | LocatorManager Class | ILocatorManager.GetLocatorWorkspaceFromPath Method

.NET Samples

Find an address (Code Files: AddressForm) | Find the closest intersection from a point (Code Files: FindClosestIntersection) | Single line address geocoding (Code Files: SingleLineGeocodingForm)

.NET Related Topics

Creating an address locator | How to find the address closest to a point using reverse geocoding | How to geocode a single address | How to geocode a table of addresses | How to open locator workspaces | How to standardize an address | How to work with geocoding properties | LocationUI