Interface IUtilityNetworkQueryTracer
- Namespace
- ESRI.ArcGIS.Geodatabase
- Assembly
- ESRI.Server.Geodatabase.dll
Provides access to members that supply utility network query tracer information.
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("190CCDAB-1679-4923-BC92-7D91D69B9189")]
public interface IUtilityNetworkQueryTracer
Properties
TraceConfiguration[int]
Returns the trace configuration for the tier with the given tier ID.
IUNTraceConfiguration TraceConfiguration[int TierID] { get; }
Parameters
TierIDint
Property Value
Methods
AttributeNameToWeightIDMapping(esriElementType, out IStringArray, out ILongArray)
Returns the attribute name to weight ID mappings.
void AttributeNameToWeightIDMapping(esriElementType ElementType, out IStringArray attributeNames, out ILongArray weightIDs)
Parameters
ElementTypeesriElementTypeattributeNamesIStringArrayweightIDsILongArray
Remarks
Weights are used by the index to store attribute information, and to get an attribute value from the index; you need a weight ID.
private void GetWeightAndAttributeInformation(IBaseNetwork baseNetwork)
{
IUtilityNetworkQuery utilityNetworkQuery = baseNetwork.CreateQuery();
IUtilityNetworkQueryTracer utilityNetworkQueryTracer = utilityNetworkQuery as IUtilityNetworkQueryTracer;
IStringArray attributeNames;
ILongArray weightIDs;
utilityNetworkQueryTracer.AttributeNameToWeightIDMapping(esriElementType.esriETJunction, out attributeNames, out weightIDs);
// Results
string attributeName = attributeNames?.Element[0];
int? weight = weightIDs?.Element[0];
}
AttributeUsageTypeToWeightIDMapping(esriElementType, out ILongArray, out ILongArray)
Returns the attribute usage type to weight ID mappings.
void AttributeUsageTypeToWeightIDMapping(esriElementType ElementType, out ILongArray attributeUsageTypes, out ILongArray weightIDs)
Parameters
ElementTypeesriElementTypeattributeUsageTypesILongArrayweightIDsILongArray
AttributesForFeatures(esriElementType, ILongLongArray, bool, IStringArray, IArray, out ILongArray, out IStringArray, out ILongArray, out ILongArray, out ILongArray, out ILongArray, out IDoubleArray, out IDoubleArray, out IArray, out IArray, out IArray)
Returns feature information including geometry, network attribute, and field information.
void AttributesForFeatures(esriElementType ElementType, ILongLongArray EIDs, bool IncludeGeometry, IStringArray NetworkAttributeNames, IArray ResultTypeFields, out ILongArray networkSourceIDs, out IStringArray GlobalIDs, out ILongArray objectIDs, out ILongArray TerminalIDs, out ILongArray AssetGroupCodes, out ILongArray assetTypeCodes, out IDoubleArray positionFroms, out IDoubleArray positionTos, out IArray geometries, out IArray networkAttributeValues, out IArray fieldValues)
Parameters
ElementTypeesriElementTypeEIDsILongLongArrayIncludeGeometryboolNetworkAttributeNamesIStringArrayResultTypeFieldsIArraynetworkSourceIDsILongArrayGlobalIDsIStringArrayobjectIDsILongArrayTerminalIDsILongArrayAssetGroupCodesILongArrayassetTypeCodesILongArraypositionFromsIDoubleArraypositionTosIDoubleArraygeometriesIArraynetworkAttributeValuesIArrayfieldValuesIArray
Remarks
This is used during export subnetwork. The user can choose to export network attributes directly (networkAttributeValues) or field values (fieldValues).
ConnectivityFeatures(ILongLongArray, bool, out ILongArray, out IStringArray, out ILongArray, out IDoubleArray, out IDoubleArray, out IArray, out ILongArray, out IStringArray, out ILongArray, out ILongArray, out IArray, out ILongArray, out IStringArray, out ILongArray, out ILongArray, out IArray)
Returns feature information for the given set of edge eids as well as their from and to junctions.
void ConnectivityFeatures(ILongLongArray edgeEIDs, bool IncludeGeometry, out ILongArray viaNetworkSourceIDs, out IStringArray viaGlobalIDs, out ILongArray viaObjectIDs, out IDoubleArray viaPositionFroms, out IDoubleArray viaPositionTos, out IArray viaGeometries, out ILongArray fromNetworkSourceIDs, out IStringArray fromGlobalIDs, out ILongArray fromObjectIDs, out ILongArray fromTerminalIDs, out IArray fromGeometries, out ILongArray toNetworkSourceIDs, out IStringArray toGlobalIDs, out ILongArray toObjectIDs, out ILongArray toTerminalIDs, out IArray toGeometries)
Parameters
edgeEIDsILongLongArrayIncludeGeometryboolviaNetworkSourceIDsILongArrayviaGlobalIDsIStringArrayviaObjectIDsILongArrayviaPositionFromsIDoubleArrayviaPositionTosIDoubleArrayviaGeometriesIArrayfromNetworkSourceIDsILongArrayfromGlobalIDsIStringArrayfromObjectIDsILongArrayfromTerminalIDsILongArrayfromGeometriesIArraytoNetworkSourceIDsILongArraytoGlobalIDsIStringArraytoObjectIDsILongArraytoTerminalIDsILongArraytoGeometriesIArray
Remarks
This is used during export subnetwork and trace for exporting connectivity information in JSON.
ElementsToFeatures(esriElementType, long[], out int[], out string[])
Get Source IDs and Global IDs that correspond to the given EIDs.
void ElementsToFeatures(esriElementType ElementType, long[] EIDs, out int[] sourceIDs, out string[] GlobalIDs)
Parameters
ElementTypeesriElementTypeEIDslong[]sourceIDsint[]GlobalIDsstring[]
FeaturesForSet(esriElementType, ILongLongArray, out ILongArray, out IStringArray, out ILongArray, out ILongArray, out ILongArray, out ILongArray)
Returns Network Source IDs, Global IDs, Object IDs, Terminal IDs, Asset Group Codes, and Asset Type Codes that correspond to the given EIDs.
void FeaturesForSet(esriElementType ElementType, ILongLongArray EIDs, out ILongArray networkSourceIDs, out IStringArray GlobalIDs, out ILongArray objectIDs, out ILongArray TerminalIDs, out ILongArray AssetGroupCodes, out ILongArray assetTypeCodes)
Parameters
ElementTypeesriElementTypeEIDsILongLongArraynetworkSourceIDsILongArrayGlobalIDsIStringArrayobjectIDsILongArrayTerminalIDsILongArrayAssetGroupCodesILongArrayassetTypeCodesILongArray
FeaturesForSetBasic(esriElementType, ILongLongArray, out ILongArray, out IStringArray, out ILongArray)
Returns Network Source IDs, Global IDs, and Object IDs that correspond to the given EIDs.
void FeaturesForSetBasic(esriElementType ElementType, ILongLongArray EIDs, out ILongArray networkSourceIDs, out IStringArray GlobalIDs, out ILongArray objectIDs)
Parameters
ElementTypeesriElementTypeEIDsILongLongArraynetworkSourceIDsILongArrayGlobalIDsIStringArrayobjectIDsILongArray
FeaturesForSetBasicWithPosition(esriElementType, ILongLongArray, out ILongArray, out IStringArray, out ILongArray, out IDoubleArray, out IDoubleArray)
Returns Network Source IDs, Global IDs, Object IDs, Position Froms (for edges), and PositionTos (for edges) that correspond to the given EIDs.
void FeaturesForSetBasicWithPosition(esriElementType ElementType, ILongLongArray EIDs, out ILongArray networkSourceIDs, out IStringArray GlobalIDs, out ILongArray objectIDs, out IDoubleArray positionFroms, out IDoubleArray positionTos)
Parameters
ElementTypeesriElementTypeEIDsILongLongArraynetworkSourceIDsILongArrayGlobalIDsIStringArrayobjectIDsILongArraypositionFromsIDoubleArraypositionTosIDoubleArray
FeaturesForSetWithPosition(esriElementType, ILongLongArray, out ILongArray, out IStringArray, out ILongArray, out ILongArray, out ILongArray, out ILongArray, out IDoubleArray, out IDoubleArray)
Returns Network Source IDs, Global IDs, Object IDs, Terminal IDs, Asset Group Codes, Asset Type Codes, Position Froms (for edges), and PositionTos (for edges) that correspond to the given EIDs.
void FeaturesForSetWithPosition(esriElementType ElementType, ILongLongArray EIDs, out ILongArray networkSourceIDs, out IStringArray GlobalIDs, out ILongArray objectIDs, out ILongArray TerminalIDs, out ILongArray AssetGroupCodes, out ILongArray assetTypeCodes, out IDoubleArray positionFroms, out IDoubleArray positionTos)
Parameters
ElementTypeesriElementTypeEIDsILongLongArraynetworkSourceIDsILongArrayGlobalIDsIStringArrayobjectIDsILongArrayTerminalIDsILongArrayAssetGroupCodesILongArrayassetTypeCodesILongArraypositionFromsIDoubleArraypositionTosIDoubleArray
GetIntersectingElements(esriElementType, IGeometry, ref long[])
Returns all junction or edge EIDs that are intersecting with a geometry.
void GetIntersectingElements(esriElementType ElementType, IGeometry Geometry, ref long[] EIDs)
Parameters
ElementTypeesriElementTypeGeometryIGeometryEIDslong[]
GetIntersectingElementsWithPercentAlong(esriElementType, IGeometry, out ILongLongArray, out IDoubleArray)
Returns all junction or edge EIDs that are intersecting with a geometry. Percent alongs are returned with edge EIDs.
void GetIntersectingElementsWithPercentAlong(esriElementType ElementType, IGeometry Geometry, out ILongLongArray EIDs, out IDoubleArray percentAlongs)
Parameters
ElementTypeesriElementTypeGeometryIGeometryEIDsILongLongArraypercentAlongsIDoubleArray
QueryTraceConfiguration(Guid, out esriUtilityNetworkTraceType, out ITraceConfiguration, out IArray)
Query the trace configurations table for the trace configuration corresponding to the given global ID.
void QueryTraceConfiguration(Guid GlobalID, out esriUtilityNetworkTraceType traceType, out ITraceConfiguration TraceConfiguration, out IArray ResultTypes)
Parameters
GlobalIDGuidtraceTypeesriUtilityNetworkTraceTypeTraceConfigurationITraceConfigurationResultTypesIArray