|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.location.RouteMeasureLocator
public class RouteMeasureLocator
Route measure locator object.
A location is a place on the earth. Locators know how to transform a spatial description into a shape that can be placed on a map. Examples of locations include addresses, xy coordinates, place names and route.
A route locator knows how to transform a route location into a shape. A route location can represent either a point along a route or a segment along a route between two points.
A RouteMeasureLocator is one type of route locator where a route location's position is determined by the measure values along a given route.
A RouteMeasureLocator object is created via its name object counterpart, RouteMeasureLocatorName.
Constructor Summary | |
---|---|
RouteMeasureLocator(Object obj)
Construct a RouteMeasureLocator using a reference to such an object returned from ArcGIS Engine or Server. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
String |
getCategory()
Category of the locator. |
String |
getDescription()
Description of the locator. |
IEnvelope |
getExtent()
The route locator's extent (same a route feature class' extent). |
ILocatorName |
getFullName()
The Name object for the locator. |
ILocatorWorkspace |
getLocatorWorkspace()
The locator workspace that contains the locator. |
int |
getMeasureUnit()
The units of the route measures. |
String |
getName()
Name of the locator. |
IFeatureClass |
getRouteFeatureClass()
The route feature class (Polyline with M feature class). |
void |
getRouteGeometry(IRouteLocation routeLocation,
IGeometry[] routeGeometry,
int[] locatingError)
The route(s) corresponding to the route location. |
int |
getRouteIDFieldIndex()
The field index of the route identifier. |
String |
getRouteIDFieldName()
The route identifier field from the route feature class. |
String |
getRouteIDFieldNameDelimited()
The delimited route identifier field of the route feature class. |
String |
getRouteWhereClause()
The where clause that limits the routes events can be located on. |
ISpatialReference |
getSpatialReference()
The route locator's spatial reference (same as route feature class' spatial reference). |
ILocatorUI |
getUserInterface()
User interface for the locator. |
int |
hashCode()
the hashcode for this object |
IEnumRouteIdentifyResult |
identify(IEnvelope searchEnvelope,
String whereClause)
Identify route locations in an envelope. |
boolean |
isHasSpatialIndex()
Indicates if the route feature class has a spatial index. |
boolean |
isHasZs()
Indicates whether the route locator is Z-Aware. |
boolean |
isRouteIDIsIndexed()
Indicates if the route ID has an index. |
boolean |
isRouteIDIsString()
Indicates if the route identifier field type is string. |
boolean |
isRouteIDIsUnique()
Indicates whether the route ID is unique (Obsolete). |
void |
locate(IRouteLocation routeLocation,
IGeometry[] result,
int[] locatingError)
Locates a point or line route location. |
void |
locateRow(IRouteEventProperties eventProperties,
IRow row,
IGeometry[] result,
int[] locatingError)
Locates an event table row containing a point or line route location. |
void |
setDescription(String description)
Description of the locator. |
void |
setRouteWhereClause(String whereClause)
The where clause that limits the routes events can be located on. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public RouteMeasureLocator(Object obj) throws IOException
obj
to RouteMeasureLocator
. *
RouteMeasureLocator o = (RouteMeasureLocator)obj; // will not work
RouteMeasureLocator o = new RouteMeasureLocator(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
IOException
- if there are interop problems
RouteMeasureLocator theRouteMeasureLocator = (RouteMeasureLocator) obj;
Method Detail |
---|
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getName() throws IOException, AutomationException
Locators and locator styles stored in an ArcSDE locator workspace are prefixed by the name of the ArcSDE user that owns the locator styles, as in "SDE.US Streets with Zone".
getName
in interface ILocator
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getDescription() throws IOException, AutomationException
getDescription
in interface ILocator
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDescription(String description) throws IOException, AutomationException
setDescription
in interface ILocator
description
- The description (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getCategory() throws IOException, AutomationException
The Category property returns a string indicating the category to which the locator belongs. There are two categories that are defined for locators provided with ArcGIS:
getCategory
in interface ILocator
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ILocatorUI getUserInterface() throws IOException, AutomationException
The UserInterface property returns an object that you can use to display the user interfaces for the locator.
getUserInterface
in interface ILocator
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IFeatureClass getRouteFeatureClass() throws IOException, AutomationException
getRouteFeatureClass
in interface IRouteLocator
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getRouteIDFieldName() throws IOException, AutomationException
getRouteIDFieldName
in interface IRouteLocator
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getRouteIDFieldIndex() throws IOException, AutomationException
getRouteIDFieldIndex
in interface IRouteLocator
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getRouteIDFieldNameDelimited() throws IOException, AutomationException
getRouteIDFieldNameDelimited
in interface IRouteLocator
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isRouteIDIsUnique() throws IOException, AutomationException
isRouteIDIsUnique
in interface IRouteLocator
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isRouteIDIsString() throws IOException, AutomationException
isRouteIDIsString
in interface IRouteLocator
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setRouteWhereClause(String whereClause) throws IOException, AutomationException
setRouteWhereClause
in interface IRouteLocator
whereClause
- The whereClause (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getRouteWhereClause() throws IOException, AutomationException
getRouteWhereClause
in interface IRouteLocator
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getMeasureUnit() throws IOException, AutomationException
getMeasureUnit
in interface IRouteLocator
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnvelope getExtent() throws IOException, AutomationException
getExtent
in interface IRouteLocator
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISpatialReference getSpatialReference() throws IOException, AutomationException
getSpatialReference
in interface IRouteLocator
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isHasSpatialIndex() throws IOException, AutomationException
isHasSpatialIndex
in interface IRouteLocator
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void locate(IRouteLocation routeLocation, IGeometry[] result, int[] locatingError) throws IOException, AutomationException
locate
in interface IRouteLocator
routeLocation
- A reference to a com.esri.arcgis.location.IRouteLocation (in)result
- A reference to a com.esri.arcgis.geometry.IGeometry (out: use single element array)locatingError
- A com.esri.arcgis.geodatabase.esriLocatingError constant (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void locateRow(IRouteEventProperties eventProperties, IRow row, IGeometry[] result, int[] locatingError) throws IOException, AutomationException
locateRow
in interface IRouteLocator
eventProperties
- A reference to a com.esri.arcgis.geodatabase.IRouteEventProperties (in)row
- A reference to a com.esri.arcgis.geodatabase.IRow (in)result
- A reference to a com.esri.arcgis.geometry.IGeometry (out: use single element array)locatingError
- A com.esri.arcgis.geodatabase.esriLocatingError constant (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getRouteGeometry(IRouteLocation routeLocation, IGeometry[] routeGeometry, int[] locatingError) throws IOException, AutomationException
getRouteGeometry
in interface IRouteLocator
routeLocation
- A reference to a com.esri.arcgis.location.IRouteLocation (in)routeGeometry
- A reference to a com.esri.arcgis.geometry.IGeometry (out: use single element array)locatingError
- A com.esri.arcgis.geodatabase.esriLocatingError constant (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumRouteIdentifyResult identify(IEnvelope searchEnvelope, String whereClause) throws IOException, AutomationException
identify
in interface IRouteLocator2
searchEnvelope
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)whereClause
- The whereClause (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isHasZs() throws IOException, AutomationException
isHasZs
in interface IRouteLocator2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isRouteIDIsIndexed() throws IOException, AutomationException
isRouteIDIsIndexed
in interface IRouteLocator2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ILocatorName getFullName() throws IOException, AutomationException
Returns a reference to a LocatorName object that represents the locator.
getFullName
in interface ILocatorDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILocatorName
,
LocatorName
,
ILocatorWorkspace.getLocatorName(String)
public ILocatorWorkspace getLocatorWorkspace() throws IOException, AutomationException
Returns a reference to the locator workspace that contains the locator.
getLocatorWorkspace
in interface ILocatorDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILocatorWorkspace2
,
ILocatorManager2
,
DatabaseLocatorWorkspace
,
ILocatorWorkspace
,
ILocatorManager.getLocatorWorkspaceFromPath(String)
,
LocatorEnumerator
,
ILocatorWorkspaceName2
,
LocatorWorkspaceName
,
IDatabaseLocatorWorkspace
,
LocalLocatorWorkspace
,
ILocatorManager
,
LocatorManager
,
ILocatorWorkspaceName
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |