|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INALocatorFeatureAgent2
Provides access to properties of the feature locator agent.
The INALocatorFeatureAgent2 interface allows you to specify a locator for spatial searching on a network source (a feature class).
There are properties to constrain the locator to a particular subtype. You can also specify a where clause to constrain the locator to only search on a subset of features. This is useful if you don't want to locate on features that may be restricted.
You need to call the Bind method after setting these properties before using the locator agent.
Method Summary | |
---|---|
String |
getFullWhereClause()
The full where clause including the subtype predicate in the UseSubtype case. |
String |
getWhereClause()
The where clause to filter candidate locations not including the subtype predicate in the UseSubtype case. |
void |
setWhereClause(String whereClause)
The where clause to filter candidate locations not including the subtype predicate in the UseSubtype case. |
Methods inherited from interface com.esri.arcgis.networkanalyst.INALocatorFeatureAgent |
---|
getSnapType, getSourceName, getSubtypeCode, isUseSubtype, setSnapType, setSourceName, setSubtypeCode, setUseSubtype |
Method Detail |
---|
void setWhereClause(String whereClause) throws IOException, AutomationException
The WhereClause specifies the user-defined portion of the where clause on the spatial filter that is used to constrain the features searched within the source feature class when finding the closest network location.
This is useful if you don't want to locate on features that may be restricted or otherwise undesirable to search on. For example, if you are using StreetMap network data, streets with a Speed of 1 are considered restricted. Thus, you may want to specify a where clause of "SPEED > 1" to ensure there streets are not considered when finding network locations.
whereClause
- The whereClause (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getWhereClause() throws IOException, AutomationException
The WhereClause specifies the user-defined portion of the where clause on the spatial filter that is used to constrain the features searched within the source feature class when finding the closest network location.
This is useful if you don't want to locate on features that may be restricted or otherwise undesirable to search on. For example, if you are using StreetMap network data, streets with a Speed of 1 are considered restricted. Thus, you may want to specify a where clause of "SPEED > 1" to ensure there streets are not considered when finding network locations.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getFullWhereClause() throws IOException, AutomationException
The FullWhereClause returns the where clause on the spatial filter that is used to constrain the features searched within the source feature class when finding the closest network location.
It is a concatenation of the WhereClause property and the subtype constraint set by the UseSubtype and SubytpeCode properties.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |